[FFmpeg-user] ffmpeg rtmp with multiple file sources

Andrey Utkin andrey.krieger.utkin at gmail.com
Tue Feb 21 12:01:05 CET 2012


2012/2/21 mok ho leung <paymok at gmail.com>:
> 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?

You can use concat: protocol for input. But ensure your input files
belong to format that supports concatenation (most practical is mpegts
format, and video in h264 Annex B flavour).

You can also launch ffmpeg instance to broadcast to rtmp, from local
UDP port input.
Thus you're free to restart app that sends input data to UDP port. But
you must ensure that data format which you send to UDP port supports
concatenation, and has identical properties (picture size, etc)

-- 
Andrey Utkin


More information about the ffmpeg-user mailing list