[FFmpeg-trac] #1806(avformat:open): Audio/video stream order reversed in remuxed VOB files
FFmpeg
trac at avcodec.org
Fri Mar 7 18:16:45 CET 2014
#1806: Audio/video stream order reversed in remuxed VOB files
------------------------------------+------------------------------------
Reporter: paulbu | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mpegps | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by wim_arbor):
AFAIK mpeg ps files do not contain stream numbers other than the stream
ID. The Stream ID for video streams start with 0xE0, MP2 audio streams
start with 0xC0, AC3 is encoded in private stream 1 (0xBD) with substream
number starting at 0x80. So the stream id for mpeg ps depends on the
format and is independent of the stream number ffmpeg uses internally.
That would mean the problem is not the stream number of the video stream
in the file used for dvdauthor, and ffmpeg is not doing any wrong stream
mapping.
If I convert the attached file with this commandline:
{{{
ffmpeg -i test-ffmpeg.vob -target pal-dvd -codec copy out.vob
}}}
I am able to create a DVD with dvdauthor 0.6.9 but not with dvdauthor
0.7.1. (I did not test other versions). This could mean an issue with
dvdauthor.
Note when I delay the audiostream, both versions of dvdauthor work.
{{{
ffmpeg -i test-ffmpeg.vob -itsoffset 1.5 -i test-ffmpeg.vob -map 1:v -map
0:a -target pal-dvd -codec copy out2.vob
}}}
Indeed ffprobe displays swapped video and audio stream number;
{{{
Input #0, mpeg, from 'out.vob':
Duration: 00:00:05.59, start: 0.500000, bitrate: 2759 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 352x576
[SAR 24:11 DAR 4:3], max. 3060 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
}}}
{{{
Input #0, mpeg, from 'out2.vob':
Duration: 00:00:06.43, start: 0.620000, bitrate: 2385 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 352x576
[SAR 24:11 DAR 4:3], max. 3060 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
}}}
That is a problem in ffmpeg too if you refer to a stream with a number
(like 0:1).
--
Ticket URL: <https://trac.ffmpeg.org/ticket/1806#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list