[FFmpeg-trac] #3197(avformat:new): Assertion nus->keyframe_pts[k] > last_pts failed when using "-f segment"

FFmpeg trac at avcodec.org
Thu Dec 5 22:06:53 CET 2013


#3197: Assertion nus->keyframe_pts[k] > last_pts failed when using "-f segment"
-------------------------------------+-------------------------------------
             Reporter:  ob           |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  nut crash    |               Blocked By:
  abort                              |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ob):

 Apparently it all works fine if I try without concat.

 {{{-an}}} and {{{-vn}}} stop on the first file with this message:

 {{{
 Output file #0 does not contain any stream
 }}}


 The stream ids are changing between VOBs, which is likely an issue. Here's
 {{{ffprobe}}} output for all of them:
 {{{
 VTS_01_0.VOB
 ffprobe version N-58754-ge2bf00c Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Dec  5 2013 18:55:53 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --disable-stripping
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Input #0, mpeg, from 'VTS_01_0.VOB':
   Duration: 00:00:02.40, start: 0.128389, bitrate: 3618 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg),
 720x576 [SAR 64:45 DAR 16:9], max. 9800 kb/s, 25 fps, 4.17 tbr, 90k tbn,
 50 tbc
     Stream #0:2[0x21]: Subtitle: dvd_subtitle
     Stream #0:3[0x20]: Subtitle: dvd_subtitle
 Unsupported codec with id 1145979222 for input stream 0
 ===============
 VTS_01_1.VOB
 ffprobe version N-58754-ge2bf00c Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Dec  5 2013 18:55:53 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --disable-stripping
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Input #0, mpeg, from 'VTS_01_1.VOB':
   Duration: 00:21:40.12, start: 0.053622, bitrate: 6607 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], max. 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x2a]: Subtitle: dvd_subtitle
     Stream #0:3[0x29]: Subtitle: dvd_subtitle
     Stream #0:4[0x28]: Subtitle: dvd_subtitle
     Stream #0:5[0x27]: Subtitle: dvd_subtitle
     Stream #0:6[0x26]: Subtitle: dvd_subtitle
     Stream #0:7[0x25]: Subtitle: dvd_subtitle
     Stream #0:8[0x24]: Subtitle: dvd_subtitle
     Stream #0:9[0x23]: Subtitle: dvd_subtitle
     Stream #0:10[0x22]: Subtitle: dvd_subtitle
     Stream #0:11[0x21]: Subtitle: dvd_subtitle
     Stream #0:12[0x20]: Subtitle: dvd_subtitle
     Stream #0:13[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Unsupported codec with id 1145979222 for input stream 0
 ===============
 VTS_01_2.VOB
 ffprobe version N-58754-ge2bf00c Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Dec  5 2013 18:55:53 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --disable-stripping
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 [mpeg2video @ 0xa3cb440] Invalid frame dimensions 0x0.
     Last message repeated 7 times
 Input #0, mpeg, from 'VTS_01_2.VOB':
   Duration: 00:21:41.98, start: 1300.273300, bitrate: 6597 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], max. 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:2[0x1bf]: Data: dvd_nav_packet
     Stream #0:3[0x2a]: Subtitle: dvd_subtitle
     Stream #0:4[0x29]: Subtitle: dvd_subtitle
     Stream #0:5[0x28]: Subtitle: dvd_subtitle
     Stream #0:6[0x27]: Subtitle: dvd_subtitle
     Stream #0:7[0x26]: Subtitle: dvd_subtitle
     Stream #0:8[0x25]: Subtitle: dvd_subtitle
     Stream #0:9[0x24]: Subtitle: dvd_subtitle
     Stream #0:10[0x23]: Subtitle: dvd_subtitle
     Stream #0:11[0x22]: Subtitle: dvd_subtitle
     Stream #0:12[0x21]: Subtitle: dvd_subtitle
     Stream #0:13[0x20]: Subtitle: dvd_subtitle
 Unsupported codec with id 1145979222 for input stream 2
 ===============
 VTS_01_3.VOB
 ffprobe version N-58754-ge2bf00c Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Dec  5 2013 18:55:53 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --disable-stripping
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 [mpeg2video @ 0xa723440] Invalid frame dimensions 0x0.
     Last message repeated 1 times
 Input #0, mpeg, from 'VTS_01_3.VOB':
   Duration: 00:22:44.42, start: 2602.353300, bitrate: 6295 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], max. 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x1bf]: Data: dvd_nav_packet
     Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Unsupported codec with id 1145979222 for input stream 1
 ===============
 VTS_01_4.VOB
 ffprobe version N-58754-ge2bf00c Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Dec  5 2013 18:55:53 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --disable-stripping
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 [mpeg2video @ 0xad6d440] Invalid frame dimensions 0x0.
 Input #0, mpeg, from 'VTS_01_4.VOB':
   Duration: 00:19:27.43, start: 3966.865300, bitrate: 6561 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], max. 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:2[0x1bf]: Data: dvd_nav_packet
 Unsupported codec with id 1145979222 for input stream 2
 ===============
 }}}

 Using the original command but with {{{concat:$(echo VTS_01_[1234].VOB |
 tr ' ' \|)}}} and {{{-map 0}}} fails with:

 {{{
 $ ~/git/ffmpeg/ffmpeg -i concat:$(echo VTS_01_[1234].VOB | tr ' ' \|) -vn
 -codec copy -f segment output-%08d.nut
 ffmpeg version N-58754-ge2bf00c Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec  5 2013 18:55:53 with gcc 4.8 (Ubuntu/Linaro
 4.8.1-10ubuntu9)
   configuration: --disable-stripping
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Input #0, mpeg, from
 'concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB':
   Duration: 01:25:34.24, start: 0.053622, bitrate: 6511 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], max. 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x2a]: Subtitle: dvd_subtitle
     Stream #0:3[0x29]: Subtitle: dvd_subtitle
     Stream #0:4[0x28]: Subtitle: dvd_subtitle
     Stream #0:5[0x27]: Subtitle: dvd_subtitle
     Stream #0:6[0x26]: Subtitle: dvd_subtitle
     Stream #0:7[0x25]: Subtitle: dvd_subtitle
     Stream #0:8[0x24]: Subtitle: dvd_subtitle
     Stream #0:9[0x23]: Subtitle: dvd_subtitle
     Stream #0:10[0x22]: Subtitle: dvd_subtitle
     Stream #0:11[0x21]: Subtitle: dvd_subtitle
     Stream #0:12[0x20]: Subtitle: dvd_subtitle
     Stream #0:13[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
 Output #0, segment, to 'output-%08d.nut':
 Output file #0 does not contain any stream
 }}}

 As for the samples, I'm not legally allowed to share them (I guess that's
 a common issue for you guys). Are some test samples available somewhere so
 I can reproduce with something you can use too?

 I suspect that's all because of the changing stream ids but I'm not sure
 how to work around this. If I process each VOB separately without
 {{{concat}}}, will I lose audio and/or video continuity?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3197#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list