digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: How do I increase the sharpness? (http://www.digitalfaq.com/archives/encode/4854-kvcd-how-increase.html)

incognito 08-02-2003 05:08 PM

How do I increase the sharpness?
 
My KVCDs look a little foggy or hazy. Is there a way to increase the sharpness or make the picture look more crisp? Heres my avs:
Code:

## DLL Section ##
#
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\STMedianFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\asharp.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\unfilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\undot.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\Sampler-2.5.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf =  0 # Current frame.
#
####

## Main section and static filters ###
#
AviSource("G:\Ripps\Current\CD1.avi", False)
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 240, 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
}

#
####

I also was trying another avs:
Code:

LoadPlugin("C:\Program Files\MovieStacker\Filters\25\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\STMedianFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\loadpluginex2.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\DustV5.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\25\UnFilter.dll")


AviSource("G:\Ripps\Current\CD1.avi", False)

Limiter()
UnFilter(50, 50)
GripCrop(352, 240, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0)
ConverttoYUY2()
SpaceDust()
#TemporalSoften(1, 2)
MergeChroma(blur(1.5))
MergeLuma(blur(0.2))
GripBorders()
#LetterBox(16, 16, 16, 16)
Limiter()


kwag 08-02-2003 05:48 PM

Change this line:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2

To:

SwitchThreshold = (Width<=352) ? 8 : (Width<=480) ? 3 : 2

That will decrease the blurring only on 352x resolutions.

-kwag

Dialhot 08-02-2003 05:57 PM

Can't you use bigger resolution ? Like 352*480 or even 480*480 ?
The more it is, the sharper is the image.

incognito 08-03-2003 03:08 AM

Quote:

Originally Posted by Dialhot
Can't you use bigger resolution ? Like 352*480 or even 480*480 ?
The more it is, the sharper is the image.

I believe that my player will play 352x480 and 480x480 but when I encode at that resolution I end up with "coneheads". I can't figure out why the picture is stretched.

@kwag Thanks. :wink:

Dialhot 08-03-2003 07:54 AM

For the streching phenomena, sometimes the setting has to be done manually on the TV set. Mine, for instance, detect automatically the aspect ratio for a DVD but always switch on 16:9 position for VCD, even if this one is 4:3.


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

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