kxy
9th April 2003, 18:47
I know the below script doesn't work with trim and return when select range is used, how do I make it work?
I have use a script with DVX that goes like this:
# TRIM trim(0,a)
a=%credits_start%
#trim(0,startcredit)
startcredit=373
#trim(startcredit,startcreditend)
startcreditend=960
# SOURCE
source=MPEG2Source("%source_file%").Telecide(guide=1).Decimate(cycle=5).Crop(%left%,%top%,-%right%,-%bottom%)
beg=source.trim(0,startcredit).UnDot().LumaFilter(-2).UnFilter(-5,-5).Convolution3d(preset="movieHQ").LanczosResize(%target_width%,%target_height%)
start=source.trim(startcredit,startcreditend).greyscale().UnDot().LumaFilter(-2).UnFilter(-5,-5).BilinearResize(%target_width%,%target_height%)
movie=source.trim(startcreditend,a).UnDot().LumaFilter(-2).UnFilter(-5,-5).Convolution3d(preset="movieHQ").LanczosResize(%target_width%,%target_height%)
credit=source.trim(a,0).greyscale().UnDot().LumaFilter(-2).UnFilter(-5,-5).FluxSmooth(50,50).BilinearResize(%target_width%,%target_height%)
source=beg+start+movie+credit
return source
#Dvx always adds following line in end of the movie
#IsRGB() ? NOP() : Limiter()
Now here are 2 problems. Problem 2 not related to avisynth
1) This doesn't work with compression test, it will tend to encode the whole movie instead of selectrange
2) The credit values will not get imported to the vdubmod, xvid credit tab. How do I write a vdobmod script to do that?
P.S. If I use IsRGB() ? NOP() : Limiter(), the whole movie gets encoded twice, I thought the line meant if the movie is RGB then null(null result primarily for if-then-else operation above where ifelse is not desired), then it clips (or "clamps") pixels under 16 to 16 and over 236 (or 240) to 236 (or 240).
Am I understanding the above line wrong, if so can you explain what does IsRGB() ? NOP() : Limiter() do exactly and why it would cause the movie get encoded twice?
P.S.S (non avisynth related)
What is your opinion on FluxSmooth(50,50) for credits?
I have use a script with DVX that goes like this:
# TRIM trim(0,a)
a=%credits_start%
#trim(0,startcredit)
startcredit=373
#trim(startcredit,startcreditend)
startcreditend=960
# SOURCE
source=MPEG2Source("%source_file%").Telecide(guide=1).Decimate(cycle=5).Crop(%left%,%top%,-%right%,-%bottom%)
beg=source.trim(0,startcredit).UnDot().LumaFilter(-2).UnFilter(-5,-5).Convolution3d(preset="movieHQ").LanczosResize(%target_width%,%target_height%)
start=source.trim(startcredit,startcreditend).greyscale().UnDot().LumaFilter(-2).UnFilter(-5,-5).BilinearResize(%target_width%,%target_height%)
movie=source.trim(startcreditend,a).UnDot().LumaFilter(-2).UnFilter(-5,-5).Convolution3d(preset="movieHQ").LanczosResize(%target_width%,%target_height%)
credit=source.trim(a,0).greyscale().UnDot().LumaFilter(-2).UnFilter(-5,-5).FluxSmooth(50,50).BilinearResize(%target_width%,%target_height%)
source=beg+start+movie+credit
return source
#Dvx always adds following line in end of the movie
#IsRGB() ? NOP() : Limiter()
Now here are 2 problems. Problem 2 not related to avisynth
1) This doesn't work with compression test, it will tend to encode the whole movie instead of selectrange
2) The credit values will not get imported to the vdubmod, xvid credit tab. How do I write a vdobmod script to do that?
P.S. If I use IsRGB() ? NOP() : Limiter(), the whole movie gets encoded twice, I thought the line meant if the movie is RGB then null(null result primarily for if-then-else operation above where ifelse is not desired), then it clips (or "clamps") pixels under 16 to 16 and over 236 (or 240) to 236 (or 240).
Am I understanding the above line wrong, if so can you explain what does IsRGB() ? NOP() : Limiter() do exactly and why it would cause the movie get encoded twice?
P.S.S (non avisynth related)
What is your opinion on FluxSmooth(50,50) for credits?