Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-14-2008, 05:35 AM   #1
Registered: Mar 2004
Distribution: CentOS
Posts: 174

Rep: Reputation: 30
dvd -> avi and audio sync

Hi -

I'm trying to back up all my stargate DVDs to divx.

Right now I'm working on the pilot.
With dvd::rip - the resultive avi file has audio sync problems. In some parts of the film, it seems perfect - but in other parts, the video definitely lags behind the audio.

I went to

and did the following from that page:

cat *.vob > movie.vob
tcextract -i movie.vob -t vob -x mpeg2 > movie.m2v
tcextract -i movie.vob -a 0 -x ac3 -t vob > movie.ac3

(I did not resize)

mplex -f 8 -o final.mpg movie.m2v movie.ac3

The result - final.mpg - has perfect audio sync.

I'm not sure what is causing the difference when transcoded to avi (using xvid) but somehow - whether it be using the dvd::rip gui or using transcode from the command line - I'd like to make proper avi files with proper audio sync.

The goal is to put a season's worth of avi files onto a DVD-R so I can watch those when I get a stargate craving, rather than my DVDs. But I don't want to be stuck with poor audio sync.

Any tips at all with respect to how to get to avi with proper audio would be greatly appreciated.
Old 02-14-2008, 09:27 AM   #2
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

Rep: Reputation: Disabled
Just back it up into one MPEG-2 file: mplayer dvd://1 -dumpstream -dumpfile rippeddvd.mpg
You can play with mplayer options to strip unneeded audio tracks.

Edit: Didn't read your whole post. I'd recommend using Avidemux2 for transcoding. It will give you full control over sync.

Last edited by Emerson; 02-14-2008 at 09:30 AM.
Old 02-15-2008, 09:46 AM   #3
Registered: Mar 2004
Distribution: CentOS
Posts: 174

Original Poster
Rep: Reputation: 30
I got it to work - I took the transcode command that dvd::rip was using and changed -M 2 to -M 4 on the command line - it took a lot longer, but the audio matches the lips now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DVD::RIP audio out of sync with video Stefan J Linux - Software 2 01-18-2008 04:04 PM
avi -> dvd convert but burn's with no audio? sir-lancealot Linux - Desktop 8 09-24-2007 09:53 AM
transcode vob to avi - audio sync problem Steve Riley Linux - General 5 07-05-2006 09:28 AM
DVD, DiVX, AVI, VCD on SUSE 10.1-video jumpy, audio OK riba43 SUSE / openSUSE 6 06-16-2006 07:09 PM
Audio delay when ripping DVD to AVI with mencoder mikis Linux - Software 2 11-06-2005 06:52 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:24 AM.

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