[FFmpeg-trac] #1875(undetermined:new): Reproducable fails to copy/concat/convert ALL streams, applies on any multi-subtitled or multi-language video

FFmpeg trac at avcodec.org
Wed Oct 31 05:12:32 CET 2012


#1875: Reproducable fails to copy/concat/convert ALL streams, applies on any
multi-subtitled or multi-language video
-------------------------------------+-------------------------------------
             Reporter:  feelart      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  copy concat  |               Blocked By:
  streams                            |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 When trying to convert, change container or concatane files, ffmpeg fails
 to copy ALL streams, in particular all audio or all subtitles.
 Only by using explicit mapping, can one copy all files.

 The bug applies to any VOB files(I haven't tried on MKV or MP4), which is
 multi-linguigal and/or multi-subtitled.

 As test file I take a VOB files with 4 streams.
 1st command line test:

 ffmpeg -y -i VTS_01_4.vob -c:v copy -c:a copy -c:s copy -c:d copy -c:t
 copy  VTS_01_4_REC_ALL.vob
 Notice here ffmepg copy 3 out 4 streams.


 {{{

 G:\ITC\SharedWinXp\test\HibDVDFAb\VIDEO_TS>ffmpeg -y -i VTS_01_4.vob -c:v
 copy -c:a copy -c:s copy -c:d copy -c:t copy VTS_01_4_REC_ALL.vob
 ffmpeg version N-46055-g5f0105b Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Oct 26 2012 17:56:00 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-pthreads
 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib

 --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-libfreetype --enable-libgsm --ena
 ble-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus
 --enable-librtmp --enable-libschroedinger --enable-libspeex

 --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enab
 le-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52.  0.100 / 52.  0.100
   libavcodec     54. 69.100 / 54. 69.100
   libavformat    54. 35.100 / 54. 35.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 20.106 /  3. 20.106
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [mpeg2video @ 0000000001f4e7e0] mpeg_decode_postinit() failure
     Last message repeated 8 times
 [mpeg2video @ 0000000001f4e7e0] allocate dummy last picture for field
 based first keyframe
 [mpeg @ 0000000001f4df00] Stream #2: not enough frames to estimate rate;
 consider increasing probesize
 [mpeg @ 0000000001f4df00] Stream #3: not enough frames to estimate rate;
 consider increasing probesize
 Input #0, mpeg, from 'VTS_01_4.vob':
   Duration: 25:43:53.39, start: 3204.956000, bitrate: 92 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
 64:45 DAR 16:9], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50

 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
     Stream #0:2[0x21]: Subtitle: dvd_subtitle
     Stream #0:3[0x20]: Subtitle: dvd_subtitle
 Output #0, svcd, to 'VTS_01_4_REC_ALL.vob':
   Metadata:
     encoder         : Lavf54.35.100
     Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
 q=2-31, 7500 kb/s, 25 fps, 90k tbn, 25 tbc
     Stream #0:1: Audio: ac3, 48000 Hz, stereo, 384 kb/s
     Stream #0:2: Subtitle: dvd_subtitle
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
   Stream #0:2 -> #0:2 (copy)
 Press [q] to stop, [?] for help
 frame=26687 fps=558 q=-1.0 Lsize= 1041526kB time=00:17:48.22
 bitrate=7987.3kbits/s
 video:977313kB audio:50055kB subtitle:961 global headers:0kB muxing
 overhead 1.283392%

 G:\ITC\SharedWinXp\test\HibDVDFAb\VIDEO_TS>
 }}}

 2nd test line:
 RE: http://ffmpeg.org/pipermail/ffmpeg-user/2012-February/004997.html

 ffmpeg -y -i VTS_01_4.vob -c copy VTS_01_4_REC_c.vob
 This time the 2 subtitles streams are NOT copied


 {{{
 G:\ITC\SharedWinXp\test\HibDVDFAb\VIDEO_TS>ffmpeg -y -i VTS_01_4.vob -c
 copy VTS_01_4_REC_c.vob
 ffmpeg version N-46055-g5f0105b Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Oct 26 2012 17:56:00 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-pthreads
 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib

 --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-libfreetype --enable-libgsm --ena
 ble-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus
 --enable-librtmp --enable-libschroedinger --enable-libspeex

 --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enab
 le-libx264 --enable-libxavs --enable-libxvid --enable-zlib
   libavutil      52.  0.100 / 52.  0.100
   libavcodec     54. 69.100 / 54. 69.100
   libavformat    54. 35.100 / 54. 35.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 20.106 /  3. 20.106
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [mpeg2video @ 000000000201e4e0] mpeg_decode_postinit() failure
     Last message repeated 8 times
 [mpeg2video @ 000000000201e4e0] allocate dummy last picture for field
 based first keyframe
 [mpeg @ 000000000201dc20] Stream #2: not enough frames to estimate rate;
 consider increasing probesize
 [mpeg @ 000000000201dc20] Stream #3: not enough frames to estimate rate;
 consider increasing probesize
 Input #0, mpeg, from 'VTS_01_4.vob':
   Duration: 25:43:53.39, start: 3204.956000, bitrate: 92 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
 64:45 DAR 16:9], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50

 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
     Stream #0:2[0x21]: Subtitle: dvd_subtitle
     Stream #0:3[0x20]: Subtitle: dvd_subtitle
 Output #0, svcd, to 'VTS_01_4_REC_c.vob':
   Metadata:
     encoder         : Lavf54.35.100
     Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
 q=2-31, 7500 kb/s, 25 fps, 90k tbn, 25 tbc
     Stream #0:1: Audio: ac3, 48000 Hz, stereo, 384 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=26687 fps=1385 q=-1.0 Lsize= 1040114kB time=00:17:48.22
 bitrate=7976.5kbits/s
 video:977313kB audio:50055kB subtitle:0 global headers:0kB muxing overhead
 1.240699%

 G:\ITC\SharedWinXp\test\HibDVDFAb\VIDEO_TS>
 }}}

 3rd command line, working this time

 ffmpeg -y -i VTS_01_4.vob -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c copy
 VTS_01_4Fab_REC4_streams.vob
 Here all streams are copied

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1875>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list