digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD with 480x480 resolution? (http://www.digitalfaq.com/archives/encode/4626-kvcd-480x480-resolution.html)

bashi007 07-21-2003 02:07 AM

KVCD with 480x480 resolution?
 
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

Dialhot 07-21-2003 06:56 AM

Why do you want to change anything to the SwitchThreshold formula ? It designed to adapt the threshold to the resolution without any manual operation !

Avalon 07-21-2003 08:07 AM

It works! Believe me.

I'm encoding in PAL. 352x576, 480x576 and so on. For me 352x480 works solid!

:wink:

bashi007 07-22-2003 04:09 AM

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

audioslave 07-22-2003 04:20 AM

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! :wink:

audioslave 07-22-2003 04:24 AM

Oh, I forgot. Replace GripCrop+GripSize with BilinearResize. And replace GripBorders with AddBorders+Letterbox. Put them in the same place in the script.

jorel 07-22-2003 05:26 AM

@ 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!

bashi007 07-22-2003 04:15 PM

thanks audioslave, it works!!!!

jorel 07-22-2003 04:25 PM

Quote:

Originally Posted by bashi007
thanks audioslave, it works!!!!

i'm happy for your good results too bashi007.
:wink:

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!
:?

bashi007 07-23-2003 05:13 AM

hi jorrel
I will encode a 15 min sample and will let you know. What version of gripfit are u using?

jorel 07-23-2003 06:09 AM

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,
:D
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!
:wink:


All times are GMT -5. The time now is 03:46 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.