INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
TMPGEnc VBR. Accurate file size prediction. updated 3-oct-02

Forum Index -> How to's -> User guides Printer-friendly version
Reply to topic
Author Message
Ozzi
Member


Joined: 24 Sep 2002

Post Posted: Sep 24, 2002 20:20 Posts View users profile Send private message Reply with quote

TMPGEnc VBR. Accurate file size prediction.

Most people encode a sample of a movie to ascertain
visual quality and to estimate final file size.
The problem is where to take this sample from, taking
only one sample does not give a good overall view of the
movie and does not give reliable size prediction.


Simple explanation of the script:
The script takes a x second sample, every
x seconds of the movie, then splices them together.

Brief, how to:
(a) Use DVD2AVI to generate your d2v file.

(b) Open the d2v file in FitCD, check and adjust settings
if necessary, save in FitCD to get your basic script.

(c) Edit, copy and past your script and mine,(See note 1.)
save as whatever.avs.

(d) Open the avs file in TMPGEnc.

(e) Check and view the source range in TMPGEnc, hit the
default button, move to end frame, adjust the slider
to an even minute mark, then set end frame.

(f) Set TMPGEnc to encode - System (video only).

(g) Encode test file.

(h) Divide, encoded test file size by source range time,
then multiply by full movie time.

(i) Use a data rate calculator to establish audio only file size.

(j) Add calculated video and audio files sizes together for full
movie file size. (See note 2.)


Notes:
1. Anything after a # is ignored by the program.

2. On an average, the final full movie file size is 5%
smaller then estimated.

3. SelectRangeEvery() is a function of mpeg2dec.dll.


Any comments, questions or suggestions are welcomed.
Please feel free to test, modify and post your results.


# Start of Script
#
# Paste your script in here.
LoadPlugin("D:Program filesCDRMPEG2DEC.dll")
Mpeg2Source("D:Trains_Plainsmovie.d2v")
Crop(11,0,704,576)
TemporalSmoother(2,2)
BicubicResize(320,224,0.333,0.333,0,0,704,576)
AddBorders(16,32,16,32)
FadeOut(75)
#
PT = 20 # theoretically a higher number=greater accuracy.
FR = round(Framerate) # frames per second.
IL = (Framecount / FR) /PT # interval length.
SL = 17 # sample length in frames.
SelectRangeEvery(IL,SL)
#
# End of script. biggrin.gif
_________________
It is impossible to make anything foolproof because fools are so ingenious.


reman
Member


Joined: 11 Nov 2001
Location: Florida USA

Post Posted: Oct 21, 2002 19:43 Posts Comp View users profile Send private message Reply with quote

Sorry if this is silly...

Quote:
# Paste your script in here.


Does my script go from below this point to the lone

Quote:
#

_________________
Thank You & Have a great Day! smile.gif
reman


Reply to topic All times are GMT - 6 Hours
Forum Index -> How to's -> User guides Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You can vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics