On Mon, Jun 23, 2003 at 03:15:11PM -0700, Arthur Moore wrote:
> ok well maybe it's MPEG4/divx I'm not sure, I'm having a hard time with 
> all of this stuff. Is there a site that describes all of this stuff. I 
> get confused real fast. Anyway, the audio is drifting, it's pretty good 
> for the first few seconds, and then it gets off. There's a few minutes 
> of video left, where the audio is long finished.
> 
> I've tried the srate thing. I've done srate=44100, and srate=48000, and 
> then even srate=256000, which is what it was set to in cinelerra. I'm 
> still having a hard time getting it to sync right.

256kHz??  Do you actually have an audio card capable of playing this?
44.1kHz is fine for what you're doing.  First, make sure your audio is
at a sane frequency.

Try forcing the frames per second with -ofps=29.97.  Or try creating
an OGM file instead (my personal recommendation).  You can encode the
video in MPlayer into an AVI file (just use -oac copy), encode the
audio with oggenc, and then use ogmmerge to create an OGM file from
the .avi and the .ogg files.  As long as the lengths of both the audio
and the video tracks are the same, the audio packets should be
interleaved just fine with the video frames.  OGM has double overhead
(headers for the OGM packets and headers for the OGG frames), but it
doesn't have the braindead index-at-the-end-of-the-file problem that
AVI suffers from, and you win back that overhead with the space
savings of the Vorbis codec.

Oh, and consider using XviD instead of DivX.  That way you can truly
be free.  :-)

Mike

-- 
------------------------------------------- | ---------------------
Michael Halcrow                             | [EMAIL PROTECTED] 
Developer, IBM Linux Technology Center      |                      
                                            |
"Free markets select for winning            |
solutions."                                 |
  - Eric S. Raymond                         |
------------------------------------------- | ---------------------
GnuPG Keyprint:  05B5 08A8 713A 64C1 D35D  2371 2D3C FDDA 3EB6 601D

Attachment: pgp00000.pgp
Description: PGP signature

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to