10-27-2002, 10:30 PM
|
Free Member
|
|
Join Date: May 2002
Location: Chattanooga. Tennessee
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
10-27-2002, 11:16 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Twobit326,
Get a newer version of MPEG2DEC.dll. If you download DVD2SVCD, you'll get it in the package.
-kwag
|
10-28-2002, 07:59 AM
|
Free Member
|
|
Join Date: May 2002
Location: Chattanooga. Tennessee
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
10-28-2002, 09:35 AM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The script is set up to take 100 snapshots of 1 second each.
-kwag
|
10-28-2002, 04:54 PM
|
Free Member
|
|
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by kwag
The script is set up to take 100 snapshots of 1 second each.-kwag
|
I have started to select a range so that the output is ~60 seconds and try to leave out the intro and credits. Works great! I have found it to be very close to actual file size.
__________________
Thanks!
reman
|
10-29-2002, 07:26 AM
|
Free Member
|
|
Join Date: May 2002
Location: Chattanooga. Tennessee
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanx for the help.
|
10-29-2002, 08:06 AM
|
Free Member
|
|
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by kwag
The script is set up to take 100 snapshots of 1 second each.-kwag
|
Any way to make it take 60 snapshots of 1 second each and skip area at the beg. and end?
__________________
Thanks!
reman
|
10-29-2002, 10:29 PM
|
Free Member
|
|
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
10-30-2002, 01:37 AM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
muaddib,
Isn't "Framecount-(Framerate*600)) " trimming the last 10 minutes
Shouldn't it be: Trim(Framerate*120, Framecount-(Framerate*300))
-kwag
|
10-30-2002, 03:26 PM
|
Free Member
|
|
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yep... you're absolutely right!
5*60 = 300 ... not 600
That should be the beer of last night...
|
10-30-2002, 06:29 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Don't drink and post.
Only read if you drink
( That's why I don't post after 2:00 AM )
Salud!
-kwag
|
10-31-2002, 12:58 AM
|
Free Member
|
|
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Good advice! I'll try to follow it.
Ops... It's 3:00AM!!
Too late now...
|
11-01-2002, 06:18 PM
|
Free Member
|
|
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
__________________
Thanks!
reman
|
11-01-2002, 08:52 PM
|
Free Member
|
|
Join Date: May 2002
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello!
This produces an error when loading into TMPGenc. My guess is that the
Quote:
Trim(Framerate*120, Framecount-(Framerate*300))
|
line is not right. Should it not be a result type of line? Framecount = Trim(Framerate... OR Framerate = Trim(Framerate...?
Quote:
LoadPlugin("C:\Program Files\VCDEasy\FitCD_v104\mpeg2dec_dll\MPEG2DEC.dll ")
mpeg2source("G:\Video Files\movie\movie.d2v")
BilinearResize(480,320,0,0,720,480)
#TemporalSmoother(2,2)
AddBorders(32,80,32,80)
#Trim(0,160504).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 ----------------------###
Trim(Framerate*120, Framecount-(Framerate*300))
IL = Framecount / 60 # 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--------------------------###
|
__________________
Thanks!
reman
|
11-01-2002, 09:28 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi reman,
I think this is what you're looking for
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
|
All times are GMT -5. The time now is 09:24 PM — vBulletin © Jelsoft Enterprises Ltd
|