[MEncoder-users] How to avoid A/V synchronisation pb

Jorge Peixoto de Morais Neto please.no.spam.here at gmail.com
Sun May 4 19:35:46 CEST 2008


On Sun, May 4, 2008 at 2:27 PM, Jorge Peixoto de Morais Neto
<please.no.spam.here at gmail.com> wrote:
> On Tue, Apr 29, 2008 at 4:52 AM, Philippe MONROUX
>  <phi2-monroux at wanadoo.fr> wrote:
>  > Hi,
>  >
>  >  First I apologize for my poor english.
>  >
>  >  My goal is to x264 2-pass encode one dvd title to one 700 M cd with ogg
>  >  vorbis sound (not very original...)
>  >
>  >  So in first I  need to rip sound to know its  size (SoundSize) to have
>  >  better bitrate calculation (700-SoundSize)*1024^2*8/t/1000
>  >
>  >  I've  read the  doc but  I'm not  sure about  my method  to  avoid A/V
>  >  synchronisation pbs.
>  >
>  >  Here is my method :
>  >
>  >  1) rip audio to audio.ogg --> SoundSize --> bitrate
>  >
>  >  2) pass 1 :
>  >  mencoder  dvd://1   -aid  128  -oac  copy  -vf   [filters]  -ovc  x264
>  >  -x264encopts [options-pass1]turbo=2:pass=1 -o /dev/null
>  >
>  >  3) pass 2 :
>  >  mencoder  dvd://1   -aid  128  -oac  copy  -vf   [filters]  -ovc  x264
>  >  -x264encopts [options-pass2]:pass=2 -o out.avi
>  >
>  >  4) mkv creation...
>  >
>  >  My question  is about "-ovc copy" in  pass-1 and pass-2. Is  it a good
>  >  choice to A/V synchronisation pbs or  is there a better choice (I read
>  >  nosound is not a good choice).
>
>  I use -oac copy and it has worked well.
>  Oh, and about the bitrate:
>  A CD labeled as 700 MB has 703.125
>
Shhhhh, Gmail is fricking buggy. I meant:

A CD labeled as 700 MB has 703.125 MiB. In my last test, Matroska
muxing had an overhead of 0.315%. So you can assume that the actual
audio + video data can be up to 700.91 MiB, or 734957568 bytes.

Keep in mind that if the final file ends up a little bigger than what
you expect, you don't have to start over. You can overburn the CD.
According to Wikipedia, a CD can sometimes be overburned by up to 10%,
so it is pretty safe to overburn by 0.1%. So you dont have to start
over if your final file has 703.83 MiB instead of 703.125 MiB.


-- 
Software is like sex: it is better when it is free - Linus Torvalds



More information about the MEncoder-users mailing list