Log in

View Full Version : How to encode double sided DVD


shrekkie
25th December 2004, 00:28
Hey ppl,
I am trying to encode a movie called "Wyatt Earp" which has the movie on two sides and hence the movie is not one big VOB file, when I start side B it is blank for 49 frames and then it continues with the movie. I tried adding both VOB's to DGindex and made a d2v project file and encoded with Gordian Knot, the result was no good, the video and audio was horribly out of sync. I am kinda a n00b to double-sided DVD encoding, so any help fro m scratch would be appreciated. Wyatt Earp is a 190 min long movie by the way and I don't want to encode each side seperately, 3 CD's is what I am looking to encode.

I tried searching for help on this, but maybe my searching methods were not good coz I didn't find any specific help.

Thanx in advance

suspiciousBob
25th December 2004, 00:31
I had this problem recently.

What I did was rip side 1 to a dir
Rip side 2 to a different dir
Load all the vobs into DGindex and demux like that.

When i encoded the movie, there were some blank frames between the end of side 1 and the start of side 2, so after encoding finished I just trimmed them out with Vdub, and this brought the audio into sync over the second half of the movie.

manono
25th December 2004, 18:27
That method should work, unless there are fade-ins and/or fade-outs involved, in which case the keyframes won't be set in the right places for cutting.

You didn't say if you were PAL or NTSC. 49 frames is just under 2 seconds for PAL and just over 2 seconds for NTSC. I'd do it this way:

First find out the difference between the length of the audio and the video. I'd open the AC3 in HeadAC3he which will give you an accurate audio length. I'd open the .avs or the completed out-of-synch AVI in VDubMod and go to the end to find out the video length. The difference should be around 2 seconds. Cut out the number of frames that corresponds to that difference. 1 frame=40ms for PAL, and 41.71ms for NTSC.

To do that, Trim (cut out) those black frames before encoding. Say that the 49 black frames begin at frame 200000. Then you would add this to the end of your .avs script:

Trim1=Trim(0,199999)
Trim2=Trim(200049,0)
Trim1+Trim2

Save the modified .avs, and open it in VDubMod before encoding to make sure it does what you want it to do.

And I know that jggimi has some other ways to accomplish this. :)

jggimi
25th December 2004, 19:46
My way, after having experimented with AviSynth trim options, is to now use VobEdit. I rip to separate folders, renumber the 2nd vob set to be sequential with the first, and then use VobEdit's Edit...Join Clips command. It does take more disk space, but it eliminates audio delay issues.

You will want to ensure that leading and trailing chapters are content rather than short chapters containing the like of "continued on disc 2." If you have these sorts of chapters, just de-select them during the rip.

shrekkie
28th December 2004, 14:44
ok there's a big problem now, I just encoded the movie by adding the two vob's to DGIndex and creating a project file. After this I edited the video and deleted those blank frames but the problem still persists, I get a "click" sorta sound at that point where i cut the frames out. I still have the original non-edited encoded file and I really don't want to encode this movie again, if there is a solution for this, please help me :(

By the way I ripped it into 3 CD xvid and with the ac3 codec. The source DVD was PAL by the way. I checked the length of the AC3 file using headac3he and the length is 03:02:58:496 and the length of the video is 03:02:50:000

jggimi
28th December 2004, 16:27
...03:02:58:496 and the length of the video is 03:02:50:000...

This is why I recommended VobEdit.

manono
28th December 2004, 18:13
So, you did it suspiciousBob's way, by cutting out the frames after encoding? If you really cut the 49 frames, you might try remuxing the original audio with the edited final .avi. I've gotten those clicks before also, when cutting a completed .avi with audio.

The fact that the audio is so much shorter than the video could mean that the audio ended before the end of the movie, in addition to the amount represented by those 49 frames. Not necessarily a deal breaker. It could also mean that a lot more than 49 frames have to be cut between the 2 parts of the movie.

shrekkie
29th December 2004, 02:41
actually it's a lot more than 49 frames, it's about 170 frames, I tried re-muxing the original audio with the edited final avi file with all those blank frames deleted, but the sync issue persists, although the click sound is non-existent now. The fact that the audio is longer than the video makes this even harder, maybe there is a way I can add a few extra blank frames so I can get the sound in sync? there has to be a way to fix this rite?

audio length = 03:02:58:496
video length = 03:02:50:000

the audio seems to be 8 and a half seconds longer, maybe I can edit the AC3 audio to make it 03:02:50:000? Is that a feasible solution?

manono
29th December 2004, 10:51
Sorry-I read it backwards, as the video being longer than the audio. You must have wondered if I had been drinking or something.

Yes, there are ways to fix it without reencoding. You can add black frames to get it back in synch. But that's going to make for an awful lot of black frames between the 2 parts. Better, I think, is your second idea of editing the AC3 audio to cut out the 8 seconds. It goes out of synch after the end of side 1 of the DVD, right?

Is there 8 seconds of silence in the audio between the 2 parts? Split the complete AVI with audio into 2 parts at the end of the first part (after which it begins to go out of synch). Extract the AC3 for the second part. Open it in HeadAC3he. Set the Destination Format for Source. Adjust the Start Frame to allow for the 8+ second delay. Do it by time, and not by frames (audio frames being different than video frames). Save it as Part 2-Fixed or something like that. Mux it into Part 2 again. Rejoin the 2 parts. Test it out. There's a good chance that the audio won't be exactly in synch after doing it the first time, but you should get it right the second time.

Another way to accomplish the same thing is to do some careful figuring (length of Part 1+8.496 seconds) and cut what you want out of the original full-length AC3.

If you decide that adding black frames is a better idea, then BlankClip (http://www.avisynth.org/BlankClip) is what you want.