Log in

View Full Version : Audio and video alignment


abcdefg1675
23rd July 2005, 09:55
I bought the simpsons season 4 dvd set. I downloaded gordian knot rip and codec pack. I tried the robot-rip, but it said something about a program being missing, even though the shortcut it had listen, showed that the program file was in that location.

I used dvd decrypter on disk #2. It worked fine. Now I have the .VOB's, and I need them in Divx5 for watching on my laptop.

I opened one .VOB in nandub. It popped up about 5 pages of errors, saying "asycronistic audio timestamp". I clicked ok, added deinterlace as a filter, set the encode resolution to 320x260, a bitrate of 700Kbs, and saved it. It started encoding, about 12Fps on my 1.8Ghz amd, and I let it run untill it was done.

I opened up the file in windows media player. For about 10 seconds, I was feeling good, then I noticed the lips were not lining up with the voice. I skipped ahead a few minutes, and sure enough, the voice and the video were off by a few seconds. Later toward the end of the 1 hour file, the voice and audio were off horribly.

I set in the framerate options, for it to line up the audio and video. That didnt help. I set it back to the original, and set nandup to drop frames if behind. That help a little bit, but it was still off very far.

I dont know what to do. Ive encoded and edited 6 hours of dave chappel before I even tried simpsons, and it worked flawlessly (it took 12 hours to encode all 6 hours, but it came out wonderfull).


http://abcdefg.dajoob.com/video/untitled.JPG

Screenshot of my error messages

http://abcdefg.dajoob.com/video/1.avi
Short 300Kb video clip of what is wrong

I have VNC on my computer. If someone things they have an idea, just download VNC and run it. VNC is a program which can be run as a sever on one computer, and a client on the other. It gives the client full acces to the server, to use the mouse, see what is on the screen, hear sounds played, give direct access to the keyboard... Basically bringing the computer to you. Its a small download.

abcdefg1675
7th August 2005, 10:14
bump

78,000 members, and not one single person knows what is wrong?

stephanV
7th August 2005, 12:07
Your method is a bit unusual.

A more normal method would be:

1. Decrypt DVD with DVDdecrypter
2. Make a d2v project file with DGIndex and demux the right audio track. (can also be done in DVDdecrypter)
3. Create an AviSynth script to frame serve the .d2v file
4. Open the AVS script in VirtualDub (please stay away from NanDub) and encode.
(4a. Possibly encode the audio with BeSweet or Foobar with possibly correcting for the delay in the audio stream)
5. Mux audio and video together with your favorite tool in your favorite container.

Most of this is handled in guides.

mic
9th August 2005, 17:37
As stephanV said...

Adding general info: DVD's use multiple tracks, the audio & video portions can be different lengths, & the audio can have a set delay before it starts playing (perhaps why 1 might have worked and another failed). Watch for info on this when going through the guides.

greenphantom
19th August 2005, 01:48
Your method is a bit unusual.

A more normal method would be:

1. Decrypt DVD with DVDdecrypter
2. Make a d2v project file with DGIndex and demux the right audio track. (can also be done in DVDdecrypter)
3. Create an AviSynth script to frame serve the .d2v file
4. Open the AVS script in VirtualDub (please stay away from NanDub) and encode.
(4a. Possibly encode the audio with BeSweet or Foobar with possibly correcting for the delay in the audio stream)
5. Mux audio and video together with your favorite tool in your favorite container.

Most of this is handled in guides.

Hi,

Just wondering why step 3 is necessary? After I use DGIndex to demux the audio, I can use VirtualDubMod to open the new .m2v file and encode to XviD. I've done this many times and have never used AVISynth - why is it listed in so many guides?

Thanks...
gp

mic
19th August 2005, 04:24
DGIndex is often (usually?) used to create a project file, and this project file is then used with AviSynth via a script file (.avs) to load (frame serve) the original mpg2 video to another program such as VirtualDub. DGIndex also has the capability to de-mux & optionally convert & enhance the audio.

If you have a program that will deal directly with the de-muxed audio & video, like V/DubMod, thats just another method. Several tools are available to de-mux the streams -- it's a feature but not the main use of DGIndex, so you'll see a lot about it and AviSynth. To learn more about AviSynth & what it might do for you, browse that section of the forum.

abcdefg1675
28th August 2005, 09:03
Virtualdub seems to encode really slow on my computer. Its at 720x480 (or whever it should be) resolution dvd, at 1000Kpbs. Virtualdub does it at around 8-12Fps.

I ran DVD2Avi, and it encoded the same divx 5.2, same file, with the same settings, at 38-42Fps.

Maybe I am just dumb, or reading through the guides too fast, but what exactly should I use once I have my Divx5 file, and .wav audio file from DVD2AVI?

mic
28th August 2005, 19:58
Once you have a wav file, you can use V/Dub or your choice of encoder to compress the audio, often to mp3. This can be muxed with your divx video, often also with V/Dub.

RE: fps encoding..,
I'd actually forgotten that the orig DVD2AVI saved avi files. Reading the comments on it at videohelp.com, seems the audio sync issues weren't (or aren't) uncommon.

Most of the time folks use DGIndex because of it's accuracy, & because it's eliminated many prob. that existed in earlier DVD2AVI. In my experience, and I think in that of most others, using Avisynth or VFAPI to serve the orig. mpg2 to V/Dub (or any other editor) doesn't cause any significant lag times. And actual encoding times are comparible if not faster then most other methods I think.

The only thing I've tried that really reduces encode times is Nero Recode going from DVD to Nero Digital, though personally I don't think at the same quality as slower methods.

abcdefg1675
26th September 2005, 03:05
I downloaded DgIndex, and will be messing with that tonight.

I managed to get robot4rip working, I let it rip, run it through the processes, and it still came out backwards and off.

While running dvd2avi, I noticed it said on the side, it kept changing between NTSC 91% to film 13%. The numbers were fluctuating constantly, but the NTSC part never went above 82. It even went down to 87% some parts of the movie.

Normal?

Guest
26th September 2005, 04:07
While running dvd2avi, I noticed it said on the side, it kept changing between NTSC 91% to film 13%. The numbers were fluctuating constantly, but the NTSC part never went above 82. It even went down to 87% some parts of the movie.

Normal? It's not unusual. You should try with Video/Field Operation/Force Film and see if you like the result. If not, you'll have to use Honor Pulldown Flags and do IVTC externally. You have a hybrid video, which is challenging, even for the experts.

Be sure to read and follow the Quick Start guide that comes with DGMPGDec.