[FFmpeg-user] Can ffmpeg replay a live stream of constantly growing segmented *flv files?
henry.soang at umbocv.com
Thu Oct 2 20:14:10 CEST 2014
I have configured nginx to segment a live stream
from a camera into sequential *flv files (about 1 minute duration each)
in a directory. Each *flv file has a timestamp. For example:
[me at mybox /mydir] ls -lr test1*flv
-rwxr-xr-x 1 root root 9898994 Sep 17 20:10
-rwxr-xr-x 1 root root 10450933 Sep 17 17:42
-rwxr-xr-x 1 root root 10437684 Sep 17 17:41
-rwxr-xr-x 1 root root 10441149 Sep 17 17:41
-rwxr-xr-x 1 root root 10454367 Sep 17 17:40
-rwxr-xr-x 1 root root 10114779 Sep 17 17:40
-rwxr-xr-x 1 root root 10454252 Sep 17 17:39
-rwxr-xr-x 1 root root 10449784 Sep 17 17:39
<more get constantly added>
My question is:
I would like for a way to create an rtmp live stream that are the contents
of the *flv
files in this directory combined
- keeping in mind new files may be added as this is a live stream.
Is there a way to get ffmpeg to do something like this?
I thought perhaps the concat protocol could be used for this, but I *think*
that is a one time read on all the *flv files and no way for it to discover
the newly generated files in that directory.
Thanks for an ideas.
More information about the ffmpeg-user