Quantcast KVCD with 480x480 Resolution? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
07-21-2003, 02:07 AM
bashi007 bashi007 is offline
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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
07-21-2003, 06:56 AM
Dialhot Dialhot is offline
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 !
Reply With Quote
  #3  
07-21-2003, 08:07 AM
Avalon Avalon is offline
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!

Reply With Quote
  #4  
07-22-2003, 04:09 AM
bashi007 bashi007 is offline
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
Reply With Quote
  #5  
07-22-2003, 04:20 AM
audioslave audioslave is offline
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
Reply With Quote
  #6  
07-22-2003, 04:24 AM
audioslave audioslave is offline
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
Reply With Quote
  #7  
07-22-2003, 05:26 AM
jorel jorel is offline
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!
Reply With Quote
  #8  
07-22-2003, 04:15 PM
bashi007 bashi007 is offline
Free Member
 
Join Date: Jul 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
thanks audioslave, it works!!!!
Reply With Quote
  #9  
07-22-2003, 04:25 PM
jorel jorel is offline
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!
Reply With Quote
  #10  
07-23-2003, 05:13 AM
bashi007 bashi007 is offline
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?
Reply With Quote
  #11  
07-23-2003, 06:09 AM
jorel jorel is offline
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!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KVCD: Which template should I use for 480x480 resolution? audi2honda Video Encoding and Conversion 5 08-23-2003 03:04 PM
KVCD: 352x480 or 480x480 is best? bigggt Video Encoding and Conversion 4 05-21-2003 09:08 PM
Kvcd resolution bigger than source resolution? Kane Video Encoding and Conversion 13 05-15-2003 06:24 PM
KVCD: Looks like 480x480 is only resolution for mpeg-2 ? Adder Video Encoding and Conversion 5 01-08-2003 01:18 PM
KVCD: KVCDx3 at 480x480? Bombero0437 Video Encoding and Conversion 4 09-11-2002 09:20 AM




 
All times are GMT -5. The time now is 05:28 PM  —  vBulletin © Jelsoft Enterprises Ltd