KVCD: AVS File Size predicting stuff?
Hiyas, Um, when I load the file size thing into FitCD. I load TMPEG. And when I load John Q's FitCD file it says the following:
Script Error. THere is no function named "selectRangeEvery" (C:\John Q\film.avs,line 14. Here's my Fitcd script: LoadPlugin("C:\Program Files\NimoCodec Pack\Mpeg2dec\MPEG2DEC.dll") mpeg2source("C:\John Q\DVD2AVI Output.d2v") #TemporalSmoother(2,2) AddBorders(16,64,16,64) #Trim(0,167009).FadeOut(150) #ConvertToRGB24 # For TMPGEnc or VFAPI #ResampleAudio(44100) # CCE 2.5 'crashfix' for Athlons #== If you want this 'fix' permanently, edit the INI-file: #== Under [AVSscript] set CCEcrashfix=1 ###------------------- Start Of File Size Prediction -------------------### # IL = Framecount / 100 # interval length in frames. SL = round(Framerate) # sample length in frames. SelectRangeEvery(IL,SL) ### Final MPEG size = ( ( Total frames / Framerate) / 100 ) * (MPEG sample file size * .95) ### # ###-----------------------End File Size Prediction----------------------### ****Note, I also tried the other 2 ways of writing the file size prediction thing. (The one linked to on VCDHelper and the updated one on the forums.) Any help would be greatly appreciated. Thanx, Twobit326 |
Hi Twobit326,
Get a newer version of MPEG2DEC.dll. If you download DVD2SVCD, you'll get it in the package. -kwag |
One more question. How much do I encode to get the file size prediction thing? It looked like 1 minuet but I might be wrong.
Thanx, Twobit326 |
The script is set up to take 100 snapshots of 1 second each.
-kwag |
Quote:
|
thanx for the help.
|
Quote:
|
Hi reman,
I think that this script will do what you want: Trim(Framerate*120, Framecount-(Framerate*600)) IL = Framecount / 60 SL = round(Framerate) SelectRangeEvery(IL,SL) It will discard the first 2 min of the beg. and 5 min of the end. I haven't tried it... but I think it will work. |
muaddib,
Isn't "Framecount-(Framerate*600)) " trimming the last 10 minutes :?: Shouldn't it be: Trim(Framerate*120, Framecount-(Framerate*300)) :?: -kwag |
:oops: Yep... you're absolutely right! :oops:
5*60 = 300 ... not 600 :lol: That should be the beer of last night... :wink: |
Don't drink and post.
Only read if you drink :lol: :lol: ( That's why I don't post after 2:00 AM 8O ) Salud! -kwag |
Good advice! I'll try to follow it. :lol:
Ops... It's 3:00AM!! 8O Too late now... :wink: |
I really want to thank everyone! Great stuff! Might I suggest that you add a commented section that allows users to uncomment the 1 minute code with the trimming and then delete the original code? :wink:
8) 8) :lol: :lol: |
Hello!
This produces an error when loading into TMPGenc. My guess is that the Quote:
Quote:
|
Hi reman,
I think this is what you're looking for :wink: SF = round(FrameRate * 120) # Find start Frame EF = round(Framecount - ( Framerate * 300 )) # Find end frame TotalFrames = EF - SF # This is the new total number of frames Trim(SF,EF) # Now trim it IL = TotalFrames / 60 # interval length in frames # And do our stuff ;) SL = round(Framerate) # sample length in frames SelectRangeEvery(IL,SL) -kwag |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.