[MPlayer-users] mencoder mpeg2->divx audio delay question

Steven M. Schultz sms at 2BSD.COM
Thu Aug 15 23:07:01 CEST 2002


Hi!

> From: "Robert R. Wal" <rrw at hell.pl>
> It's next to impossible to automatically sync video and mp3 audio if
> they were compressed separatelly. The reason is false information about
> bitrate of mp3 stream contained in it.

	Are you 100% certain of this?   I've been creating hundreds of
	files with MP2/MP3/AC3 audio that was compressed separately from the
	video and have never had a problem.   That is using the
	"mplex" program (from mjpegtools) though instead of mencoder.

	I have used mencoder in the past with a "-audiofile ..." and it 
	worked ok.  The problem I'm seeing now appears to only happen with
	data from a DV capture.

> If you wan't to maintain a/v sync in avi created with mencoder you have
> to let mencoder compress pcm->mp3.

	Ah, ok.  That will bring up the 'DV format 2 in avi' problem again 
	won't it? :)  Or is that fixed and I missed it? :)

	I will try that and see what happens.

> Look for the examples of 2-pass and 3-pass encoding in FAQ.

	Right, I saw that and "-oac copy -audiofile ..." is mentioned in the 
	man page and the FAQ I thought.  Correct?    From encoding.html:

  <LI><B>Audio stream</B> (option <CODE>-oac copy</CODE>): straightforward.   
    It is possible to take an external audio file (MP3, Vorbis) and mux it
    into the output stream. Use the <CODE>-audiofile &lt;filename&gt;</CODE>

	I thought I was following the FAQ and manual.  Is there another
	section that says "external audio files are bad"?

	Thanks for the reply - I'll keep experimenting and see what happens.

	Steven Schultz
	sms at 2bsd.com




More information about the MPlayer-users mailing list