[FFmpeg-user] ffmpeg rtmp with multiple file sources

mok ho leung paymok at gmail.com
Tue Feb 21 11:55:48 CET 2012


hi all,

I have some .mov files want to stream to Flash media server.
 i have already tried to stream a single .mov by FFMPEG command in terminal
and it works,
the FMS can display the thing i streaming in live. this is the command i am
using:

*ffmpeg -re -i file1.mov -vcodec libx264 -f flv
rtmp://localhost/livepkgr/livestream*

Now i want to stream multiple files, i tried to use above command one by
one,
 but it seems Flash media server stop the streaming when file1 is finished,
then start the stream with file2.
 It makes the stream player stopped when file1 is finish, and have to
refresh the page in order to continue on file2.

i am calling the FFMPEG command by a C program in linux,
i wonder is that possible to let FFMPEG constantly deliver the stream by
multiple files source without stopped when a file finish?
or still there something i can use for coding using FFMPEG to achieve what
i want to do?

Regards and thanks,
Luismok


More information about the ffmpeg-user mailing list