New submission from Justin Greer <[email protected]>:
On an mpeg2video file (that may have an invalid timestamp), ffmpeg is
going into an infinite loop of some sort, and has to be killed with
"kill -9" to make it stop.
This is a regression, as of revision 25431, which uses
guess_correct_pts() to set timestamps. Previous revisions of ffmpeg
produce seemingly-valid output. Latest svn revision (25924) behaves
like 25431.
Unfortunately I'm unable to provide the actual media file, as it is a
customer file. However, I can provide any other debug output requested.
Command line used:
ffmpeg -i /tmp/stalling_file.mpg -an -f yuv4mpegpipe - >/dev/null
(The same happens if I use "-f rawvideo" instead of yuv4mpegpipe.)
Output from 25431:
FFmpeg version SVN-r25431, Copyright (c) 2000-2010 the FFmpeg developers
built on Dec 9 2010 16:41:00 with gcc 4.2.1 (Apple Inc. build 5659)
configuration:
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.80. 0 / 52.80. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.48. 0 / 1.48. 0
libswscale 0.12. 0 / 0.12. 0
Input #0, mpeg, from '/tmp/stalling_file.mpg':
Duration: 00:01:52.00, start: 0.224400, bitrate: 9418 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15
DAR 4:3], 9500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
[buffer @ 0x100c00d60] w:720 h:576 pixfmt:yuv420p
Output #0, yuv4mpegpipe, to 'pipe:':
Metadata:
encoder : Lavf52.80.0
Stream #0.0: Video: rawvideo, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 506 fps= 0 q=0.0 size= 307398kB time=20.24
bitrate=124417.2kbits/s dup=202 drop=0
frame= 1979 fps=1973 q=0.0 size= 1202254kB time=79.16
bitrate=124417.2kbits/s dup=1423 drop=0
frame= 3440 fps=2288 q=0.0 size= 2089820kB time=137.60
bitrate=124417.2kbits/s dup=2726 drop=100
frame= 5318 fps=2654 q=0.0 size= 3230716kB time=212.72
bitrate=124417.2kbits/s dup=4490 drop=215
frame= 7710 fps=3078 q=0.0 size= 4683870kB time=308.40
bitrate=124417.2kbits/s dup=6780 drop=318
frame=10616 fps=3532 q=0.0 size= 6449282kB time=424.64
bitrate=124417.2kbits/s dup=9596 drop=408
frame=12508 fps=3556 q=0.0 size= 7598683kB time=500.32
bitrate=124417.2kbits/s dup=11367 drop=522
frame=15592 fps=3880 q=0.0 size= 9472231kB time=623.68
bitrate=124417.2kbits/s dup=14360 drop=603
frame=19581 fps=4333 q=0.0 size=11895572kB time=783.24
bitrate=124417.2kbits/s dup=18282 drop=660
frame=21918 fps=4365 q=0.0 size=13315313kB time=876.72
bitrate=124417.2kbits/s dup=20512 drop=765
frame=24362 fps=4412 q=0.0 size=14800058kB time=974.48
bitrate=124417.2kbits/s dup=22853 drop=867
frame=24656 fps=4093 q=0.0 size=14978665kB time=986.24
bitrate=124417.2kbits/s dup=23000 drop=1016
[mpeg @ 0x10100b000] Invalid timestamps stream=0, pts=10100196,
dts=10103796, size=2015
Output from 25430:
FFmpeg version SVN-r25430, Copyright (c) 2000-2010 the FFmpeg developers
built on Dec 9 2010 16:38:37 with gcc 4.2.1 (Apple Inc. build 5659)
configuration:
libavutil 50.32. 3 / 50.32. 3
libavcore 0. 9. 1 / 0. 9. 1
libavcodec 52.92. 0 / 52.92. 0
libavformat 52.80. 0 / 52.80. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.48. 0 / 1.48. 0
libswscale 0.12. 0 / 0.12. 0
Input #0, mpeg, from '/tmp/stalling_file.mpg':
Duration: 00:01:52.00, start: 0.224400, bitrate: 9418 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15
DAR 4:3], 9500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
[buffer @ 0x100c00d20] w:720 h:576 pixfmt:yuv420p
Output #0, yuv4mpegpipe, to 'pipe:':
Metadata:
encoder : Lavf52.80.0
Stream #0.0: Video: rawvideo, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 690 fps= 0 q=0.0 size= 419179kB time=27.60
bitrate=124417.2kbits/s dup=392 drop=0
frame= 1170 fps=1165 q=0.0 size= 710782kB time=46.80
bitrate=124417.2kbits/s dup=576 drop=0
frame= 1691 fps=1123 q=0.0 size= 1027292kB time=67.64
bitrate=124417.2kbits/s dup=776 drop=0
frame= 2153 fps=1073 q=0.0 size= 1307960kB time=86.12
bitrate=124417.2kbits/s dup=956 drop=0
frame= 2619 fps=1045 q=0.0 size= 1591058kB time=104.76
bitrate=124417.2kbits/s dup=1138 drop=0
frame= 3100 fps=1031 q=0.0 size= 1883268kB time=124.00
bitrate=124417.2kbits/s dup=1324 drop=0
frame= 3580 fps=1021 q=0.0 size= 2174871kB time=143.20
bitrate=124417.2kbits/s dup=1512 drop=0
frame= 4064 fps=1014 q=0.0 size= 2468904kB time=162.56
bitrate=124417.2kbits/s dup=1702 drop=0
frame= 4545 fps=1008 q=0.0 size= 2761114kB time=181.80
bitrate=124417.2kbits/s dup=1894 drop=0
[mpeg @ 0x10100b000] Invalid timestamps stream=0, pts=10100196,
dts=10103796, size=2015
frame= 4793 fps=1006 q=0.0 Lsize= 2911776kB time=191.72
bitrate=124417.2kbits/s dup=1992 drop=0
video:0kB audio:0kB global headers:0kB muxing overhead inf%
----------
messages: 12896
priority: normal
status: new
substatus: new
title: regression: infinite loop on mpeg2video, as of rev 25431
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2414>
________________________________________________