W.I.P.
This commit is contained in:
parent
7d35ca494b
commit
db735c852f
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,7 @@ $
|
|||
ffmpeg \
|
||||
-loglevel level \
|
||||
-y \
|
||||
-f v4l2 -framerate 25 -video_size ${RESOLUTION} -i /dev/video${V4LDEVICE} \
|
||||
-f v4l2 -framerate 24 -video_size ${RESOLUTION} -input_format mjpeg -i /dev/video${V4LDEVICE} \
|
||||
-f alsa -ac 2 -i hw:CARD=CAMERA,DEV=${V4LDEVICE} \
|
||||
-channel_layout stereo \
|
||||
-ar 48000 \
|
||||
|
@ -84,6 +84,7 @@ ffmpeg \
|
|||
-filter_complex "[1:a]volume=-10dB;[0:v]scale='size=${RESOLUTION}',drawtext='font=DejaVuSansMono:text=%{pts}: fontcolor=white: fontsize=h/7: box=1: boxcolor=black@0.73: boxborderw=5: x=mod(floor(t/10+1)\,2)*mod(t*(w-text_w)/10\,w-text_w)+mod(floor(t/10)\,2)*(w-text_w-mod(t*(w-text_w)/10\,w-text_w)): y=h/2-3*text_h/2', drawtext='font=DejaVuSansMono:text=%{localtime}: fontcolor=white: fontsize=h/7: box=1: boxcolor=black@0.73: boxborderw=5: x=(w-text_w)/2: y=h/2+3*text_h/2'" \
|
||||
-codec:v libx264 \
|
||||
-preset superfast \
|
||||
-pix_fmt yuv420p \
|
||||
-x264opts nal-hrd=cbr:force-cfr=1:vbv-bufsize=${BUFFERSIZE}:bitrate=${VBITRATE}:vbv-maxrate=${VBITRATE} \
|
||||
-c:a aac -b:a ${ABITRATE}k \
|
||||
-g 1 -segment_format_options movflags=+frag_keyframe+empty_moov+default_base_moof -segment_time 5 -f segment \
|
||||
|
|
Loading…
Reference in a new issue