PDA

View Full Version : Avi longer than sound


kartakis
22nd January 2002, 13:13
I tried to convert the DVD Enemy at the Gates(PAL) using the latest version of Gordian Knot and Divx 4.12. I decided to encode just the video and mux the sound seperately.
The Avi file was very good in quality and the sound was converted in MP3 using Graphedit and RazorLame for the AC3->Wav->Mp3 conversion.
I muxed the two files using NanDub and the resulting avi seemed ok. As I forwarded it I found out that in the begining of the avi the sound and the video were in sync. As time passed they became more and more out of sync and at the end on the avi there was 2 sec video delay.
I checked both files and found out that the Avi was 2 sec bigger than the sound file. I 've tried to enconde the sound again or just use the AC3 file but I got the same results.
Because the sound and video in the begining was in sync and slowly became out of sync I came to the conclusion that somewhere in the conversion there were inserted more frames per second than the normal 25fps. A frame every 2 min made the video to gradualy get out of sync( perfect sync in the begining 2sec delay in the end).
Of course I deleted all the files, in a fit of rage :), and returned to the trusty, and buggy, Xmpeg.
Does anybody had a similar problem?
Nikos

UHT
22nd January 2002, 13:30
sounds like a framerate issue with either the sound or audio, you coud always strip the audio out of the video and try vdubs match audio and video framerate and then remux

kartakis
22nd January 2002, 15:09
I 've tried many times to create a sound file with the same length as the movie. I tried both the Gordian Knot demuxing option and directly from Subripper. From the SubRipper I got a file 1 sec smaller but I thought that it was a problem of the ifo parsing so I desided to use the AC3 file which Gordian Knot created.
I don't know why there would be a problem in the frame server. The DVD was at 25fps and through casual viewing of the created avi( without sound) I couldn't find any problms or parts where the frames would look funny. That's why I think that while encoding, NanDub inserted every few minutes a frame in the movie. I didn't think to write down the presise number of frames of the original movie and the final avi so it is only a speculation.
Nikos

|nemesi|
22nd January 2002, 18:57
I have resolved this problem editing with a text editor (like notepad) the *.d2v file that DVD2AVI create.
I generally go at the end of the file and I deleted some line.
You must consider that every line corresponds to 0.5 seconds (2 line = 1 second).
I have made this operation with many dvd (about 10 dvd) and I have not met problems.
:)