[FFmpeg-trac] #2285(undetermined:new): mp2-in-avi shows desync with ffplay

FFmpeg trac at avcodec.org
Tue Feb 19 15:10:16 CET 2013


#2285: mp2-in-avi shows desync with ffplay
-------------------------------------+-------------------------------------
               Reporter:  cehoyos    |                  Owner:
                   Type:  defect     |                 Status:  new
               Priority:  normal     |              Component:
                Version:  git-       |  undetermined
  master                             |               Keywords:  avi mp2
             Blocked By:             |  desync
Reproduced by developer:  0          |               Blocking:
                                     |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 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%
 }}}

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


More information about the FFmpeg-trac mailing list