07-21-2003, 02:07 AM
|
Free Member
|
|
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I'm having trouble encoding with tok, the resoultion 480 x 480. do i change the switchthreshold width to 480 on the script?
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
Also if i encode in mpeg 1, 23.976 fps, do i still need the pull down activated? ( it is greyed out on kvcdx3 template)
thanks
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
07-21-2003, 06:56 AM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Why do you want to change anything to the SwitchThreshold formula ? It designed to adapt the threshold to the resolution without any manual operation !
|
07-21-2003, 08:07 AM
|
Free Member
|
|
Join Date: Jul 2003
Location: Venus
Posts: 187
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
It works! Believe me.
I'm encoding in PAL. 352x576, 480x576 and so on. For me 352x480 works solid!
|
07-22-2003, 04:09 AM
|
Free Member
|
|
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi
I get this following error when i try to encode in 480x480 or above.
Avisynth : caught an acess violation at 0 x 1003d72c, attempting to read from 0x0129c146
here is my script:
## DLL Section ##
#
LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\STMedianFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\asharp.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\unfilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\undot.dll")
#
####
## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####
## Main section and static filters ###
#
AviSource("C:\Documents and Settings\Imran Bashir\My Documents\final destination2.avi")
ConvertToYV12()
#
undot()
Limiter()
asharp(1, 4)
GripCrop(480, 480, overscan=1, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#
## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")
#
#
#
GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()
#
#
## Functions ###
function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
#
####
any help will ne appreciated
thanks
|
07-22-2003, 04:20 AM
|
Free Member
|
|
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi bashi 007,
I had the exact same problem as you. What I did was to remove the following lines:
Quote:
GripCrop(480, 480, overscan=1, source_anamorphic=false)
GripSize(resizer="BicubicResize")
GripBorders()
|
I used the resize parameters given by MovieStacker instead. It looks something like this:
Quote:
BilinearResize(XXXXXXXX)
AddBorders(XXXXXXXX)
Letterbox(XXXXXXXX)
|
That solved my problems. I hope it works for you!
__________________
AudioSlave
|
07-22-2003, 04:24 AM
|
Free Member
|
|
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Oh, I forgot. Replace GripCrop+GripSize with BilinearResize. And replace GripBorders with AddBorders+Letterbox. Put them in the same place in the script.
__________________
AudioSlave
|
07-22-2003, 05:26 AM
|
Invalid Email / Banned / Spammer
|
|
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@ bashi007 and audioslave
i'm using the in the script
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
encoding a 480x480 ntsc svcd without any problem!
audioslave, is the same like you posted:
GripCrop(480, 480, overscan=1, source_anamorphic=false)
GripSize(resizer="BicubicResize")
GripBorders()
never got errors!
|
07-22-2003, 04:15 PM
|
Free Member
|
|
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks audioslave, it works!!!!
|
07-22-2003, 04:25 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by bashi007
thanks audioslave, it works!!!!
|
i'm happy for your good results too bashi007.
but please,answer me:
do you see the same size in the left and in the right borders using
BilinearResize(XXXXXXXX)
AddBorders(XXXXXXXX)
Letterbox(XXXXXXXX)
like audioslave posted?
the movie is in the center of the screen
ps:
maybe the reason of your problems with gripfit is the version used!
|
07-23-2003, 05:13 AM
|
Free Member
|
|
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi jorrel
I will encode a 15 min sample and will let you know. What version of gripfit are u using?
|
07-23-2003, 06:09 AM
|
Invalid Email / Banned / Spammer
|
|
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by bashi007
hi jorrel
I will encode a 15 min sample and will let you know. What version of gripfit are u using?
|
ohhhh, thanks bashi007,
will be great for me your results cos when i choose
BilinearResize, AddBorders and Letterbox,
i see in pc and in tv the same result....
the image is not in the centre os the screen,
i got more borders on the left, less on the right.
just a little detail but is it.
with gripfit is perfect,the image is in the centre of the screen!
i'm using "GripFit_YV12.dll (built 16-02-03)
thanks in advance!
|
All times are GMT -5. The time now is 11:28 AM — vBulletin © Jelsoft Enterprises Ltd
|