PDA

View Full Version : 0.28.8 splitting and audio problems


MrNoogies
2nd May 2004, 14:34
Please help, this is getting extremely annoying. :(

I'm trying to do a 2CD rip of My Cousin Vinny with AC3. It's a 2 hour movie.
Now, this movie apparently compresses extremely well... so well that I'm doing maximum resolution (704x384) and I get 97.3% of the compressibility test! This is also with a 157mb 2ch AC3. So what this means basically is that I can't get a lower percentage, because everything is at max.

Here's where the problems begin. First I did a DivX5.1 encode. The result was 2 files which while being perfect in size, were totally out of sync with the audio.
I tried using XviD. This was even worse: the result was 2 files of 700mb, plus and additional 3rd part (!) which was 50mb. The sound was also completely out of sync.

Helpless, I turned to the forums. I read about the BeSweet bug, and downloaded and installed b26, and started another XviD encode. Thinking it would be better to give the encoder some room, I changed the CD size from 700mb to 695.

Again, I got 3 files, 697mb, 691mb, and 49mb! And the audio was STILL not in sync!
Here's the log if you're interested:

--------------------------------------------------------------------
5/2/2004 7:33:18: Job "MyCousinVinny Xvid" started.

o Xvid - First Pass: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs
o Xvid - Second Pass: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs
o Mux Audio.
o Splitting final movie.
End of Job 2 (MyCousinVinny Xvid).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncXvid_All
Number: 2
Name: MyCousinVinny Xvid
Platform: WinXP (5.1.2600).2

Files:
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi
AviMovie: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_Movie.avi
AviCredits: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_Credits.avi
MovieFS: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs
CreditsFS:
Log : D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.log
Stats: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.stats
Ecf : D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.ecf

Options:
Quality/DRF: 0
CreditsStart: 0
UseEcf: 1
CreditsIVTC: 0
CreditsAppend: 0
DeleteInterm.: 0
EnforceBitrate: 0
AntiShit: 0
Split final file at CD size:695

Calculator:
VideoSize: 1254339 kbyte.
Audio1Size: 160929 kbyte.
Audio2Size: 0 kbyte.
Overhead: 8091 kbyte.
AviSize: 1423360 kbyte (1390 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1423360 kbyte (1390 mbyte).
Interleaving: 1stream
Bitrate: 1496 k(=1000)Bits/s
Frames: 171654
FPS: 25.000
Duration: 154:26
Quality: 0.221 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.227 bits/(pixel*frame).
Resolution: 704 x 384

Audio 1:
Mode: Just Mux Source File.
SourceFile: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY Track 1 English DELAY -96ms.ac3
WavFile: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY Track 1 English DELAY -96ms.wav
Mp3File: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY Track 1 English DELAY -96ms.mp3
Azid:
Lame:
Delay: -96
Interval: 1
Preload: 500

Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

7:33:18: Audio 1, determined: 160929 kb
7:33:18: Audio 1, calc: 160929 kb
7:33:18: New Bitrate for Movie = 1496 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Xvid - First Pass"
// $input "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs"
// $output "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY.avs",0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(3012,"Aw[...]AAAAAA");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

7:33:18: Started Xvid - First Pass: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs
8:24:04: Finished Xvid - First Pass: Duration: 50 minutes, 45 seconds.
8:24:04: Trying to open Log-file.
8:24:04: Success: Log-file open.
8:24:04: Encoded: 171655 Frames.
8:24:04: Speed: 56.356 Frames per Second.
8:24:04: New target size = 1254339 Kb

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Xvid - Second Pass"
// $input "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs"
// $output "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY.avs",0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(3012,"BQAA[...]AAAAA");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

8:24:04: Started Xvid - Second Pass: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avs
10:35:30: Finished Xvid - Second Pass: Duration: 2 hours, 11 minutes, 25 seconds.
10:35:30: Speed: 21.768 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Append"
// $input "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_Movie.avi"
// $output "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY_Movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY Track 1 English DELAY -96ms.ac3",0x00000203,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-96);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:35:30: Started Muxing Audio.: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_Movie.avi
10:37:45: Finished Muxing Audio.: Duration: 2 minutes, 15 seconds.
10:37:46: Total File Size is: 1435 Mb

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Splitting file"
// $input "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi"
// $output "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-96);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Clear();
VirtualDub.subset.AddRange(0,85760);
VirtualDub.SaveAVI("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY_part1.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:37:46: Started Splitting final file to: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part1.avi: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi
10:39:16: Finished Splitting final file to: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part1.avi: Duration: 1 minute, 30 seconds.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Splitting file"
// $input "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi"
// $output "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part2.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-96);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Clear();
VirtualDub.subset.AddRange(85760,82391);
VirtualDub.SaveAVI("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY_part2.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:39:16: Started Splitting final file to: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part2.avi: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi
10:40:50: Finished Splitting final file to: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part2.avi: Duration: 1 minute, 33 seconds.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Splitting file"
// $input "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi"
// $output "D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part3.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-96);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Clear();
VirtualDub.subset.AddRange(168151,3503);
VirtualDub.SaveAVI("D:\\DVD\\Projects\\MY_COUSIN_VINNY_VTS_01_PGC1\\MY_COUSIN_VINNY_part3.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:40:50: Started Splitting final file to: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part3.avi: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi
10:41:00: Finished Splitting final file to: D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY_part3.avi: Duration: 10 seconds.

10:41:00: Done.
10:41:00: Movie = D:\DVD\Projects\MY_COUSIN_VINNY_VTS_01_PGC1\MY_COUSIN_VINNY.avi
Total Encoding Time: 3 hours, 7 minutes, 42 seconds.
5/2/2004 10:41:00: Job "MyCousinVinny Xvid" finished.
_______________________________________________________________________________________________________________________


I'm going crazy here, please help me. This is not my first time, I've been encoding for almost a year now with Gordian Knot and DrDivX, and I've always been successful. But I can't seem to encode this goddamn movie properly!
I've read that if you go over 80% of the comptest value, you might not be able to reach your file size. But what can I do? One CD isn't enough since it gives me 42% of the comptest.

Note: DivX5.1 gave me 79% of the comptest. And as I said, it had no problem splitting, but the audio wasn't in sync. While this might have been fixed now that I have BeSweet b26, I really want to encode this with XviD rc4. :angry:

Please bless me with your wisdom, so that this story can have a happy end.
Thanks.

gatormac
3rd May 2004, 20:47
This doesn't solve your audio asynch problem, but your statement about not being able to get below 97.3% isn't entirely true. You can lower the filesize to get closer to 80% if that is the quality you usually try to shoot for. Who says the movie HAS to fill 2 CDs entirely? Or you may even be able to fit it comfortably on 1CD with the right settings/quantization matrix. Percentages >80% shouldn't cause any problems however...I routinely encode at a quant of 2 (100%) and have no issues.

As for the asynch problem, are you muxing the original 2ch AC3 track? If so, besweet won't make a difference as it's only being used if you are converting the AC3 track to MP3 for muxing. There really would be no need to do that as the AC3 track and MP3 track would be relatively the same in size for 2ch tracks, but the MP3 wouldn't sound as good.

On the "Interleaving & Avi overhead" section of GK's bitrate section are you unchecking "Calculate Frame-overhead"? XVID doesn't seem to do too well if that is checked.

Otherwise, how did you rip, index/demux the movie? I noticed it to be 25fps...is that correct?

MrNoogies
3rd May 2004, 23:37
Originally posted by gatormac
This doesn't solve your audio asynch problem, but your statement about not being able to get below 97.3% isn't entirely true. You can lower the filesize to get closer to 80% if that is the quality you usually try to shoot for. Who says the movie HAS to fill 2 CDs entirely? Or you may even be able to fit it comfortably on 1CD with the right settings/quantization matrix. Percentages >80% shouldn't cause any problems however...I routinely encode at a quant of 2 (100%) and have no issues.

As for the asynch problem, are you muxing the original 2ch AC3 track? If so, besweet won't make a difference as it's only being used if you are converting the AC3 track to MP3 for muxing. There really would be no need to do that as the AC3 track and MP3 track would be relatively the same in size for 2ch tracks, but the MP3 wouldn't sound as good.

On the "Interleaving & Avi overhead" section of GK's bitrate section are you unchecking "Calculate Frame-overhead"? XVID doesn't seem to do too well if that is checked.

Otherwise, how did you rip, index/demux the movie? I noticed it to be 25fps...is that correct?

Thanks for the reply.

Yes, it's a PAL 25FPS source, and you're absolutely right about the audio, the mp3 and the AC3 are only about 50mbs apart in filesize (the log shows this as well).

By the way, I solved the file size problem... silly me, I didn't reconfigure the new XviD codec when I installed 0.28.8. After telling it to use "Twopass-1st pass" on the first pass and "Twopass-2nd pass" on the second, I got two perfect 698mb files... but the audio STILL isn't in synch.
And yet again, if I play the unsplit movie file, the audio IS in synch there. :angry:

I'll try to uncheck the "Calculate Frame-Overhead" box and do another encode (for the 6th time...) right now. I'll let you know how it goes.

Thanks alot man.

P.S. Another question, if I may: if over 80% of the comptest is ok... then what is a good percentage? The guides say that below 60% isn't good quality, 65%-75% is perfect, and that over 80% is (and I quote) "serious overkill". What is a good percentage then? Should I try to get to 100% on all my encodes?

gatormac
4th May 2004, 00:46
No...100% is overkill....I'm just a freak about perfection, so if I can encode at a Quant of 2 and have a filesize 2GB or less I will do it. I would recommend staying between 70% and 80%, whichever suits your filesize needs at any given time. I don't think you will notice much difference within that 10% unless you watch your movies frame by frame and even then it would be tough to see a difference.

If you can't figure out why the audio is asynch after splitting maybe you can take the in synch full movie file and split it manually in VDubMod.

MrNoogies
5th May 2004, 11:23
Wooohh, fixed it. Turns out it was the known DVD2AVI 1.76 bug with asynched audio. After ripping the audio again with the newest DVD2AVI, it turned out that the delay was -16ms and not -96ms... talk about asynchronization!
Reencoded the file, and it worked beautifully. Needless to say with a 98% compression ratio it's also one of the highest quality encodes I've ever seen. THanks from the bottom of my heart goes out to all of you on this forum and to the wonderful developers of GKnot. Cheers! :D