[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mencoder -oac mp3lame - отстает звук



Может быть вот это?

       -autosync <factor>
              Gradually adjusts the A/V sync based on audio de-
              lay  measurements.   Specifying  -autosync 0, the
              default, will cause frame timing to be based  en-
              tirely  on  audio delay measurements.  Specifying
              -autosync 1 will do the  same,  but  will  subtly
              change  the  A/V correction algorithm.  An uneven
              video framerate in a movie which plays fine  with
              -nosound  can  often be helped by setting this to
              an integer value greater than 1.  The higher  the
              value, the closer the timing will be to -nosound.
              Try -autosync 30  to  smooth  out  problems  with
              sound  drivers  which  do not implement a perfect
              audio delay measurement.   With  this  value,  if
              large A/V sync offsets occur, they will only take
              about 1 or 2 seconds to settle out.   This  delay
              in  reaction time to sudden A/V offsets should be
              the only side-effect of turning this  option  on,
              for all sound drivers.

ну и, плюс, очевидное:

       -audio-delay <any floating-point number>
              Delays either audio or video by setting  a  delay
              field  in  the  header (default: 0.0).  This does
              not delay either stream while encoding,  but  the
              player  will  see  the delay field and compensate
              accordingly.  Positive values  delay  the  audio,
              and  negative  values delay the video.  Note that
              this is the exact opposite of the -delay  option.
              For example, if a video plays correctly with -de-
              lay 0.2, you can fix the video with  MEncoder  by
              using -audio-delay -0.2.

              Currently,  this  option  only works with the de-
              fault muxer (-of avi).  If you are using  a  dif-
              ferent muxer, then you must use -delay instead.



В Сбт, 20/02/2010 в 21:27 +0000, Nicholas пишет:
> Перекодировал видео из mov в avi c параметром -oac pcm - все ок.
> 
> Перекодировал такой же командой с единственным отличием  -oac mp3lame:
> 
> mencoder in.avi -ovc lavc -lavcopts vcodec=mpeg4  -oac mp3lame -o out.avi
> 
> Размер файла уменьшился с 2G до 0.8G, но звук стал отставать на 300ms.
> 
> Как с этим можно бороться (в процессе кодирования) ?
> 
> 
> -- 
> Sincerely,
> 	Nicholas
> 
> 


Reply to: