PDA

View Full Version : CQ modes now predicted to ~1--2% final file size


kwag
17th October 2002, 04:24
If anyone cares about using CQ, CQ_VBR modes for encoding instead of multi-pass VBR, now you can predict the file size down to 1%-2%, without having to do multi pass encoding.
Here's a FitCD version modified with the file prediction formula: http://ns1.shidima.com/kwag/FitCD_v105_prediction.zip
Discussion thread here: http://www.kvcd.net/forum/viewtopic.php?t=1294

Basically this is what's added to the end of an AviSynth script:

###--------------------- Start Of File Size Prediction ----------------------###

IL = Framecount / 100 # interval length in frames
SL = round(Framerate) # sample length in frames
SelectRangeEvery(IL,SL)
## MPEG size = ((Total frames/Framerate)/100) * (MPEG sample file size * .95) ##

###------------------------End File Size Prediction--------------------------###

Use the formula: MPEG size = ((Total frames/Framerate)/100) * (MPEG sample file size * .95)

@DVD2SVCD,
Would be nice if you could integrate this method for CQ encoding into DVD2SVCD, as the results are more accurate than the current method being used.

Thanks,
-kwag

dvd2svcd
17th October 2002, 07:48
Both methods are implemented in the new version. I will test your algo looks very much like the one I already use in dvd2svcd. I'll try yours and see if it get's to the right value faster.

If you wantto try the new Beta look in the Help!!! thread.

kwag
17th October 2002, 14:20
Originally posted by dvd2svcd
Both methods are implemented in the new version. I will test your algo looks very much like the one I already use in dvd2svcd. I'll try yours and see if it get's to the right value faster.

If you wantto try the new Beta look in the Help!!! thread.

Will do!. Looking better every time ;)

Thanks,
-kwag