[FFmpeg-user] ffm stream mapping
ffmpeg-user at herveybayaustralia.com.au
Mon Dec 5 02:11:12 CET 2011
In furthering my project (and crash course in ffmpeg :) ) I have hit a
snag with ffm format. There appears to be practically no information or
documentation to be had for it.
I'm trying to send a mpegts stream (video, audio, sub, data) to ffserver
for further processing. Unfortunately ffm seems to really screw up the
streams no end.
I can split the ts into programs and send them to different files very
easily, streams look like this (simply):
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #0.6 -> #1.0
Stream #0.7 -> #1.1
Stream #0.9 -> #2.0
Stream #0.8 -> #2.1
ffm on the other hand:
Output #0, ffm, to 'http://127.0.0.1:8090/stream1.ffm':
Stream #0.0, 0, 1/1000000: Audio: ac3, 48000 Hz, 5 channels, 448 kb/s
Stream #0.1, 0, 1/90000: Video:  / 0x0000, q=2-31, 64
kb/s, 90k tbn
Stream #0.2, 0, 1/90000: Audio:  / 0x0000, 0 channels,
Stream #0.3, 0, 1/90000: Subtitle:  / 0x0000, 64 kb/s
Codec type mismatch for mapping #0.0 -> #0.0
It appears to be hell bent on using the audio stream first (why?!!) with
no logical reason why it should. No amount of googling or mapping can
enlighten me or fix the problem. The only useless info I could find was
ffmpegX which can "invert streams" or something.
Is this a bug or can I do something to fix this? Is there *any*
information on the ffm format?
I have tried -newvideo -newaudio -newsubtitle after the output
declaration, and mapping before and after output declarations. ffm just
ignores all reason and does what the hell it wants.
I would like to grab the subs as well (if I can), but the data stream
I'm happy to pass on.
Any help would be much appreciated.
More information about the ffmpeg-user