#2084(undetermined:new): Wrong duration and negative bitrate in mpeg stream with timestamp discontinuity
#2084: Wrong duration and negative bitrate in mpeg stream with timestamp discontinuity -------------------------------------+------------------------------------- Reporter: cehoyos | Owner: Type: defect | Status: new Priority: normal | Component: Version: git- | undetermined master | Keywords: mpegps Blocked By: | Blocking: Reproduced by developer: 0 | Analyzed by developer: 0 -------------------------------------+------------------------------------- A user provided a 2.9 G DVD rip that shows a duration of "00:00:01.06" and a bitrate of "-2147483 kb/s" with ffmpeg -i. The reason is a timestamp discontinuity approximately 1 sec before the end of the stream. I cut the sample to only contain the last seconds, and the duration is also wrong, the bitrate is shown as 0kb/s. {{{ $ ffmpeg -i negative-bitrate-sample.mpg ffmpeg version N-48311-gc36302a Copyright (c) 2000-2012 the FFmpeg developers built on Dec 30 2012 19:01:34 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --enable-avresample libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.104 / 54. 50.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.102 / 3. 30.102 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg @ 0x1ed7540] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from 'negative-bitrate-sample.mpg': Duration: 00:00:01.06, start: 0.287267, bitrate: -2147483 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2[0x23]: Subtitle: dvd_subtitle At least one output file must be specified }}} {{{ $ ffmpeg -probesize 2147483647 -analyzeduration 2147483647 -i ../MPlayer /negative-bitrate-sample.mpg ffmpeg version N-48311-gc36302a Copyright (c) 2000-2012 the FFmpeg developers built on Dec 30 2012 19:01:34 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --enable-avresample libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.104 / 54. 50.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.102 / 3. 30.102 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg @ 0x17c0720] max_analyze_duration 2147483647 reached at 2147520000 Input #0, mpeg, from '../MPlayer/negative-bitrate-sample.mpg': Duration: 00:00:01.06, start: 0.287267, bitrate: -2147483 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2[0x23]: Subtitle: dvd_subtitle Stream #0:3[0x21]: Subtitle: dvd_subtitle Stream #0:4[0x20]: Subtitle: dvd_subtitle Stream #0:5[0x22]: Subtitle: dvd_subtitle At least one output file must be specified }}} {{{ $ ffmpeg -i negative-bitrate-sample_cut.mpg ffmpeg version N-48311-gc36302a Copyright (c) 2000-2012 the FFmpeg developers built on Dec 30 2012 19:01:34 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --enable-avresample libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.104 / 54. 50.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.102 / 3. 30.102 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg2video @ 0x2b72f80] mpeg_decode_postinit() failure Last message repeated 4 times [mpeg @ 0x2b6c540] DTS discontinuity in stream 1: packet 76 with DTS 343638654, packet 77 with DTS 8589956846 [mpeg @ 0x2b6c540] DTS discontinuity in stream 0: packet 104 with DTS 343641534, packet 105 with DTS 8589960446 Input #0, mpeg, from 'negative-bitrate-sample_cut.mpg': Duration: 25:27:10.12, start: 3814.943267, bitrate: 0 kb/s Stream #0:0[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2[0x20]: Subtitle: dvd_subtitle Stream #0:3[0x21]: Subtitle: dvd_subtitle Stream #0:4[0x22]: Subtitle: dvd_subtitle Stream #0:5[0x23]: Subtitle: dvd_subtitle At least one output file must be specified }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2084> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2084: Wrong duration and negative bitrate in mpeg stream with timestamp discontinuity -------------------------------------+------------------------------------- Reporter: cehoyos | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: mpegps | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): The negative bitrate is not shown anymore, the duration is still incorrect, ticket #2894 probably describes the same issue. {{{ $ ffmpeg -i negative-bitrate-sample.mpg -f null - ffmpeg version N-55734-g9e477a3 Copyright (c) 2000-2013 the FFmpeg developers built on Aug 23 2013 19:36:08 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --disable-indev=jack libavutil 52. 42.100 / 52. 42.100 libavcodec 55. 29.100 / 55. 29.100 libavformat 55. 14.102 / 55. 14.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 82.102 / 3. 82.102 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpeg, from 'negative-bitrate-sample.mpg': Duration: 00:00:01.06, start: 0.287267, bitrate: N/A Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], max. 8400 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:3[0x23]: Subtitle: dvd_subtitle Output #0, null, to 'pipe:': Metadata: encoder : Lavf55.14.102 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s Stream mapping: Stream #0:1 -> #0:0 (mpeg2video -> rawvideo) Stream #0:2 -> #0:1 (ac3 -> pcm_s16le) Press [q] to stop, [?] for help [mpeg2video @ 0x3142ee0] warning: first frame is no keyframe [null @ 0x3142340] Encoder did not produce proper pts, making some up. [mpeg2video @ 0x3142ee0] warning: first frame is no keyframe [mpeg @ 0x3140880] New subtitle stream 0:4 at pos:20676622 and DTS:27.2873s [mpeg @ 0x3140880] New subtitle stream 0:5 at pos:82606094 and DTS:106.967s [mpeg @ 0x3140880] New subtitle stream 0:6 at pos:82792462 and DTS:107.127s frame=95478 fps=1922 q=0.0 Lsize=N/A time=01:03:39.12 bitrate=N/A video:8951kB audio:2148228kB subtitle:0 global headers:0kB muxing overhead -100.000001% }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2084#comment:1> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2084: Wrong duration and negative bitrate in mpeg stream with timestamp discontinuity -------------------------------------+------------------------------------- Reporter: cehoyos | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: mpegps | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by kasper93): * cc: kasper93@… (added) -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2084#comment:2> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
#2084: Wrong duration and negative bitrate in mpeg stream with timestamp discontinuity -------------------------------------+------------------------------------- Reporter: cehoyos | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: mpegps | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by Underground78): * cc: underground78@… (added) -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2084#comment:3> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg