[FFmpeg-user] Problem with thread_queue_size - stream youtube (webcam IMX179)

Vladimír Večeřa jsem at vladimir-vecera.cz
Thu Dec 10 19:02:32 EET 2020

I'm trying to transfer video and audio from the IMX179 webcam to the 
Raspberry PI with the latest version of ffmpeg and I can't.
I currently have a problem with this:

Option thread_queue_size (set the maximum number of queued packets from 
the demuxer) cannot be applied to output url 
rtmp://a.rtmp.youtube.com/live2/6gwq-50fh-j9z2-1xwp-5r6h -- you are 
trying to apply an input option to an output file or vice versa. Move 
this option before the file it belongs to.
Error parsing options for output file 
Error opening output files: Invalid argument


ffmpeg \
-thread_queue_size 4096 \
-f video4linux2 \
-input_format mjpeg \
-i /dev/video0 \
-filter_complex " \
drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: \
text='%{localtime} %{pts\:hms}':  fontcolor=white: fontsize=24: box=1: \
boxcolor=black at 0.8, drawbox=x=iw/2:y=0:w=10:h=ih:color=red at 0.1": \
-f alsa -i plughw:1,0 \
-thread_queue_size 4096 \
-bufsize 512k \
-acodec libmp3lame -ar 44100 \
-threads 8 \
-b:a 128k \
-f flv rtmp://a.rtmp.youtube.com/live2/xxxxxxxxx

More information about the ffmpeg-user mailing list