[FFmpeg-user] Outputting files to C RTMP Server
Deron
deron at pagestream.org
Fri Aug 10 00:48:07 CEST 2012
On 8/9/12 4:32 PM, Roger Pack wrote:
>> 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
> Maybe try it with the concat filter instead of one at a time.
> http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
> _______________________________________________
Thanks for the suggestion but that won't work for a number of reasons.
1) This list never ends. The plan is a 24/7 output.
2) The list is dynamic. The _next_ file in the list can be changed at
any time prior to the playing of the file.
3) concat requires that all segments have the same number and type of
streams. Sadly, some of these file might have 2 streams of mono audio
(left/right), or 1 stream of 8 channel or... I'm not 100% clear on what
PAT/PMT contains, but I think this is the same problem that I have to
begin with.
I can do something like:
ffmpeg -i "file" -s 640x360 -r 29.97 -f avi - | ffmpeg -re -i - -vcodec
libx264 -bf 0 -acodec libfaac -async 1 -f mpegts udp://127.0.0.1:11111
And as long as the first format (avi in this example) doesn't cause
differing PAT/PMT tables in the mpegts output, then I am ok. Problem of
course is mangling like this causes significant damage to video and much
cpu. I can live with the cpu usage (to a degree) but not the video loss.
Any other ideas? Anyone?
Thanks again,
Deron
More information about the ffmpeg-user
mailing list