Log in

View Full Version : DVD rips are out of sync


neo_sapien
13th January 2002, 03:05
Gordian Knot 0.21 Full
0.23 Update

Hi there. My two latest DVD rips, "Saving Private Ryan" and "Seven Years in Tibet" have been very much out of sync, like the video track will be at 0:28:00.00 and the audio will be at 0:06:00.00.

The only way I can find to circumvent this is to create a DVD2AVI project of the whole movie, load it into GKnot to get a 2 or 3CD bitrate and a good crop/resolution, then encode each VOB file individually according to those settings. I take the resulting DivX files and mux the AC3 audio (be sure to include the AC3's delay), append the other DivX files, minus the trouble VOB (in SPR this was VOB 7-last VOB), segment them to 701MB, and append the final DivX to the last segment, which should be less than 700 megs. You then match the audio/video durations in Nandub (they should be within .004 fps of 23.976 or so). This gives me 2 or 3 700 meg DivX files which, in the case of SPR, weren't synced at 23.976fps, but rather 23.978. Other than that, they played in sync.

That's a rather cumbersome circumvention, eh? The FPS being not equal to 23.976 FPS makes me worry that I won't be able to play my master rips *cough cough* on a 60" HDTV when the seventh layer of hell freezes over and I can buy a consumer DivX player :)

Has anyone encountered this problem? Is there another way around it? I don't want to be the only one out there ripping individual VOB files and getting non-consumer playable 23.979 FPS DivX files, lol.

Thanks for taking the time to read my post, I'd truly appreciate a reply. This has been bugging me for a week :)

TheWEF
13th January 2002, 03:42
Originally posted by neo_sapien
My two latest DVD rips, "Saving Private Ryan" and "Seven Years in Tibet" have been very much out of sync, like the video track will be at 0:28:00.00 and the audio will be at 0:06:00.00.

you have to tell us exactly what you did to get these out-of-sync videos.
if you follow doom9's guide step by step there really can't be a sync-problem. so what did you do that was different to what is written in the guide?

wef.

Doom9
13th January 2002, 03:48
hmm.. I did SPR in both divx4 and divx3 using gknot when I first started testing gknot.. I did the audio manually but also with azid and lame.. and the thing synched just fine (even with vbr audio)... how did you rip?

neo_sapien
13th January 2002, 05:00
Thank you for replying :)

Steps: (Using the program versions that came with GKnot 0.21 full, 0.23 update)

1. Extract the vobs using Smartripper. I extract the English 6-channel audio and the video stream from the DVD.

2. DVD2AVI Project. I open the vobs in DVD2AVI, select "Demux" and "Demux all tracks" under the necessary audio menus, select "Force Film" and YUV and PC scale under the necessary video menus. I save the project, and DVD2AVI saves the AC3 file automatically.

3. Gordian Knot. I open the DVD2AVI project in Gordian Knot, set the program up for a 2 or 3-CD rip, select my audio track, calculate the AC3 frame overhead, input NTSC and either 16:9 or 4:3, autocrop, manually crop and then select smart crop all, calculate the correct resolution using compressibility test while trying to keep sharp bicubic in the cards, tell GKnot at what frame the credits start rolling, press Save & Encode, select "Both" under Trim so it will encode the credits at a lower bitrate, save the frameserver and start encoding to DivX 3.

(About 6 hours later)

4. Muxing audio. I open my video stream (which should be ~1700 megs for a 3 CD rip) in Nandub, select Direct Stream Copy under Video, select my 6-channel AC3 file that DVD2AVI saved in the audio menu under AC3, go to interleaving, input 42ms (what Gknot usually recommends), and usually leave the delay value alone, depending upon what the DVD2AVI file name reads. I save that file.

This is where everything becomes discombobulated. I open my new 2100 meg file in PowerDivX 3.12, and the audio is way out of sync.

TheWEF
13th January 2002, 06:32
1) i don't know, but maybe this is your problem. you don't need to use stream processing in smartripper if you demux with dvd2avi. try to just use movie mode, no stream processing. then create a new project-file and "demux all".

2) ok.

3) right before you start the encoder you could select the ac3-track in "audio1", check "just mux" and gknot would finally mux it automatically.

4) never use ms (doesn't make sense), always use number of fames to specify the interval. gknot default is 2 frames (~84ms at 23.976 fps), preload 500ms for ac3, delay as in filename. try 1,2 and 3 frames, maybe this solves your problem.

do other avis with ac3-sound play fine in powerdivx ?

wef.

neo_sapien
13th January 2002, 06:57
Other AVIs with AC3 audio play fine, yes, so long as they only have one audio stream. If they have two audio streams, you get a 380 Run-time error while trying to switch from one to the other.

neo_sapien
14th January 2002, 01:59
I tried redoing SYiT in Gordian Knot twice, I'm still getting the exact same sync issues.

1 frame interleave is asynchronous, as is 2 frames and 3 frames.

I think it's the playback filters. If I start up the movie and watch it through without jumping ahead to another scene to test out the sync, I get a synced movie. I have PowerDVD 4.0 XP, a 6-channel digital speaker system, and I believe I installed the S/PDIF out enabler that came with graphedit to get AVI and AC3's to play together. However, if I jump ahead to say, 0:50:00.00, the sound is way out of sync. If I then jump back to 0:05:00.00 (where the sound is sync while I'm watching it through), the sound is out of sync again. Is it something wrong with the keyframes? I just noticed this, because I was always testing the sync by jumping ahead to 1/4, 1/2, 3/4 and then 99% through the movie.

neo_sapien
21st January 2002, 12:21
Oddly enough, the sync issues now seem to be gone. I've gone back to encoding all VOB files at once, as per the guide's instructions. This is odd because I haven't done anything significant (haven't updated filters or drivers, or anything really). My X-Men, Enemy at the Gates, and 2001: A Space Odyssey rips are all in sync now. All are 2 CD rips with DD 5.1.

Good thing I saved the VOB's on SPR, I can do it over and get it right this time :)

neo_sapien
21st January 2002, 16:21
I was wrong. Thirteen Days is out of sync.

Sharro
24th January 2002, 12:01
Which is your cpu speed, memory, graphic and audio card?

Take care

Sharro

neo_sapien
24th January 2002, 15:14
CPU: AMD Athlon XP 1500+ (1.33ghz)
MEMORY: 512MB Mushkin Basic CL2.5 DDR Ram (1 stick)
VIDEO: Leadtek Winfast Geforce 3 Ti200 64MB DDR
SOUND: Creative Labs Sound Blaster Audigy! Platinum

I just did a 2 CD rip of 13 Days, intended for stereo sound and not dolby 5.1. Since no 192kbps Dolby 2.0 track was included on the DVD, I transcoded the 448kbps AC3 to MP3 using a Gknot audio job (max gain search, azid -L -3db -c normal, lame -V 0). I used all VOB files at once, as in the guide (no individual VOB encoding), calculated the VBR-mp3 overhead, adjusted the bitrate for the lame mp3, encoded a new video file, and muxed.

Now I have a 2 CD rip of 13 days with MP3 audio instead of AC3, and the sync is perfect. So why is AC3 causing async?

neo_sapien
25th January 2002, 15:33
Same thing with Pearl Harbor and Saving Private Ryan. I did 2 CD rips of them with Lame VBR 0 audio, and the sync is perfect. Maybe AVI's weren't designed to handle AC3 audio?

Sharro
25th January 2002, 16:01
All my rips with AC3 audio (7 in total) came out perfectly even the ones with dual streams.

Are you guys forgetting the audio delay?

Jesus...it never happened to me and if you guy's respected the guides they should come out just fine.

Regarding problems of GKNot with ac3 audio.... I have never found any... They just made my 2cd rips much easier to achieve file size...

Take care

Sharro

neo_sapien
25th January 2002, 22:24
I'm not forgetting the audio delay. Did all 7 movies have 5.1 AC3 audio? The problem might be confined to 5.1 DD tracks.

neo_sapien
28th January 2002, 19:10
Hopefully one day someone can use this info I'm gathering as to 5.1 DD sync:


Dolby Digital 5.1-------
I just did a rip of Gladiator. In the 2.04 GB project file, I had Dolby Digital 5.1 as the sole audio track. Also in the 2.04 GB project file, the audio stream is asynchronous by about the length of the last VOB file. Segmenting the project file into three pieces, each ~701 MB rendered the 3 final AVI's synchronous, though I don't believe that even the segmented files were synchronous in SPR. I will re-encode SPR using all VOB's to check.

Dolby Digital 2.0-------
In my 1.36 GB project file of Gladiator Dolby 2.0, the sound is synchronous right off the bat. The same goes for the two ~701MB segmented files.

This radical async is only present in AVI's usually over 2 and a half hours with Dolby Digital 5.1. On that note, 2001: A Space Odyssey was not infected. I can infer from the data that I've gathered that the asynchronous audio is caused by a discrepancy between the first and last compressed versions of the VOB files. I cannot at this point elaborate on that discrepancy; not enough data.