Hello,
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 rtmp://a.rtmp.youtube.com/live2/xxxxxxxx.
Error opening output files: Invalid argument

MY CODE:

#!/bin/sh
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: \
[email protected], drawbox=x=iw/2:y=0:w=10:h=ih:[email protected]": \
-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
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to