I'm using FFmpeg and Youtube Live Streaming API to live-stream videos to YouTube.
I made something generates video files continuously, and I want to live-stream them to YouTube without any delay.
To feed them to YouTube's RTMPT(rtmp://a.../live2/...) server, I tried several things:
- Just
while:; do ./ffmpeg ... rtmp://...; done
. - Piping
YouTube streamed them continuously, but not seamlessly. It showed Buffering icon for about 20 seconds (as if a new YouTube stream gets created and starts to be fed), about 5 seconds before the currently showing video ends and the next video get showed.
| ...===============(BUFFERING)===== | ...===============(BUFFERING)===== | ...
It seems that YouTube just stops the stream when it detects the end of a video. How should I do to convince YouTube that it is receiving "endless" video stream?