Log in

View Full Version : [Xvid encoding] 2 CD rip undersized


Yonderboi
12th August 2003, 14:06
Since a while I'm ripping my own dvd's with Gordian knot (Xvid)
With the compressibility check I thought my problems with too big or too small movies were gone..... but no

So I wonder what to do, I ripped this movie for 2 cd's but it comes out at a size of about 1000 mb. I thought I had to push the quality some more, but I nodged it up 2 times still no good result.
I'm ripping this thing at a resolution of 736 x 304 right now, usualy way to high ! But if I look at the size, it will come out at 950 video + 330 audio. What am I overlooking here? (guess I'm still a noob at this)

I'm working with this Xvid gordian knot guide - http://www.doom9.org/gknot-main4.htm

Setup for 2 passes and everything as explained in the guide. (even chroma motion on)

---------------------------------
LOG
---------------------------------
12-8-2003 10:23:23: Job "Default 2 cd" started.

o Xvid - First Pass: D:\rip\antwonefisher.avs
o Xvid - Second Pass: D:\rip\antwonefisher.avs
o Mux Audio.
End of Job 1 (Default 2 cd).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncXvid_All
Number: 1
Name: Default 2 cd
Platform: Win2000 (5.0.2195).2

Files:
VirtualDubModExe: F:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: F:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\rip\antwonefisher.avi
AviMovie: D:\rip\antwonefisher_Movie.avi
AviCredits: D:\rip\antwonefisher_Credits.avi
MovieFS: D:\rip\antwonefisher.avs
CreditsFS:
Log : D:\rip\antwonefisher.log
Stats: D:\rip\antwonefisher_2.stats
Ecf : D:\rip\antwonefisher.ecf

Options:
Quality/DRF: 0
CreditsStart: 164020
UseEcf: 1
CreditsIVTC: 0
CreditsAppend: 0
DeleteInterm.: 0
EnforceBitrate: 0
AntiShit: 0

Calculator:
VideoSize: 1098505 kbyte.
Audio1Size: 324370 kbyte.
Audio2Size: 0 kbyte.
Overhead: 10899 kbyte.
AviSize: 1433775 kbyte (1400 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1433775 kbyte (1400 mbyte).
Interleaving: vbrmp3
Bitrate: 1300 k(=1000)Bits/s
Frames: 172993
FPS: 25.000
Duration: 155:20
Quality: 0.232 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.261 bits/(pixel*frame).
Resolution: 736 x 304

Audio 1:
Mode: Just Mux Source File.
SourceFile: D:\rip\antwonefisher AC3 T01 3_2ch 384Kbps DELAY -88ms.ac3
WavFile: D:\rip\antwonefisher AC3 T01 3_2ch 384Kbps DELAY -88ms.wav
Mp3File: D:\rip\antwonefisher AC3 T01 3_2ch 384Kbps DELAY -88ms.mp3
Azid:
Lame:
Delay: -88
Interval: 2
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

10:23:23: Audio 1, determined: 324370 kb
10:23:23: Audio 1, calc: 324370 kb
10:23:23: New Bitrate for Movie = 1300 k(=1000)Bits/s

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

// $job "Xvid - First Pass"
// $input "D:\rip\antwonefisher.avs"
// $output "D:\rip\antwonefisher_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\rip\\antwonefisher.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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\rip\\antwonefisher_Movie.avi");
VirtualDub.Close();

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

10:23:23: Started Xvid - First Pass: D:\rip\antwonefisher.avs
12:44:13: Finished Xvid - First Pass: Duration: 2 hours, 20 minutes, 48 seconds.
12:44:13: Trying to open Log-file.
12:44:13: Success: Log-file open.
12:44:13: Encoded: 172993 Frames.
12:44:13: Speed: 20.476 Frames per Second.
12:44:13: New target size = 1098506 Kb

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

// $job "Xvid - Second Pass"
// $input "D:\rip\antwonefisher.avs"
// $output "D:\rip\antwonefisher_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\rip\\antwonefisher.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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\rip\\antwonefisher_Movie.avi");
VirtualDub.Close();

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

12:44:13: Started Xvid - Second Pass: D:\rip\antwonefisher.avs
15:14:20: Finished Xvid - Second Pass: Duration: 2 hours, 30 minutes, 6 seconds.
15:14:20: Speed: 19.208 Frames per Second.

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

// $job "DivX5 Append"
// $input "D:\rip\antwonefisher_Movie.avi"
// $output "D:\rip\antwonefisher.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("D:\\rip\\antwonefisher_Movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("D:\\rip\\antwonefisher AC3 T01 3_2ch 384Kbps DELAY -88ms.ac3",0x00000203,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,-88);
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:\\rip\\antwonefisher.avi");
VirtualDub.Close();

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

15:14:20: Started Muxing Audio.: D:\rip\antwonefisher_Movie.avi
15:18:00: Finished Muxing Audio.: Duration: 3 minutes, 40 seconds.

15:18:00: Done.
15:18:00: Movie = D:\rip\antwonefisher.avi
Total Encoding Time: 4 hours, 54 minutes, 37 seconds.
12-8-2003 15:18:00: Job "Default 2 cd" finished.
_______________________________________________________________________________________________________________________

-----------------------------------------
AVS
-----------------------------------------
#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
SetWorkingDir("F:\PROGRA~1\GORDIA~1\")
LoadPlugin("mpeg2dec3.dll")
#LoadPlugin("decomb.dll")
#LoadPlugin("dgbob.dll")
#LoadPlugin("Convolution3d.dll")
#LoadPlugin("FluxSmooth.dll")
#LoadPlugin("TomsMoComp.dll")
#LoadPlugin("VSFilter.dll")
#LoadPlugin("SimpleResize.dll")
#
# SOURCE
mpeg2source("D:\rip\antwonefisher.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide(guide=1).Decimate(5)
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# CROPPING
crop(0,74,716,428)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#DGBob(order=0,single=true)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(736,304)
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

jggimi
12th August 2003, 15:48
:logfile: You'll find it named "<movie>_Gknot.log".

Yonderboi
12th August 2003, 16:05
added log (sorry forgot)

bond
12th August 2003, 17:39
plz use your .avs script too!

btw how long is the movie?

Yonderboi
12th August 2003, 17:53
The movie is 115 minutes > 1 hour and 55 minutes

AVS is in mainpost now

Yonderboi
13th August 2003, 15:07
Sorry for kicking this, but can somebody help me please?
I'm desperate :(

manono
13th August 2003, 18:52
Hi-

I haven't ripped that movie, so I can't give any first hand advice, but there's at least a chance that you've already got maximum quality out of it. Did you run a compression test on it? And if so, what percentage did you get back?

To make a larger size file (assuming the file size is maxed out), first switch from using H.263 quant to the MPEG quant (which you should be using anyway for a 2 CD rip). And second, change that 2 B-Frame setting to -1 (that is, disable B-frames).

Hiro2k
14th August 2003, 02:45
You can also increase the Resolution.

dihelson
14th August 2003, 05:09
I see, Nobody here yet now have answered this question properly!
Well, i can't answer it either, and I'm sorry to tell you that I have faced this problem many times. I have made 180 movies, and once in a while I found desperate situations, for example, I tried to put the movie in 3CDs and the final size is under 1600Mb...:(
I tried to put on 2 CDs, the final size under 900... well, oh boy...
It should have some tool to correct and predict the final size.

My Xvid settings are very common. I even consulted KOEPI, and he said that If I change the B-frame settings, the file would Grow, Grow... Well, I don't like it simply to Grow, Grow, If it has to grow, the quality should improve also. He didn't answered this...:(

So, We are still awaiting for a proper answer to this very bad problem: BIG UNDERSIZED FILES.

Regards,
Dihelson Mendonca

manono
14th August 2003, 07:18
Hi-

Hiro2k-You can also increase the Resolution.

He's already at 736x304. How high would you like him to go? :)

dihelson-the quality should improve also

Disabling the B-Frames does slightly improve the quality. XviD has the best file size prediction of all the codecs. If you run a compression test and it tells you you can reach the file size you want, then if you aren't reaching it you're doing something wrong. A couple of things you can try are to "Load Defaults" and then put your settings back. Another thing is to make sure that you don't check "Packed Bitstream". In the 2-Pass Tab, try and uncheck the "Discard First Pass" checkbox. This will save the first pass as a playable .avi at quant 2 and will be the maximum filesize you can achieve with your settings.

Hiro2k
14th August 2003, 07:29
Originally posted by manono

Hiro2k-You can also increase the Resolution.

He's already at 736x304. How high would you like him to go? :)
As high as the moon!


In the 2-Pass Tab, try and uncheck the "Discard First Pass" checkbox. This will save the first pass as a playable .avi at quant 2 and will be the maximum filesize you can achieve with your settings.

Why not just do a 1 pass at quant 2 and save some time? Well other than comparing sizes.

And disabling b-frames improves quality because b-frames are usually quant 4 and disabling them would allow them to be at quant 2.

Yonderboi
14th August 2003, 11:02
Ok Ok, some useful information here that I didn't know of.
Thanks!

Strangely as it is, I ripped another movie with the same settings (as when I was ripping Antwone Fisher) only I nodged down the resolution to a 640x256. A more likely resolution if you ask me....
Anyway, I came home at night turned on my screen and guess what ?! A 2 cd rip came out perfectly ! :cool:

This is really mind cracking :confused:

Yonderboi
23rd August 2003, 15:15
Well after ripping more different dvd's I'm still having the size problem every now and then. It seems to me that it just depends on the quality of the dvd or something what size it will be.

So what I do now is, everytime a movie becomes undersized when ripping even at the highest quality I just rip them for one cd.
Appearently there are some major differences between dvd's, maybe it's the bitrate or that a movie is mainly dark... ? I don't know, anyone who shares this thought with me ?

Hiro2k
23rd August 2003, 18:36
Originally posted by Yonderboi
Well after ripping more different dvd's I'm still having the size problem every now and then. It seems to me that it just depends on the quality of the dvd or something what size it will be.


The word is called compresability. The more compressible your movie the less bitrate it will need in order to achieve the maximum quality. When you run a compressability check it gives you a percent of the difference in quality between the original and your rip with the settings in your avs script. If the percentage is above 75% you might want to make it 1CD or try using the original AC3 track for audio. That's why some movies are undersized. They reach the percent limit with lets say with a bitrate of 1000 and your telling it to use a bitrate of 1200 in order to fit on 2CD's. Well that's never gonna happen since it stopped using the bitrate at 1000. I hope you understand a bit more.

Yonderboi
23rd August 2003, 21:50
Allright...
I understand what you're saying, it's a bit like my own conclusion. I'm glad this is solved, so I can continue my Xvid journey without any further questions on this matter :D

Happy rippin' ! :cool:

klejan
24th September 2004, 19:26
Originally posted by Hiro2k
The word is called compresability. The more compressible your movie the less bitrate it will need in order to achieve the maximum quality. When you run a compressability check it gives you a percent of the difference in quality between the original and your rip with the settings in your avs script. If the percentage is above 75% you might want to make it 1CD or try using the original AC3 track for audio. That's why some movies are undersized. They reach the percent limit with lets say with a bitrate of 1000 and your telling it to use a bitrate of 1200 in order to fit on 2CD's. Well that's never gonna happen since it stopped using the bitrate at 1000. I hope you understand a bit more.

Now i finally understood, why i got undersized files on several dvd's!

Thx alot ;)