[MEncoder-users] A/V out of sync - but only on an Archos player

Lennart Börjeson lennart.borjeson at cinnober.com
Fri Feb 11 17:49:22 CET 2005


fredagen den 11 februari 2005 13.06 skrev Nico Sabbi:
>
> 0.5 is the default -audio-preload used when muxing to avi. You can
> override it
> with -audio-preload 0, but it shouldn't make such a difference, unless
> Archos' demuxer
> is broken
>

Hmmm... Encoding with -audio-preload makes no difference, but remuxing with 
-oac copy -ovc copy does (without specifying -audio-preload)!

I've found the tool "avitype" and the field which seem to differ are the 
SuggestedBufferSize and InitialFrames. It seems -audio-preload has no effect 
when copying.

A file encoded with transcode has SuggestedBufferSize=0 InitialFrames=0, BTW.

Strange...

Default encoding:

<init> : Avifile RELEASE-0.7.38-040406-20:04-gcc version 3.3.3 (SuSE Linux)
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
<init> : 1196.91 MHz Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz processor 
detected
<reader> : checking: HM1_1_2-0.5.avi
<AVI reader> : MainHeader: MicroSecPerFrame=40000 MaxBytesPerSec=0
 PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE ] 
TotalFrames=3673
 InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=720x576
 Scale=0 Rate=0 Start=0 Length=0
<AVI reader> : StreamHeader: Type=vids Handler=DIVX Flags=[ ]
 InitialFrames=0 Scale=1 Rate=25 Start=0 Length=3673
 SuggestedBufferSize=48621 Quality=0 SampleSize=0 Rect l,r,t,b=0,720,0,576
<AVI reader> : StreamHeader: Type=auds Handler=0x55 Flags=[ ]
 InitialFrames=2 Scale=384 Rate=16000 Start=0 Length=6125
 SuggestedBufferSize=7680 Quality=0 SampleSize=384 Rect l,r,t,b=0,0,0,0
<AVI reader> : InfoChunk Software:  MEncoder 1.0pre5-3.3.3
<AVI reader> : Reading index from offset: 17492072
<AVI reader> : Stream 0 vids : DIVX (0x58564944) 3673 chunks (14.35KB)
<AVI reader> : Stream 1 auds : MPEG Layer-3 (0x55) 6125 chunks (47.85KB)
<StreamCache> : Creating cache for file descriptor: 3

Encoding with -audio-preload 0:

<init> : Avifile RELEASE-0.7.38-040406-20:04-gcc version 3.3.3 (SuSE Linux)
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
<init> : 1196.91 MHz Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz processor 
detected
<reader> : checking: HM1_1_2-0.0.avi
<AVI reader> : MainHeader: MicroSecPerFrame=40000 MaxBytesPerSec=0
 PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE ] 
TotalFrames=3673
 InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=720x576
 Scale=0 Rate=0 Start=0 Length=0
<AVI reader> : StreamHeader: Type=vids Handler=DIVX Flags=[ ]
 InitialFrames=0 Scale=1 Rate=25 Start=0 Length=3673
 SuggestedBufferSize=48621 Quality=0 SampleSize=0 Rect l,r,t,b=0,720,0,576
<AVI reader> : StreamHeader: Type=auds Handler=0x55 Flags=[ ]
 InitialFrames=0 Scale=384 Rate=16000 Start=0 Length=6122
 SuggestedBufferSize=384 Quality=0 SampleSize=384 Rect l,r,t,b=0,0,0,0
<AVI reader> : InfoChunk Software:  MEncoder 1.0pre5-3.3.3
<AVI reader> : Reading index from offset: 17491798
<AVI reader> : Stream 0 vids : DIVX (0x58564944) 3673 chunks (14.35KB)
<AVI reader> : Stream 1 auds : MPEG Layer-3 (0x55) 6122 chunks (47.83KB)
<StreamCache> : Creating cache for file descriptor: 3

Remuxed with -oac copy -ovc copy:

<init> : Avifile RELEASE-0.7.38-040406-20:04-gcc version 3.3.3 (SuSE Linux)
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
<init> : 1196.91 MHz Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz processor 
detected
<reader> : checking: HM1_1_2-0.5-copy.avi
<AVI reader> : MainHeader: MicroSecPerFrame=40000 MaxBytesPerSec=0
 PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE ] 
TotalFrames=3673
 InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=720x576
 Scale=0 Rate=0 Start=0 Length=0
<AVI reader> : StreamHeader: Type=vids Handler=DIVX Flags=[ ]
 InitialFrames=0 Scale=1 Rate=25 Start=0 Length=3673
 SuggestedBufferSize=48621 Quality=0 SampleSize=0 Rect l,r,t,b=0,720,0,576
<AVI reader> : StreamHeader: Type=auds Handler=0x55 Flags=[ ]
 InitialFrames=0 Scale=384 Rate=16000 Start=0 Length=6125
 SuggestedBufferSize=7680 Quality=0 SampleSize=384 Rect l,r,t,b=0,0,0,0
<AVI reader> : InfoChunk Software:  MEncoder 1.0pre5-3.3.3
<AVI reader> : Reading index from offset: 17445528
<AVI reader> : Stream 0 vids : DIVX (0x58564944) 3673 chunks (14.35KB)
<AVI reader> : Stream 1 auds : MPEG Layer-3 (0x55) 307 chunks (2.40KB)
<StreamCache> : Creating cache for file descriptor: 3

Remuxed with -oac copy -ovc copy -audio-preload 0:

<init> : Avifile RELEASE-0.7.38-040406-20:04-gcc version 3.3.3 (SuSE Linux)
<init> : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
<init> : 1196.91 MHz Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz processor 
detected
<reader> : checking: HM1_1_2-0.5-recoded.avi
<AVI reader> : MainHeader: MicroSecPerFrame=40000 MaxBytesPerSec=0
 PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE ] 
TotalFrames=3673
 InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=720x576
 Scale=0 Rate=0 Start=0 Length=0
<AVI reader> : StreamHeader: Type=vids Handler=DIVX Flags=[ ]
 InitialFrames=0 Scale=1 Rate=25 Start=0 Length=3673
 SuggestedBufferSize=48621 Quality=0 SampleSize=0 Rect l,r,t,b=0,720,0,576
<AVI reader> : StreamHeader: Type=auds Handler=0x55 Flags=[ ]
 InitialFrames=0 Scale=384 Rate=16000 Start=0 Length=6125
 SuggestedBufferSize=7680 Quality=0 SampleSize=384 Rect l,r,t,b=0,0,0,0
<AVI reader> : InfoChunk Software:  MEncoder 1.0pre5-3.3.3
<AVI reader> : Reading index from offset: 17445528
<AVI reader> : Stream 0 vids : DIVX (0x58564944) 3673 chunks (14.35KB)
<AVI reader> : Stream 1 auds : MPEG Layer-3 (0x55) 307 chunks (2.40KB)
<StreamCache> : Creating cache for file descriptor: 3

-- 
!++
! Lennart Börjeson
! Partner, Developer
! Cinnober Financial Technology AB
! Industrigatan 2A
! S-112 46  STOCKHOLM
! Sverige/Sweden/Schweden/Suède
! mailto:Lennart.Borjeson at cinnober.com
! phone:+46-8-50304717
! gsm:+46-70-3394717
! fax:+46-8-50304701
! http://www.cinnober.com
!--




More information about the MEncoder-users mailing list