View Full Version : AviDemux Sync Problem in Linux
weaver4
20th February 2008, 14:50
I use the following statement to backup my DVD's to a mpg file.
mplayer dvd://1 -dumpstream -dumpfile dvd.mpg
When I play the resulting dvd.mpg file in VCL it plays perfectly. The file is about 6.9 gig.
But when I load the resulting file into AviDemux it reports that the Video is 1hr 56min long and the audio is 2hr 25 min long. If I encode the video to xvid and the audio to mp3 the audio is significantly out of sync.
What am I doing wrong?
LoRd_MuldeR
20th February 2008, 16:53
Maybe you better rip the VOB files to your HDD with DVDFabDecrypter (or a similar Linux tool) first. Then let Avidemux itself index the VOB file(s)...
weaver4
20th February 2008, 19:29
There is not similar tool like DVDFabDecrypter in Linux that is the problem. mplayer will stream the movie to a file with -dumpstream -dumpfile so if mplayer can play the movie it can save it to a file; including arccos dvds.
I believe I can save the file as a vob file by executing:
mplayer dvd://1 -dumpstream -dumpfile dvd.vob
if that would help.
But when I open the dvd.mpg file Avidemux does index it.
LoRd_MuldeR
20th February 2008, 19:57
I'm not sure if that is the appropriate to "rip" a Video-DVD.
Maybe you try like this, for testing:
mencoder -oac pcm -ovc lavc -lavcopts vcodec=ffv1 -o dvd_uncompressed.avi dvd://1
BTW: Isn't it possible to run DVDFab, DVDShrink or DVDDecrypter in Wine under Linux?
weaver4
20th February 2008, 20:44
I will try the mencoder tonight.
I have heard mixed reviews about "ripping" under wine, mostly bad.
I am wondering if avidemux thinks the dvd.mpg video is 29.97 and it is really 23.97. The frame count is about right for 2hrs 25minutes at 24fps.
LoRd_MuldeR
20th February 2008, 21:21
I am wondering if avidemux thinks the dvd.mpg video is 29.97 and it is really 23.97. The frame count is about right for 2hrs 25minutes at 24fps.
You see what Avidemux "thinks" under File -> Properties.
And you can correct it, if needed, at Video -> Framerate.
pete
21st February 2008, 02:43
Using mplayer for ripping is fine but demux the resulting file with ProjectX (http://www.oozoon.de/progs/projectx/ProjectX-v0.90.04.00.b22-20080201.zip) (Java needs to be installed) first, then open the .m2v in Avidemux and add the .ac3 file through the audio menu.
Adub
21st February 2008, 02:56
Of course you can run DVD Fab Decrypter in linux under wine! I have done it many a time! I even wrote a friggin' guide. (http://forum.doom9.org/showthread.php?t=133346)
weaver4
21st February 2008, 15:05
I was not able to run the mencoder example above, my 5.5G input file created a 20G output file before I ran out of disk space.
Changing the frame rate to 23.976 did not help with the sync problem, but the sync problem appeared to be consistent through the movie. After avidemux indexed the file the resulting audio file said the audio delay was 0ms.
I use DVDFab Decrypter under windows now. The purpose of this exercise was to see if I could get away from Windows Tools and use Linux.
It seems to me that once I have a *.mpg file from the DVD that plays fine on Totem and VLC it should be easy to convert that to a *.avi file or *.mp4 file. But, audio sync seems to be a problem.
I will give ProjectX a shot.
pete
21st February 2008, 19:25
You could also use mencoder (or ffmpeg) to encode your DVD, if you don't mind using commandline tools. They usually don't have problems with a/v sync.
weaver4
23rd February 2008, 14:51
After I used:
mplayer dvd://1 -dumpstream -dumpfile dvd.mpg
To rip the DVD I then used the following statement to encode to an xvid file.
mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=3 -alang en -vf crop=720:352:0:62,scale=640:-10 -o ~/Videos/test4.avi dvd.mpg
This file was in sync!
But when I use avidemux the output avi file is out of sync. Since avidemux uses mencoder I am a little confused on how this could happen.
LoRd_MuldeR
23rd February 2008, 18:29
Since avidemux uses mencoder I am a little confused on how this could happen.
Avidemux does not use MEncoder. Who said that? :eek:
weaver4
23rd February 2008, 20:07
Avidemux does not use MEncoder. Who said that? :eek:
Opps, I knew that avisnth was not available on Linux so I made a bad assumption. What does it use?
LoRd_MuldeR
23rd February 2008, 20:18
Opps, I knew that avisnth was not available on Linux so I made a bad assumption. What does it use?
Avidemux doesn't "use" anything! And it's definitely not a front-end to MEncoder or ffmpeg :p
The program was written from the scratch by Mean and it's fully self-contained. It incorporates several OpenSource libraries, such as libavcodec (which is developed by the "ffmpeg" project, but must not be mixed-up with the ffmpeg application itself!), mpeg2enc, x264 and Xvid. Also it includes various Filters that were ported from VirtualDub, Avisynth or MPlayer. But the core application (GUI, splitters, muxers and all the rest) is different from any other video editing application in existence!
BTW: Although Avidemux does not "use" Avisynth as an integral part, Avisynth input is supported! That even works on Linux: While Avidemux can run as a native Linux process, Avisynth and the AVS Proxy application run inside Wine. I have not tested Avisynth input on Linux, but I read it works fine...
pete
23rd February 2008, 20:48
But when I use avidemux the output avi file is out of sync.Did you try ProjectX as suggested?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.