Log in

View Full Version : Trouble hitting target filesize


MaxPlanck
5th May 2010, 17:24
I'm working on a new "project" that involves converting my star trek the next generation dvds to x264. More importantly, I'm looking to have each season span only two single layer DVDs.

I figured 280mb / episode would allow me to fit 16 episodes on each dvd.

There are about 26 episodes on each season and while I should have plenty of space left over on the second disc to allow one season to fit , I've noticed I can't hit as close to 280mb as I would like. For example, I hit 285MB, instead of 280.

My questions are:Is it unreasonable to expect the ability to control the filesize down to the last MB or am I doing something wrong (or both)?

Here is my avs script and settings (would love a critique):

LoadPlugin("C:\Program Files (x86)\megui\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("C:\Users\Somebody\Desktop\Star Trek Episode 2 Project\ST Episode 2.d2v", info=3)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, interlaced=true, threads=0)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\Decomb.dll")
AssumeTFF().Telecide(guide=1).Decimate(mode=3,threshold=2.0)
crop( 4, 0, -6, 0)

Spline64Resize(656,480) # Spline64 (Sharp)
LoadPlugin("C:\Program Files (x86)\megui\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise


X264 Config

program --pass 2 --bitrate 789 --stats ".stats" --slow-firstpass --b-adapt 2 --vbv-maxrate 2500 \
--merange 32 --me umh --direct auto --subme 10 --partitions all --trellis 2 --no-fast-pskip --output "output" \
"input"

quantum5uicid3
5th May 2010, 23:17
the megui bitrate calculator is very accurate, but not 100%. 5MB difference should be acceptable, if not, do another 2nd pass at a slightly different bitrate.