Opened 12 years ago
Closed 12 years ago
#2285 closed defect (needs_more_info)
mp2-in-avi shows desync with ffplay
Reported by: | Carl Eugen Hoyos | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | avi mp2 desync |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
http://thread.gmane.org/gmane.comp.video.ffmpeg.user/44059
http://thread.gmane.org/gmane.comp.video.ffmpeg.user/44080
I will upload an avi sample that plays fine with MPlayer and can be re-encoded with ffmpeg, but shows noticeable A/V desync with ffplay, fails with vlc (broken audio). Remuxing audio does not help (still A/V desync with ffplay, still high pitch with vlc), reencoding audio (and remuxing or reencoding video) leads to a file that plays fine with all players.
$ time ffplay TestUpload.avi ffplay version N-50086-gd41efc1 Copyright (c) 2003-2013 the FFmpeg developers built on Feb 19 2013 14:11:30 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --disable-indev=jack --enable-libopenjpeg libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [avi @ 0x7f3fa80008c0] sample size (1) != block align (1152) 0KB sq= 0B f=0/0 [avi @ 0x7f3fa80008c0] non-interleaved AVI [mpeg1video @ 0x7f3fa8000e00] sequence header damaged Input #0, avi, from 'TestUpload.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:00:18.20, start: 0.000000, bitrate: 2478 kb/s Stream #0:0: Video: mpeg1video (mpg1 / 0x3167706D), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], 104857 kb/s, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 160 kb/s [mpeg1video @ 0x7f3fa8000e00] sequence header damaged 7.15 A-V: -1.484 fd= 0 aq= 22KB vq= 54KB sq= 0B f=0/0 real 0m19.313s user 0m0.858s sys 0m0.163s
$ ffmpeg -i TestUpload.avi -qscale 2 -acodec copy out.avi ffmpeg version N-50086-gd41efc1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 19 2013 14:11:30 with gcc 4.7 (SUSE Linux) configuration: --enable-gpl --disable-indev=jack --enable-libopenjpeg libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [avi @ 0x290f000] sample size (1) != block align (1152) [avi @ 0x290f000] non-interleaved AVI [mpeg1video @ 0x2915420] sequence header damaged Input #0, avi, from 'TestUpload.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:00:18.20, start: 0.000000, bitrate: 2478 kb/s Stream #0:0: Video: mpeg1video (mpg1 / 0x3167706D), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], 104857 kb/s, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 160 kb/s Please use -q:a or -q:v, -qscale is ambiguous Output #0, avi, to 'out.avi': Metadata: ISFT : Lavf54.63.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], q=2-31, 200 kb/s, 30 tbn, 30 tbc Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 160 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg1video -> mpeg4) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mpeg1video @ 0x2915420] sequence header damaged [avi @ 0x2928d80] st:0 PTS: 2 DTS: 2 < 5 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 3 DTS: 3 < 6 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 3 DTS: 3 < 7 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 4 DTS: 4 < 8 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 4 DTS: 4 < 9 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 5 DTS: 5 < 10 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 5 DTS: 5 < 11 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 5 DTS: 5 < 12 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 6 DTS: 6 < 13 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 6 DTS: 6 < 14 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 7 DTS: 7 < 15 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 7 DTS: 7 < 16 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 7 DTS: 7 < 17 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 8 DTS: 8 < 18 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 8 DTS: 8 < 19 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 9 DTS: 9 < 20 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 9 DTS: 9 < 21 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 10 DTS: 10 < 22 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 10 DTS: 10 < 23 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 10 DTS: 10 < 24 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 11 DTS: 11 < 25 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 11 DTS: 11 < 26 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 12 DTS: 12 < 27 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 12 DTS: 12 < 28 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 12 DTS: 12 < 29 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 13 DTS: 13 < 30 invalid, clipping ... [avi @ 0x2928d80] st:0 PTS: 307 DTS: 307 < 735 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 307 DTS: 307 < 736 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 307 DTS: 307 < 737 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 308 DTS: 308 < 738 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 308 DTS: 308 < 739 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 309 DTS: 309 < 740 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 309 DTS: 309 < 741 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 310 DTS: 310 < 742 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 310 DTS: 310 < 743 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 310 DTS: 310 < 744 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 311 DTS: 311 < 745 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 311 DTS: 311 < 746 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 312 DTS: 312 < 747 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 312 DTS: 312 < 748 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 312 DTS: 312 < 749 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 313 DTS: 313 < 750 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 313 DTS: 313 < 751 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 314 DTS: 314 < 752 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 314 DTS: 314 < 753 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 315 DTS: 315 < 754 invalid, clipping [avi @ 0x2928d80] st:0 PTS: 315 DTS: 315 < 755 invalid, clipping frame= 546 fps=448 q=2.0 Lsize= 8854kB time=00:00:18.23 bitrate=3977.9kbits/s video:8458kB audio:355kB subtitle:0 global headers:0kB muxing overhead 0.460925%
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
The uploaded file is a remuxed file from ffmpeg, the input file is needed to analyze and fix the bug
Sample uploaded to http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2285/