How to use ffmpeg to stream to YouTube Live?
I have an audio stream, im using ffmpeg to stream it to youtube live with an image as background with following command, ffmpeg -loop 1 -i x.jpg -i http://xxx.xxx.xxx.xxxx:5305/stream -c:a aac -s 1280×720 -ab 128k -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/xxxxx YouTube is not receiving enough video to maintain smooth streaming.
Is it possible to loop a loop in FFmpeg?
Definitely possible. In the recent versions of ffmpeg they have added a -stream_loop flag that allows you to loop the input as many times as required. The gotcha is that if you don’t regenerate the pts from the source, ffmpeg will drop frames after the first loop (as the timestamp will suddenly go back in time).
Is the background in FFmpeg an MP4 file?
This is with an up to date version of FFMPEG to include -stream_loop -1. The background is an mp4 file. http://localhost:3888 = an audio stream.
How to loop a video file in PHP?
If you want to have a live stream by looping a single video file then you could split it into .ts files and then simulate .m3u8 file with a php script which would return different .ts based on current time. You could try something similar to this: Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.
Why is FFmpeg version 2.8.11 not working?
My ffmpeg version 2.8.11 on Linux Mint 18.2 then says: After that it does nothing for about 3 minutes,then it finally returns the following error: I used these instructions: I already found a solution (although it was a bit tricky). In default firewall configuration my router blocks RTMP traffic (IRC and FTP too, as found out later).
Why is my YouTube Video buffering so much?
YouTube is not receiving enough video to maintain smooth streaming. As such, viewers will experience buffering this cause buffering in the output stream. Any one know how to fix it ? Helps would be appreciated.