LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2004, 01:17 AM   #1
estatik
Member
 
Registered: Oct 2003
Location: CA / NY
Distribution: Mandrake 9.1, 9.2, 10.1, Cooker
Posts: 145

Rep: Reputation: 15
mencoder audio off-snyc help


I have been using mencoder from CLI to encode my dvds to .avi files, and practically all the .avi files have about 200ms delay in the audio throughout the whole film. Although it's not too noticeable, it's more of an annoyance.

I am using mplayer-1.0.0.pre3.13 and mencoder-1.0.0.pre3.13 and the commands I have been using (taking into consideration of variables such as one-pass, two-pass, widescreen/fullscreen, cropping, subtiles and so on) are basically:

(one-pass)
nice -+19 mencoder -aspect 16:9 dvd://x -oac mp3lame ;lameopts abr:br=128:vol=3 -aid 128 -o x.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=x:vqmin=2:vqmax=2 -vop crop=x:x:x:x,scale -zoom -xy 720

(two-pass)
nice -+19 mencoder -aspect 16:9 dvd://x -ovc frameno -o frameno.avi -oac mp3lame -lameopts abr:br=128:vol=3 -aid 128

nice -+ 19 mencoder -aspect 16:9 dvd://x -oac copy -o x.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=x:vqmin=2:vqmax=31 -vop crop=x:x:x:x,scale -zoom -xy 720



I notice that when the dvd is being encoded for both audio and video, every other line, especially for NTSC dvds, will print "1 duplicate frame(s)!", and the output video file is slightly smaller than the audio file.

So, I have RTFM for mplayer/googled and the only thing that I can see that might help, is adding the -ofps switch. But when I do add -ofps, there's no change.

I'm not going for perfect dvd quality; besides, the command that I'm using gives me very satisfactory results in the video image, but what else can I add to get the audio in sync?
 
Old 03-12-2004, 08:02 PM   #2
estatik
Member
 
Registered: Oct 2003
Location: CA / NY
Distribution: Mandrake 9.1, 9.2, 10.1, Cooker
Posts: 145

Original Poster
Rep: Reputation: 15
bump
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mencoder: audio delay when encoding in slices!? J_Szucs Linux - Software 7 06-25-2006 05:30 PM
mencoder audio resample mrsolo Linux - Software 0 11-17-2004 11:03 PM
mencoder - adding audio to tv through line in Tuttle Linux - Software 0 07-04-2004 09:20 AM
mencoder ripping wrong audio Gill Bates Linux - Software 4 01-08-2004 10:25 AM
MEncoder audio codec problems ddpicard Linux - Software 16 05-29-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration