Opened 11 years ago

Last modified 11 years ago

#2613 new defect

Bad playback of mov samples containing pcm audio

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mov desync
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The samples from ticket #2605 - http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2605/ - can be transcoded with ffmpeg, and the transcoded files play identically / very similar as the original files with QuickTime on OSX and iOS.
The samples play with ffplay showing massive desync / in slowmotion:

$ time ./ffplay audio_silence_after_ffmpeg_upgrade.mov
ffplay version N-53705-g7de8a38 Copyright (c) 2003-2013 the FFmpeg developers
  built on May 31 2013 10:40:55 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f74b4000920] STSZ sample size 1 invalid (too small), ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'audio_silence_after_ffmpeg_upgrade.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf55.7.100
  Duration: 00:00:15.60, start: 0.000000, bitrate: 1768 kb/s
    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 361 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc
    Metadata:
      handler_name    : DataHandler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      handler_name    : DataHandler
  -0.03 A-V:-10.588 fd=   0 aq=15360KB vq=    0KB sq=    0B f=0/0

real    0m11.193s
user    0m2.764s
sys     0m0.185s

This may be related to the missing timestamps when only playing audio:

$ time ./ffplay audio_silence_after_ffmpeg_upgrade.mov -vn -autoexit
ffplay version N-53705-g7de8a38 Copyright (c) 2003-2013 the FFmpeg developers
  built on May 31 2013 10:40:55 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd198000920] STSZ sample size 1 invalid (too small), ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'audio_silence_after_ffmpeg_upgrade.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf55.7.100
  Duration: 00:00:15.60, start: 0.000000, bitrate: 1768 kb/s
    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 361 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc
    Metadata:
      handler_name    : DataHandler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      handler_name    : DataHandler
  -0.00 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

real    0m15.675s
user    0m4.719s
sys     0m0.734s

Change History (1)

comment:1 by Carl Eugen Hoyos, 11 years ago

Both samples also play fine with WMP.

Note: See TracTickets for help on using tickets.