Log in

View Full Version : Problems encoding Bad Boys 2 (DivX 5)


sidawg
6th January 2004, 01:42
Hi,

I have no idea where to post this and I don't really know where to begin searching the forum for my answer so please forgive me if this has already been asked.

I am trying to encode Bad Boys 2 DVD to DivX 5.1.1 and am having problems with reaching full CD sizes. I always encode 2 copies of every DVD (700MB & 1400MB) but am having real difficulties with this one. I've also noticed that the framerate is set to 30FPS after ripping this DVD with R4R (I always get 24FPS with other DVDs). The codec is not maxed if that's what your thinking as I'm only getting 1200kbits bitrate at 2CDs.:confused:

I'm using the latest version of gknot (0.28.7) but I reverted back to VirtualDubMod 1.5.4.1 (previous version) because of CD splitting problems with the latest version. I've tested this setup and it works fine with encoding other DVDs.

Anyways... that's everything that I can think of to describe the problem. Any insight would be appreciated.

Thanks! :)

sidawg
6th January 2004, 01:43
Here is a log file for my 1CD encode:

01.05.2004 5:42:58 AM: Job "DivX [Widescreen] - 1CD" started.

o DivX5-Single, Quality 20 : C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Credits.avs
o DivX5-First Pass: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs
o DivX5 - Pass 2: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs
o Append Credits and Mux Audio.
o Delete Intermediate Files.
o Splitting final movie.
End of Job 1 (DivX [Widescreen] - 1CD).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All_CreditsSep
Number: 1
Name: DivX [Widescreen] - 1CD
Platform: Win2000 (5.0.2195).2

Files:
VirtualDubModExe: C:\Program Files\GordianKnot\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\Program Files\GordianKnot\Nandub\Nandub.exe
AviFinal: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avi
AviMovie: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Movie.avi
AviCredits: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Credits.avi
MovieFS: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs
CreditsFS: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Credits.avs
Log : C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].log
Stats: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].stats
Ecf :

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

Calculator:
VideoSize: 564224 kbyte.
Audio1Size: 135949 kbyte.
Audio2Size: 0 kbyte.
Overhead: 16626 kbyte.
AviSize: 716800 kbyte (700 mbyte).
FilesSize: 0 kbyte.
TotalSize: 716800 kbyte (700 mbyte).
Interleaving: vbrmp3
Bitrate: 525 k(=1000)Bits/s
Frames: 263911
FPS: 29.970
Duration: 226:46
Quality: 0.086 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.000 bits/(pixel*frame).
Resolution: 704 x 288

Audio 1:
Mode: Just Mux Source File.
SourceFile: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms.mp3
WavFile: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms.wav
Mp3File: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms_1.mp3
Azid:
Lame:
Delay: 0
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

5:42:58 AM: Re-Calculating Frame Count.
5:42:58 AM: FrameRate was 29.970 fps
5:42:58 AM: FrameRate now is 23.976 fps
5:42:58 AM: IVTC: 211133 Frames.
5:42:58 AM: Audio 1, determined: 135949 kb
5:42:58 AM: Audio 1, calc: 135949 kb
5:42:58 AM: New Bitrate for Movie = 528 k(=1000)Bits/s

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Single Pass"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Credits.avs"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Credits.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen]_Credits.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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen]_Credits.avi");
VirtualDub.Close();

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

5:42:58 AM: Started DivX5-Single, Quality 20: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Credits.avs
5:46:29 AM: Finished DivX5-Single, Quality 20: Duration: 3 minutes, 30 seconds.
5:46:29 AM: Assumed: Main Movie has 203756 Frames.
5:46:29 AM: Assumed: Credits Part has 7377 Frames.
5:46:29 AM: Credits Size = 10158 Kb
5:46:29 AM: New Bitrate for Movie = 538 k(=1000)Bits/s

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen].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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen]_Movie.avi");
VirtualDub.Close();

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

5:46:29 AM: Started DivX5-First Pass: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs
8:13:53 AM: Finished DivX5-First Pass: Duration: 2 hours, 27 minutes, 23 seconds.
8:13:53 AM: Trying to open Log-file.
8:13:53 AM: Success: Log-file open.
8:13:53 AM: Encoded: 254695 Frames.
8:13:53 AM: Speed: 28.800 Frames per Second.
8:13:53 AM: WARNING: Number of counted frames differs from settings!
8:13:53 AM: WARNING: Settings: 203756
8:13:53 AM: WARNING: Counted: 254695
8:13:53 AM: WARNING: Difference: 50939
8:13:53 AM: Correcting Bitrate...
8:13:53 AM: Original Bitrate = 538 k(=1000)Bits/s
8:13:53 AM: Now encoding at 427 k(=1000)Bits/s

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen].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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen]_Movie.avi");
VirtualDub.Close();

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

8:13:53 AM: Started DivX5 - Pass: 2: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avs
10:10:19 AM: Finished DivX5 - Pass: 2: Duration: 1 hour, 56 minutes, 25 seconds.
10:10:19 AM: Speed: 36.460 Frames per Second.

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Append"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Movie.avi"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen]_Movie.avi",0,0);
VirtualDub.Append("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen]_Credits.avi");
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
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("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen].avi");
VirtualDub.Close();

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

10:10:20 AM: Started Appending Credits and Muxing Audio.: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen]_Movie.avi
10:12:35 AM: Finished Appending Credits and Muxing Audio.: Duration: 2 minutes, 14 seconds.
10:12:35 AM: Deleting Intermediate Files.
10:12:36 AM: Total File Size is: 590 Mb
10:12:36 AM: No splitting required

10:12:36 AM: Done.
10:12:36 AM: Movie = C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen].avi
Total Encoding Time: 4 hours, 29 minutes, 37 seconds.
01.05.2004 10:12:36 AM: Job "DivX [Widescreen] - 1CD" finished.
_______________________________________________________________________________________________________________________

sidawg
6th January 2004, 01:44
And here is one for my 2CD encode:

01.05.2004 10:12:36 AM: Job "DivX [Widescreen] - 2CD" started.

o DivX5-Single, Quality 20 : C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avs
o DivX5-First Pass: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs
o DivX5 - Pass 2: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs
o Append Credits and Mux Audio.
o Delete Intermediate Files.
o Splitting final movie.
End of Job 2 (DivX [Widescreen] - 2CD).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncD5_All_CreditsSep
Number: 2
Name: DivX [Widescreen] - 2CD
Platform: Win2000 (5.0.2195).2

Files:
VirtualDubModExe: C:\Program Files\GordianKnot\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\Program Files\GordianKnot\Nandub\Nandub.exe
AviFinal: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi
AviMovie: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi
AviCredits: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avi
MovieFS: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs
CreditsFS: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avs
Log : C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.log
Stats: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.stats
Ecf :

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

Calculator:
VideoSize: 1281024 kbyte.
Audio1Size: 135949 kbyte.
Audio2Size: 0 kbyte.
Overhead: 16626 kbyte.
AviSize: 1433600 kbyte (1400 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1433600 kbyte (1400 mbyte).
Interleaving: vbrmp3
Bitrate: 1192 k(=1000)Bits/s
Frames: 263911
FPS: 29.970
Duration: 226:46
Quality: 0.196 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.000 bits/(pixel*frame).
Resolution: 704 x 288

Audio 1:
Mode: Just Mux Source File.
SourceFile: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms.mp3
WavFile: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms.wav
Mp3File: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms_1.mp3
Azid:
Lame:
Delay: 0
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

10:12:36 AM: Re-Calculating Frame Count.
10:12:36 AM: FrameRate was 29.970 fps
10:12:36 AM: FrameRate now is 23.976 fps
10:12:36 AM: IVTC: 211133 Frames.
10:12:36 AM: Audio 1, determined: 135949 kb
10:12:36 AM: Audio 1, calc: 135949 kb
10:12:36 AM: New Bitrate for Movie = 1195 k(=1000)Bits/s

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Single Pass"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avs"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_Credits.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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avi");
VirtualDub.Close();

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

10:12:36 AM: Started DivX5-Single, Quality 20: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avs
10:15:52 AM: Finished DivX5-Single, Quality 20: Duration: 3 minutes, 15 seconds.
10:15:52 AM: Assumed: Main Movie has 203755 Frames.
10:15:52 AM: Assumed: Credits Part has 7378 Frames.
10:15:52 AM: Credits Size = 10108 Kb
10:15:52 AM: New Bitrate for Movie = 1229 k(=1000)Bits/s

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD.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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi");
VirtualDub.Close();

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

10:15:52 AM: Started DivX5-First Pass: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs
12:52:16 PM: Finished DivX5-First Pass: Duration: 2 hours, 36 minutes, 23 seconds.
12:52:16 PM: Trying to open Log-file.
12:52:16 PM: Success: Log-file open.
12:52:16 PM: Encoded: 254694 Frames.
12:52:16 PM: Speed: 27.142 Frames per Second.
12:52:16 PM: WARNING: Number of counted frames differs from settings!
12:52:16 PM: WARNING: Settings: 203755
12:52:16 PM: WARNING: Counted: 254694
12:52:16 PM: WARNING: Difference: 50939
12:52:16 PM: Correcting Bitrate...
12:52:16 PM: Original Bitrate = 1229 k(=1000)Bits/s
12:52:17 PM: Now encoding at 980 k(=1000)Bits/s

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD.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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi");
VirtualDub.Close();

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

12:52:17 PM: Started DivX5 - Pass: 2: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avs
2:53:44 PM: Finished DivX5 - Pass: 2: Duration: 2 hours, 1 minute, 26 seconds.
2:53:44 PM: Speed: 34.952 Frames per Second.

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Append"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi",0,0);
VirtualDub.Append("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_Credits.avi");
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\VTS_01_1 - 0x80 - Audio - AC3 - 6ch - 48kHz - DRC - English - DELAY 0ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
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("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD.avi");
VirtualDub.Close();

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

2:53:44 PM: Started Appending Credits and Muxing Audio.: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_Movie.avi
2:56:14 PM: Finished Appending Credits and Muxing Audio.: Duration: 2 minutes, 29 seconds.
2:56:14 PM: Deleting Intermediate Files.
2:56:15 PM: Total File Size is: 1151 Mb

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "Splitting file"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_part1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD.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,0);
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.Delete();
VirtualDub.subset.AddRange(0,159898);
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_part1.avi");
VirtualDub.Close();

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

2:56:15 PM: Started Splitting final file to: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_part1.avi: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi
2:57:56 PM: Finished Splitting final file to: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_part1.avi: Duration: 1 minute, 40 seconds.

Adding this script to C:\Program Files\GordianKnot\VirtualDubMod\LastJob.vcf :

// $job "Splitting file"
// $input "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi"
// $output "C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_part2.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD.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,0);
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.Delete();
VirtualDub.subset.AddRange(159898,104012);
VirtualDub.SaveAVI("C:\\DVD\\Projects\\BAD_BOYS_II_16x9_VTS_01_PGC1\\Bad Boys II [DivX - Widescreen] - 2CD_part2.avi");
VirtualDub.Close();

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

2:57:56 PM: Started Splitting final file to: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_part2.avi: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi
2:59:07 PM: Finished Splitting final file to: C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD_part2.avi: Duration: 1 minute, 11 seconds.

2:59:07 PM: Done.
2:59:07 PM: Movie = C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\Bad Boys II [DivX - Widescreen] - 2CD.avi
Total Encoding Time: 4 hours, 46 minutes, 31 seconds.
01.05.2004 2:59:07 PM: Job "DivX [Widescreen] - 2CD" finished.
_______________________________________________________________________________________________________________________

|minister
6th January 2004, 03:11
is it just me or did you post the same log twice?

sidawg
6th January 2004, 03:53
oops!

Sorry bout that... I fixed it now.
Thanks for pointing that out to me :)

jggimi
6th January 2004, 08:13
First thing I saw in the 1-CD log is that you are not doing compressibility testing. That can cause your trouble. See this sticky thread (http://forum.doom9.org/showthread.php?s=&threadid=24584) in the DivX forum.

Second thing I saw in the 2-CD log was this:10:12:36 AM: Re-Calculating Frame Count.
10:12:36 AM: FrameRate was 29.970 fps
10:12:36 AM: FrameRate now is 23.976 fps
10:12:36 AM: IVTC: 211133 Frames.
.
.
.
12:52:16 PM: WARNING: Number of counted frames differs from settings!
12:52:16 PM: WARNING: Settings: 203755
12:52:16 PM: WARNING: Counted: 254694
12:52:16 PM: WARNING: Difference: 50939It looks to me like you selected the "IVTC in AVS -> Recalculate correct frame count" on the DivX 5 tab, but for some reason, IVTC was not performed in the AVS. That "correct frame count" option is only selectable when you've selected IVTC. So, perhaps you edited your .avs script after Gknot created it? If so, please post the script. (Remove any comment lines that begin with "#" to make it easier to read, though.)

I saw the same frame count error in the 1-CD log.

sidawg
6th January 2004, 23:02
Hey jggimi,

I guess I need to learn a lot more about IVTC. I'm going to read the sticky you recommended and will get back to you. I only clicked it cause I wanted to force the project to 23.976 fps to encode with so I can squeeze more bitrate out of it. I didn't do anything else with the .avs file.

Here is the .avs file for the 1CD encode (without lines beginning with #):

LoadPlugin("C:\Program Files\GordianKnot\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\GordianKnot\undot.dll")
mpeg2source("C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\BAD_BOYS_II_16X9.d2v")
trim(0,254694)
crop(4,60,712,356)
BicubicResize(704,288,0,0.5)
Undot()

And here is my 2CD .avs file:

LoadPlugin("C:\Program Files\GordianKnot\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\GordianKnot\undot.dll")
mpeg2source("C:\DVD\Projects\BAD_BOYS_II_16x9_VTS_01_PGC1\BAD_BOYS_II_16X9.d2v")
trim(0,254693)
crop(4,60,712,356)
BicubicResize(704,288,0,0.5)
Undot()

Oh and BTW - I don't do compressability tests before I encode. I don't really see the need to do it but maybe after reading the sticky I will be able to make a more educated decision.

Thanks :)

jggimi
7th January 2004, 02:36
If you clicked IVTC in Gknot, and then saved the .avs, you should have two additional lines uncommented, which don't appear in your post. These two lines would be uncommented:LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
.
.
.
Telecide(order=1,guide=1,post=0).Decimate()It's time to learn what Inverse Telecine is all about. Adjusting the frame rate in the Gknot calculator won't remove Telecining. There's a very nice tutorial you need to read before you make another attempt with this content. Click on www.doom9.org/ivtc-tut.htm.

etiRkca
7th January 2004, 04:11
Originally posted by sidawg
I'm using the latest version of gknot (0.28.7) but I reverted back to VirtualDubMod 1.5.4.1 (previous version) because of CD splitting problems with the latest version. I've tested this setup and it works fine with encoding other DVDs.

Just for your enlightenment, len0x has released a patch on SourceForge that updates 0.28.7 (http://sourceforge.net/project/showfiles.php?group_id=77391&package_id=78323&release_id=202525) to 0.28.7.2 (http://sourceforge.net/project/showfiles.php?group_id=77391&package_id=88278&release_id=204351). It includes an updated version of VirtualDubMod that fixes the issue with file splitting.

Changes:
- fixed occasional problems with subs split
- updated VDubMod and splitting now works correctly with 1.5.10.1 again
- correct version of DGbob.dll is packaged now


-Kevin

sidawg
7th January 2004, 06:10
Thanks again jggimi,

I've learned a lot about telicide and IVTC today and believe it or not, have already read the link you provided :) I'll try adding these lines to the .avs file and see if it will fix my problem.

However, this raises a few more questions that I have. Do these lines tell the codec (DivX5 in this case) to IVTC the file and if so, should the codec do this work? I'm sure I read somewhere not to let the codec do this work because it will produce a poor quality encode.

Also, isn't this why I'm getting undersized files in the first place (IVTCing a project from an NTSC source)? Should I be performing IVTC to the actual source (like Force Filming in DVD2AVI) and then loading the IVTCed project into gknot?

I dunno if I'm making sense... please forgive me cause I'm trying to absorb a lot right now :p

So just to recap, my .avs file should look like this right?

LoadPlugin("C:\Program Files\GordianKnot\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\GordianKnot\undot.dll")
mpeg2source("C:\DVD\Projects\BAD_BOYS\BAD_BOYS.d2v")
trim(0,254694)
crop(4,60,712,356)
BicubicResize(704,288,0,0.5)
Undot()
Telecide(order=1,guide=1,post=0).Decimate()

sidawg
7th January 2004, 06:13
Hey etiRkca,

Thanks for the patch info! :thanks:

manono
7th January 2004, 08:16
Hi-

You'll also have to load the Decomb plugin:

LoadPlugin("C:\Program Files\GordianKnot\Decomb.dll")

jggimi
7th January 2004, 18:36
But those lines should be uncomment in the script automatically if you select "Inverse Telecine" in the Save .avs window.

You seem a little confused on the encoding process, sidawg. Let me do a level set:

Step 1: When you creating a .d2v project, you are building a file with information about the MPEG-2 video stream in the .vob set. It's not the stream itself, it's information about it. Information about information is sometimes called "metadata."

Step 2: Frameserving. The AviSynth script is a text file that you can open in a text editor (or edit with the Edit button in Gknot's Save .avs window). But it is also a synthetic AVI file. If you open the .avs script in any avi player, or in VdubMod, you don't get text. Instead, you get uncompressed video, and, with some sources, uncompressed audio. The mpeg2source filter in the .avs script uses the metadata in the .d2v to extract and decompress the MPEG-2 frames in the vob set. The additional filters modify this video, with cropping and resizing for most DVD sources, with Gknot, and optionally with other filters, such as noise filters, deinterlacers, and the like. With your content (film source in NTSC, but not Force FILM-able), I would expect your scripts to have Inverse Telecine filtering, too.

Step 3: Encoding. The uncompressed video with all those filters applied is opened by VdubMod, and then simply encoded with your codec settings. Gknot will supply the bitrate value.

I hope this helped clarify things for you.

sidawg
8th January 2004, 07:25
jggimi,

Your right, I am a lil confused about the entire encoding process but your explanation is a good starting point for me to understand it. I'm gonna search around doom9 and this forum for an explanation of how all these lil apps work together (like VDubMod, Nandub, AVIsynth, and the such).

BTW I think I'm getting a better understanding of what IVTC is and when to use it. Here is a link (http://forum.doom9.org/showthread.php?s=&threadid=68226) to one of my other threads in case anyone wants to see a real world application of IVTC and what kinds of gains you can expect in quality.