ffmpeg handles RTMP streaming as input or output, and it's working well.
I want to stream some videos (a dynamic playlist managed by a python script) to a RTMP server, and i'm currently doing something quite simple: streaming my videos one by one with FFMPEG to the RTMP server, however this causes a connection break every time a video end, and the stream is ready to go when the next video begins.
I would like to stream those videos without any connection breaks continuously, then the stream could be correctly viewed.
I use this command to stream my videos one by one to the server
ffmpeg -re -y -i myvideo.mp4 -vcodec libx264 -b:v 600k -r 25 -s 640x360 \
-filter:v yadif -ab 64k -ac 1 -ar 44100 -f flv \
"rtmp://mystreamingserver/app/streamName"
I looked for some workarounds over the internet for many days, and i found some people talking about using a named pipe as input in ffmpeg, I've tried it and it didn't work well since ffmpeg does not only close the RTMP stream when a new video comes but also closes itself.
Is there any way to do this ? (stream a dynamic playlist of videos with ffmpeg to RTMP server without connection breaks
cat video.mp4 > fifoand ffmpeg start streaming and quit after streaming the video. I think i dont know how to use the named pipe the right way, when i didcat video1.mp4 video2.mp4 > fifoffmpeg show the errorstream 4, offset 0x1d83c: partial fileafter streaming the first video. I know this is me doing it wrong, i have to pass the video data in a proper way through the pipe. – kketch Jul 26 '12 at 7:41cat pipe1 pipe2 pipe3 > stream, and i use the stream pipe as input in FFMPEG to publish my stream, but since i looking for a dynamic playlist how can i send more videos to the "stream" pipe in order to keep alive the stream ? I haven't figure it out yet. (Note, except for the first video, i had to cut the metadata of each video file using tail command for getting this working) – kketch Jul 28 '12 at 14:53