From 01b65bf92014e18f594a205518f60c012da9df07 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 7 Nov 2022 14:21:59 +0100 Subject: [PATCH] add SHARPNESS --- src/home/telecaster/.fluxbox/scripts/.env.sample | 3 ++- .../.fluxbox/scripts/tc_video_simple_webm_stream-gst1.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/home/telecaster/.fluxbox/scripts/.env.sample b/src/home/telecaster/.fluxbox/scripts/.env.sample index 8e26e1b..2fefe65 100644 --- a/src/home/telecaster/.fluxbox/scripts/.env.sample +++ b/src/home/telecaster/.fluxbox/scripts/.env.sample @@ -12,9 +12,10 @@ VIDEO_WIDTH=864 VIDEO_HEIGHT=480 VIDEO_FRAMERATE=24 VIDEO_FLIP=rotate-180 +SHARPNESS=144 # Audio AUDIO_CHANNELS=2 AUDIO_OPUS_BITRATE=96000 AUDIO_MP3_QUALITY=4.0 -AUDIO_GAIN=12.0 \ No newline at end of file +AUDIO_GAIN=12.0 diff --git a/src/home/telecaster/.fluxbox/scripts/tc_video_simple_webm_stream-gst1.sh b/src/home/telecaster/.fluxbox/scripts/tc_video_simple_webm_stream-gst1.sh index 4c79762..dda32e2 100755 --- a/src/home/telecaster/.fluxbox/scripts/tc_video_simple_webm_stream-gst1.sh +++ b/src/home/telecaster/.fluxbox/scripts/tc_video_simple_webm_stream-gst1.sh @@ -24,6 +24,7 @@ AUDIO_CHANNELS=2 AUDIO_OPUS_BITRATE=96000 AUDIO_GAIN_PRE=2.5 AUDIO_GAIN_POST=1.5 +SHARPNESS=144 LOCAL_DIR=$(dirname "$0") if [ -f $LOCAL_DIR/.env ]; then @@ -35,7 +36,7 @@ v4l2-ctl -d $V4L2_ID -c power_line_frequency=1 v4l2-ctl -d $V4L2_ID -c zoom_absolute=$V4L2_ZOOM v4l2-ctl -d $V4L2_ID -c focus_auto=0 v4l2-ctl -d $V4L2_ID -c focus_absolute=1 -v4l2-ctl -d $V4L2_ID -c sharpness=144 +v4l2-ctl -d $V4L2_ID -c sharpness=$SHARPNESS # GST launch gst-launch-1.0 v4l2src device=/dev/video$V4L2_ID ! video/x-raw, format=YUY2, width=$VIDEO_WIDTH, height=$VIDEO_HEIGHT, framerate=$VIDEO_FRAMERATE/1 \ -- 2.39.5