I'm attempting to use a Raspberry Pi Zero to live stream video from a Logitech C270 to YouTube.
After a bit of Googling I came up with this:
ffmpeg -thread_queue_size 512 -f v4l2 -i /dev/video0 -f alsa -ac 1 -i hw:1 -flags +global_header -ar 44100 -ab 10k -s 1280x720 -vcodec h264 -pix_fmt yuv420p -g 250 -vb 1500k -profile:v baseline -r 24 -f flv rtmp://a.rtmp.youtube.com/live2/STREAM_NAME
This runs without error and I get lines like this displayed (with gradually decreasing FPS):
frame=31 fps=1.3 q=0.0 size=0kB time=00:00:00.00 bitrate=N/A dup=0
However, I get nothing streamed to YouTube. Occasionally YouTube will say "Starting" but it gets no further than that. I suspect the problem is that the FPS is too low.
I pretty much followed this to install ffmpeg on the Pi.
I have no experience with ffmpeg and I'm wondering if the problem lies with the ffmpeg command I'm using, the lack of power offered by the Pi Zero or my inteet connection speed.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 191
تاريخ: يکشنبه
19 ارديبهشت
1395 ساعت: 15:54