[FFmpeg-trac] #2873(avformat:open): ffmpeg concat demuxer fails: mpeg files with different audio and video stream order
FFmpeg
trac at avcodec.org
Tue Aug 20 12:25:07 CEST 2013
#2873: ffmpeg concat demuxer fails: mpeg files with different audio and video
stream order
-------------------------------------+-------------------------------------
Reporter: kadmandux | Owner:
Type: enhancement | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: concat | Blocked By:
demuxer | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Cigaes):
Changing the order of the streams would probably not be as simple as
changing the order in the array, but it can probably be done.
Something making the order of streams from MPEG-PS less random would
probably be welcome (although I may be missing some drawbacks). Please
post patches on the mailing list.
You can make it simpler than you suggested, though: just change
{{{avformat_find_stream_info()}}}: if format is MPEG-PS and there was no
streams already detected, then reorder at the end.
Unfortunately, for your use, this is still too fragile, IMHO. Unless you
have a constraint you did not talk about, you would be better off just
acknowledging that MPEG-PS is a very bad format and using another,
especially for intermediate files.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2873#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list