[FFmpeg-user] Outputting files to C RTMP Server

Deron deron at pagestream.org
Thu Aug 9 23:49:49 CEST 2012


On 8/9/12 3:31 PM, Roger Pack wrote:
>> I've tried ffserver and not had much luck, so I'm trying to feed files from
>> ffmpeg into c-rtmp-server. This is a series of files being output to an
>> mpegts stream, and it works except when the file output has a different
>> PAT/PMT table.
> How do you feed them? How does it fail/what fails?
> -r

The files are output like this:

ffmpeg -re -i file1 -s 640x360 -r 29.97 -vcodec libx264 -bf 0 -acodec 
libfaac -async 1 -f mpegts udp://127.0.0.1:11111
ffmpeg -re -i file2 -s 640x360 -r 29.97 -vcodec libx264 -bf 0 -acodec 
libfaac -async 1 -f mpegts udp://127.0.0.1:11111

The "failure" is in crtmpserver. As I understand it, when file1 and 
file2 PAT/PMT tables differ then crtmpserver tries to open a new stream 
instead of continuing to use the existing stream. However, to be able to 
watch these 2 files (it is actually a long dynamic list of files) as a 
single stream, the stream must persist.

Deron


More information about the ffmpeg-user mailing list