Log in

View Full Version : Audio / Video sync issues (DVD movie)


pojke
18th August 2006, 05:37
I'm trying to backup V for Vendetta using DGindex > avisynth > CCE > DVD-lab.
The source file is an .mpg that was extracted with TMPGenc DVD-author
The first try had audio synch issues (gets progressively worse throughout the video), so I made the script as simple as possible:

Mpeg2Source("E:\movie\vendetta.d2v")

but the problem remains. I tried several combinations of settings and nothing works.

Finally I noticed that when I opened the .avs file with CCE, the audio and video show up with different times (audio is the same as the mpeg's length, but video is about 8 secs shorter).

running DGindex with "honor pulldown flags" checked shows the following result:

http://204.127.198.24/~nonpc/pics/dgindex.gif

Any ideas about what is wrong?
Is the error significant?
Given the above DGindex results, what are the proper settings for DGindex and CCE?

I know I could use something like DVD Rebuilder, but I don't have the program and would prefer to stay with avisynth so that I can have more control over it, including changing the audio to 2ch 192.

Guest
18th August 2006, 13:47
How did you rip the movie from the DVD?

pojke
18th August 2006, 17:11
With DVD Decrypter in File mode.

LocalH
18th August 2006, 18:23
The source file is an .mpg that was extracted with TMPGenc DVD-author
There's no need to extract the video to an MPG container - DGIndex will happily parse video that is still stored in VOBs. It might be a little more complicated if you want to keep all the menus intact, but if you just want to rip the main movie (which is what this sounds like to me, given that you have already lost the menus when extracting an MPG), then you can use DVD Decrypter in IFO mode, where you can choose the PGC to rip. Then you would run those ripped VOBs through DGIndex.

pojke
18th August 2006, 18:59
That's good to know since it could save a step with some future projects, but I would normally prefer an mpeg file so that I can edit with the precision I want (video redo), sometimes removing unnecessarily long intros or credits at the frame of choice.

Note: the audio-video time discrepancies occur whether edited or not, so it's not a result of Video Redo.

Pookie
18th August 2006, 19:29
If you Demux each single VOB file and remux it, do you still have sync problems? Perhaps the problem is only with a single VOB

You can demux with DgIndex, Mpeg2Cut2, and I think VideoRedo as well

You can mux with Imago

http://www.videohelp.com/~liquid217/ImagoMPEG-Muxer.zip

pojke
18th August 2006, 22:00
I demuxed the first main vob, VTS_01_1, with TMPGenc's mpeg tools and loaded the streams into DVD-lab. It shows them like this:

http://204.127.198.24/~nonpc/pics/labstats.gif

As you can see, the times are significantly different. The remuxed mpeg file, is very much out of sync, much worse than the DVD I created. Interestingly, this is the first portion of the disk, the part that was most in sync in the authored DVD.

I don't know what to make of this because the full mpeg file that I'm trying to reencode, plays perfectly in Media Player Classic. It's only when reencoded with CCE and authored that it becomes out of sync. That's why I'm wondering about the proper DGindex and CCE settings and if that could possibly solve the problem.

Hurricane Neddy
19th August 2006, 07:36
That's good to know since it could save a step with some future projects, but I would normally prefer an mpeg file so that I can edit with the precision I want (video redo), sometimes removing unnecessarily long intros or credits at the frame of choice.

Unless you're doing something special wouldn't the Trim function in avisynth do exactly what you want?

pojke
19th August 2006, 19:06
Unless you're doing something special wouldn't the Trim function in avisynth do exactly what you want?I suppose it could in some cases, but Video Redo is better than anything I've ever seen at removing parts of mpeg video. Importantly, the preview mode allows you to instantly see the edited version with no hesitations, jerks, or problems of any kind. The precision and ease with which it navigates through and edits a video makes virtualdub's interface seem frustrating and annoying in comparison. To me it's very much worth the step of extracting the mpeg file first.

Hurricane Neddy
20th August 2006, 02:54
I suppose it could in some cases, but Video Redo is better than anything I've ever seen at removing parts of mpeg video. Importantly, the preview mode allows you to instantly see the edited version with no hesitations, jerks, or problems of any kind. The precision and ease with which it navigates through and edits a video makes virtualdub's interface seem frustrating and annoying in comparison.

If all you want is frame specific trimming avisynth can do that. And if you want instant preview all you have to do is hit f5 if you are using vdub and it reloads the script and puts you exactly back at the frame you were.

To me it's very much worth the step of extracting the mpeg file first.

And yet it's causing you audio desynch problems. I mean it's up to you, but I'd rather use the way that doesn't give me audio desynchs.

pojke
20th August 2006, 04:11
And yet it's causing you audio desynch problems.Why did you conclude that? See the above posts where Pookie suggested trying a VOB instead of the mpeg. I did that, and it was very much out of sync.

Since the mpeg plays perfectly by itself, my suspicion is that I'm not encoding it correctly. That's why I want to know about the proper settings for DGindex and CCE.

As for virtualdub editing, yes, those things can be done but as I said, I prefer VRD because, by comparison, the process and interface are more convenient, fast, and intuitive. Also, whenever I've tried to edit like that with Vdub I can't get sound (not sure why).

pojke
20th August 2006, 06:01
Update:

I reencoded it again, this time with force film in DGindex and 23fps / 2:3 pulldown selected in CCE -- then muxed with both TMPGenc and Imago.

It's significantly better, if still very slightly out of sync. I'm not sure if most people would notice though. Maybe this is the best that can be hoped for.

Interestingly, the sync is slightly better with the Imago mux.
But the Imago muxed mpeg is 218mb larger than the TMPGenc mpeg!! What's going on with that? It's a full 276mb larger than the combined elementary streams and would require a lower bitrate to fit on a DVD.