kalehrl
2nd February 2015, 15:40
I'm trying to do a simple manual compression test using x264 and a MeGUI generated script to try to predict the file size of the entire encode. The problem is, it is very inaccurate. This is the script:
LoadPlugin("D:\Programs\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Dreambox\movie\projectx\Carl Sagan's Cosmos\DVDR_1\VIDEO_TS\VTS_01_1.d2v", cpu=4)
LoadPlugin("D:\Programs\MeGUI\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=1)
crop(8, 0, -8, 0)
Spline36Resize(640,480) # Spline36 (Neutral)
fft3dgpu(sigma=1.8)
Nothing fancy and for compression test I added in the script 'selectrangeevery(300,15)' for 5% of the video.
The encode is 22,5MB which I then multiply by 20 to get the predicted final encode size - 450MB. However, when I encode the entire video, I get 363MB. This is way off for me! I know this type of compression test isn't accurate, but the difference is huge.
On another file I have predicted file size of 368MB but, in fact, the encode ended up being 286MB!
Am I wrong in my calculations or is there anything else I can do to get more accurate predictions?
Thank you
LoadPlugin("D:\Programs\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("D:\Dreambox\movie\projectx\Carl Sagan's Cosmos\DVDR_1\VIDEO_TS\VTS_01_1.d2v", cpu=4)
LoadPlugin("D:\Programs\MeGUI\tools\avisynth_plugin\TIVTC.dll")
tfm(order=1).tdecimate(hybrid=1)
crop(8, 0, -8, 0)
Spline36Resize(640,480) # Spline36 (Neutral)
fft3dgpu(sigma=1.8)
Nothing fancy and for compression test I added in the script 'selectrangeevery(300,15)' for 5% of the video.
The encode is 22,5MB which I then multiply by 20 to get the predicted final encode size - 450MB. However, when I encode the entire video, I get 363MB. This is way off for me! I know this type of compression test isn't accurate, but the difference is huge.
On another file I have predicted file size of 368MB but, in fact, the encode ended up being 286MB!
Am I wrong in my calculations or is there anything else I can do to get more accurate predictions?
Thank you