Opened 13 years ago

Last modified 9 years ago

#609 new enhancement

Discard initial audio in case of huge A-V delay

Reported by: compn Owned by: reimar
Priority: unimportant Component: core
Version: HEAD Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

mplayer and -demuxer lavf both have trouble demuxing
http://www.curiouspictures.com/commercials/clips/mov/saul_elliot/se_dir_reel.mov

mplayer plays the 'spy groove' and 'bull vs bear' and 'forest' clips with the
incorrect audio from 'dunkin donuts' and 'best buy', also mplayer seems to have
some sync problems. lavf plays 'dunkin donuts' and 'best buy' with correct
audio. lavf also plays 'spy groove' and 'bull vs bear' and 'forest' with
incorrect audio using -vid 2.

Dunkin Donuts "Happiness"
Best Buy "Soar"
MTV "Spy Groove"
Mercedes "Bull vs. Bear"
EA Sports "Forest"

are the clips in this mov file. quicktime plays it in the order of this list.
quicktime also says 'forest' was added on to this movie, it has a 'placeholder'
where the forest clip is.

here is mplayer -v output:
D:\1clips\saulelliot>mplayerc -v se_dir_reel.mov
MPlayer dev-SVN-r20530-3.2.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) processor (Family: 6, Model: 4, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'd:/cdrive/mplayer/mplayer/codecs.conf'
Reading d:/cdrive/mplayer/mplayer/codecs.conf: This codecs.conf is too old and i
ncompatible with this MPlayer release! at line 6
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/c
odecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine?: '-v' 'se_dir_reel.mov'
init_freetype
c:\winnt\fonts\comic.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: c:\winnt\fonts\comic.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> 'd:/cdrive/mplayer/mplayer/fonts'
Using Windows native timing
get_path('input.conf') -> 'd:/cdrive/mplayer/mplayer/input.conf'
Parsing input config file d:/cdrive/mplayer/mplayer/input.conf
Input config file d:/cdrive/mplayer/mplayer/input.conf parsed: 46 binds
get_path('se_dir_reel.mov.conf') -> 'd:/cdrive/mplayer/mplayer/se_dir_reel.mov.c
onf'

Playing se_dir_reel.mov.
get_path('sub/') -> 'd:/cdrive/mplayer/mplayer/sub/'
WINSOCK2 init: 0
[file] File size is 30209253 bytes
STREAM: [file] se_dir_reel.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo?
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename se_dir_reel.mov ext: .mov
Trying demuxer 7 based on filename extension
Checking for MOV
ISO: File Type Major Brand: Original QuickTime?
ISO: File Type Minor Version: 537199360
ISO: File Type Compatible Brand #0: qt
ISO: File Type Compatible Brand #1:
ISO: File Type Compatible Brand #2:
ISO: File Type Compatible Brand #3:
MOV: Movie header found!
MOV: 'WIDE' chunk found!
MOV: Movie DATA found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=2997 dur=593598


MOV: Track #0:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=266000 lay=0 vol=0
MOV: unknown chunk: load 16
MOV: Edit atom!
MOV: Edit list table (1 entries) (ver:0,flags:0)
MOV: entry#0: duration: 266000 start time: 0 speed: 1.0x
MOV: Media stream!
MOV: Media header!
MOV: Handler header: mhlr/vide (appl) Apple Video Media Handler
MOV: Media info!
MOV: Video header!
MOV: Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV: Sample info!
MOV: Description list! (cnt:1)
MOV: desc #0: SVQ3 (92 bytes)
MOV: Sample duration table! (1 blocks)
MOV: Syncing samples (keyframes) table! (102 entries) (ver:0,flags:0)
MOV: Sample->Chunk mapping table! (356 blocks) (ver:0,flags:0)
MOV: Sample size table! (entries=2660 ss=0) (ver:0,flags:0)
MOV: Chunk offset table! (356 chunks)
MOV track #0: 356 chunks, 2660 samples
pts=266000 scale=2997 time=88.755
EL#0: pts=0 1st_sample=0 frames=2660 (88.755s) pts_offs=0
==> Found video stream: 0
MOV: Found unknown movie atom SMI (18)!
Image size: 320 x 240 (24 bpp)
Display size: 320 x 240
Fourcc: SVQ3 Codec: 'Sorenson Video 3'


MOV: Track #1:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=593383 lay=0 vol=256
MOV: Edit atom!
MOV: Edit list table (10 entries) (ver:0,flags:0)
MOV: entry#0: duration: 96312 start time: 0 speed: 1.0x
MOV: entry#1: duration: 188 start time: -1 speed: 1.0x
MOV: entry#2: duration: 169243 start time: 1417216 speed: 1.0x
MOV: entry#3: duration: 257 start time: -1 speed: 1.0x
MOV: entry#4: duration: 135280 start time: 3907584 speed: 1.0x
MOV: entry#5: duration: 20 start time: -1 speed: 1.0x
MOV: entry#6: duration: 101879 start time: 5898240 speed: 1.0x
MOV: entry#7: duration: 19 start time: -1 speed: 1.0x
MOV: entry#8: duration: 90010 start time: 7397376 speed: 1.0x
MOV: entry#9: duration: 175 start time: 8725944 speed: 1.0x
MOV: Media stream!
MOV: Media header!
MOV: Handler header: mhlr/soun (appl) Apple Sound Media Handler
MOV: Media info!
MOV: Sound header!
MOV: Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV: Sample info!
MOV: Description list! (cnt:1)
MOV: desc #0: QDM2 (100 bytes)
MOV: Sample duration table! (1 blocks)
MOV: Sample->Chunk mapping table! (310 blocks) (ver:0,flags:0)
MOV: Sample size table! (entries=8728576 ss=1) (ver:0,flags:0)
MOV: Chunk offset table! (401 chunks)
MOV track #1: 401 chunks, 0 samples
pts=8728576 scale=44100 time=197.927
==> Found audio stream: 1
Audio bits: 16 chans: 2 rate: 44100
Audio header: samp/pack=4096 bytes/pack=278 bytes/frame=556 bytes/samp=2
Audio extra header: len=64 fcc=0x77617665
MOV: Found unknown audio atom Fourcc: QDM2


MOV: Track #2:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=3 dur=593598 lay=0 vol=0
MOV: Edit atom!
MOV: Edit list table (2 entries) (ver:0,flags:0)
MOV: entry#0: duration: 266000 start time: -1 speed: 1.0x
MOV: entry#1: duration: 327598 start time: 0 speed: 1.0x
MOV: Media stream!
MOV: Media header!
MOV: Handler header: mhlr/vide (appl) Apple Video Media Handler
MOV: Media info!
MOV: Video header!
MOV: Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV: Sample info!
MOV: Description list! (cnt:1)
MOV: desc #0: SVQ1 (70 bytes)
MOV: Sample duration table! (9 blocks)
MOV: Syncing samples (keyframes) table! (390 entries) (ver:0,flags:0)
MOV: Sample->Chunk mapping table! (438 blocks) (ver:0,flags:0)
MOV: Sample size table! (entries=3278 ss=0) (ver:0,flags:0)
MOV: Chunk offset table! (438 chunks)
MOV track #2: 438 chunks, 3278 samples
pts=65585 scale=600 time=109.308
EL#1: pts=0 1st_sample=0 frames=3278 (109.309s) pts_offs=0
==> Found video stream: 2
MOV: Initial Video-Delay: 88.755 sec
Image size: 320 x 240 (24 bpp)
Display size: 320 x 240
Fourcc: SVQ1 Codec: 'Sorenson Video'


Quicktime Clip Info:

Software: Encoded with cleaner

MOV: longest streams: A: #1 (401 samples) V: #2 (3278 samples)
VIDEO: [SVQ1] 320x240 24bpp 15.385 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x31515653 size:320x240 fps:15.38 ftime:=0.0650
Clip info:

encoder: Encoded with cleaner

get_path('sub/') -> 'd:/cdrive/mplayer/mplayer/sub/'
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>10 BGR16 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12 supported
<vo_directx><FORMAT OVERLAY>1 I420 not supported
<vo_directx><FORMAT OVERLAY>2 IYUV not supported
<vo_directx><FORMAT OVERLAY>3 YVU9 supported
<vo_directx><FORMAT OVERLAY>4 YUY2 supported
<vo_directx><FORMAT OVERLAY>5 UYVY supported
<vo_directx><FORMAT OVERLAY>6 BGR8 not supported
<vo_directx><FORMAT OVERLAY>7 RGB15 not supported
<vo_directx><FORMAT OVERLAY>8 BGR15 not supported
<vo_directx><FORMAT OVERLAY>9 RGB16 not supported
<vo_directx><FORMAT OVERLAY>10 BGR16 not supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 not supported
<vo_directx><FORMAT OVERLAY>14 BGR32 not supported
<vo_directx><INFO>Your card supports 4 of 15 overlayformats
<vo_directx><INFO>can mirror up down
<vo_directx><INFO>hardware supports overlay
Opening video filter: [eq]
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffsvq1] vfm: ffmpeg (FFmpeg Sorenson Video v1 (SVQ1))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 44100 Hz, 2 ch, s16le, 47.9 kbit/3.39% (ratio: 5986->176400)
Selected audio codec: [ffqdm2] afm: ffmpeg (FFmpeg QDM2 audio decoder)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter volume
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 AD1815/16 Audio
ao_dsound: DirectSound? initialized
ao_dsound: Samplerate:44100Hz Channels:2 Format:s16le
ao_dsound: Buffersize:176400 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows DirectSound? audio output
AO: Author: Gabor Szecsi <deje@…>
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YVU9)
Trying filter chain: eq vo
VDec: using Planar YVU9 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x39555659)
REQ: flags=0x17 req=0x0
VO: [directx] 320x240 => 320x240 Planar YVU9
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer@…>
<vo_directx><INFO>using singlebuffer overlay
* [eq] Allocating mp_image_t, 320x256x9bpp YUV planar, 92160 bytes
* [vo] Exporting mp_image_t, 320x240x9bpp YUV planar, 86400 bytes
Unicode font: 574 glyphs.
Uninit audio filters...88.561 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0
[libaf] Removing filter volume
Uninit audio: ffmpeg
Uninit video: ffmpeg
WINSOCK2 uninit
ao_dsound: DirectSound? uninitialized

Exiting... (Quit)

and -demuxer lavf output:
D:\1clips\saulelliot>mplayerc -v se_dir_reel.mov -demuxer lavf
MPlayer dev-SVN-r20530-3.2.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) processor (Family: 6, Model: 4, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'd:/cdrive/mplayer/mplayer/codecs.conf'
Reading d:/cdrive/mplayer/mplayer/codecs.conf: This codecs.conf is too old and i
ncompatible with this MPlayer release! at line 6
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/c
odecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine?: '-v' 'se_dir_reel.mov' '-demuxer' 'lavf'
init_freetype
c:\winnt\fonts\comic.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: c:\winnt\fonts\comic.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> 'd:/cdrive/mplayer/mplayer/fonts'
Using Windows native timing
get_path('input.conf') -> 'd:/cdrive/mplayer/mplayer/input.conf'
Parsing input config file d:/cdrive/mplayer/mplayer/input.conf
Input config file d:/cdrive/mplayer/mplayer/input.conf parsed: 46 binds
get_path('se_dir_reel.mov.conf') -> 'd:/cdrive/mplayer/mplayer/se_dir_reel.mov.c
onf'

Playing se_dir_reel.mov.
get_path('sub/') -> 'd:/cdrive/mplayer/mplayer/sub/'
WINSOCK2 init: 0
[file] File size is 30209253 bytes
STREAM: [file] se_dir_reel.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: QuickTime?/MPEG4/Motion JPEG 2000 format
libavformat file format detected.
==> Found video stream: 0
======= VIDEO Format ======

biSize 140
biWidth 320
biHeight 240
biPlanes 0
biBitCount 24
biCompression 860968531='SVQ3'
biSizeImage 230400

Unknown extra header dump: [53] [56] [51] [33] [0] [0] [0] [0] [0] [0] [0] [0] [
0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [
0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [
0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [
0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [53] [45]

[51] [48] [0] [0] [0] [2] [dd] [c0]

===========================
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 17489 (0x4451)
Channels: 2
Samplerate: 44100
avg byte/sec: 0
Block align: 0
bits/sample: 16
cbSize: 56
Unknown extra header dump: [0] [0] [0] [c] [66] [72] [6d] [61] [51] [44] [4d] [3
2] [0] [0] [0] [24] [51] [44] [43] [41] [0] [0] [0] [1] [0] [0] [0] [2] [0] [0]
[ac] [44] [0] [0] [bb] [80] [0] [0] [10] [0] [0] [0] [1] [0] [0] [0] [2] [2c] [0
] [0] [0] [8] [0] [0] [0] [0]
==========================================================================
==> Found video stream: 2
======= VIDEO Format ======

biSize 40
biWidth 320
biHeight 240
biPlanes 0
biBitCount 24
biCompression 827414099='SVQ1'
biSizeImage 230400

===========================
LAVF: 1 audio and 2 video streams found
LAVF: build 3278336
VIDEO: [SVQ3] 320x240 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35 fourcc:0x33515653 size:320x240 fps:29.97 ftime:=0.0334
get_path('sub/') -> 'd:/cdrive/mplayer/mplayer/sub/'
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>10 BGR16 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12 supported
<vo_directx><FORMAT OVERLAY>1 I420 not supported
<vo_directx><FORMAT OVERLAY>2 IYUV not supported
<vo_directx><FORMAT OVERLAY>3 YVU9 supported
<vo_directx><FORMAT OVERLAY>4 YUY2 supported
<vo_directx><FORMAT OVERLAY>5 UYVY supported
<vo_directx><FORMAT OVERLAY>6 BGR8 not supported
<vo_directx><FORMAT OVERLAY>7 RGB15 not supported
<vo_directx><FORMAT OVERLAY>8 BGR15 not supported
<vo_directx><FORMAT OVERLAY>9 RGB16 not supported
<vo_directx><FORMAT OVERLAY>10 BGR16 not supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 not supported
<vo_directx><FORMAT OVERLAY>14 BGR32 not supported
<vo_directx><INFO>Your card supports 4 of 15 overlayformats
<vo_directx><INFO>can mirror up down
<vo_directx><INFO>hardware supports overlay
Opening video filter: [eq]
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffsvq3] vfm: ffmpeg (FFmpeg Sorenson Video v3 (SVQ3))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6000->176400)
Selected audio codec: [ffqdm2] afm: ffmpeg (FFmpeg QDM2 audio decoder)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter volume
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 AD1815/16 Audio
ao_dsound: DirectSound? initialized
ao_dsound: Samplerate:44100Hz Channels:2 Format:s16le
ao_dsound: Buffersize:176400 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows DirectSound? audio output
AO: Author: Gabor Szecsi <deje@…>
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
Trying filter chain: eq vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x417 req=0x0
VO: [directx] 320x240 => 320x240 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer@…>
<vo_directx><INFO>using singlebuffer overlay
* [eq] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
* [vo] Exporting mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
Unicode font: 574 glyphs.
* [eq] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
Uninit audio filters...-0.062 ct: -0.010 4/ 4 ??% ??% ??,?% 0 0
[libaf] Removing filter volume
Uninit audio: ffmpeg
Uninit video: ffmpeg
WINSOCK2 uninit
ao_dsound: DirectSound? uninitialized

Exiting... (Quit)

Change History (4)

comment:1 Changed 13 years ago by reimar

Dunkin Donuts "Happiness"
Best Buy "Soar"

play fine with native demuxer and -vid 0

The others seems to play fine, too, you just need to add -mc 100 and wait for
the audio of the first two to finish playing

comment:2 Changed 9 years ago by compn

  • bug_file_loc changed from http://www.curiouspictures.com/commercials/clips/mov/saul_elliot/se_dir_reel.mov to http://samples.mplayerhq.hu/mov/editlist/se_dir_reel.mov

update sample url

comment:3 Changed 9 years ago by compn

  • Owner changed from r_togni@… to reimar

comment:4 Changed 9 years ago by reimar

  • Component changed from demuxer to core
  • Severity changed from minor to enhancement
  • Summary changed from mplayer has trouble with mov file. to Discard initial audio in case of huge A-V delay

The "issue" is that MPlayer can't "fast-forward" over initial audio like -mc 100 does for video.

Note: See TracTickets for help on using tickets.