digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCDs are really blurry? (http://www.digitalfaq.com/archives/encode/3859-kvcds-blurry.html)

ftin 06-03-2003 10:12 AM

KVCDs are really blurry?
 
Hello Kwag I have been trying out your new script (i am a newbie but it seems pretty straight foward :? ) i am using moviestacker to make them and tok or acp also.At the moment i am trying to make a lbr kvcd 1246-300 , 128 audio so it will play on a real basic dvd player. My problem is when i make these mpeg 1 kvcd's they are really blury (the mpeg 2 high bit rate ones are fine) What changes can i make to make them look better?
Unfortunately my souce is an avi , but it is quite good Quality.I am using spacedust ,should i use convolution 3d or will it make things worse?
I am not expecting miracles cause the source is an avi after all ,but my standard vcd's used to look alot less blury , although in every other way a lot worse :lol: .
Please excuse me if i have done things completely wrong, as i said i am new to this.
hope to here from you soon . CHEERS.

ovg64 06-03-2003 04:05 PM

Hi ftin, post your script so that way somebody can give you a hand.

ftin 06-03-2003 07:20 PM

Ok here you go:

LoadPlugin("C:\Program Files\A_ENCODING\MovieStacker\Filters\MPEG2Dec.dll ")
LoadPlugin("C:\Program Files\A_ENCODING\MovieStacker\Filters\STMedianFilt er.dll")
LoadPlugin("C:\Program Files\A_ENCODING\MovieStacker\Filters\GripFit_prev iew.dll")
LoadPlugin("C:\Program Files\A_ENCODING\MovieStacker\Filters\DustV5.dll")
LoadPlugin("C:\Program Files\A_ENCODING\MovieStacker\Filters\UnFilter.dll ")
LoadPlugin("C:\Program Files\A_ENCODING\MovieStacker\Filters\LegalClip.dl l")

AviSource("C:\Documents and Settings\sam\Desktop\Movie.avi")
LegalClip()
GripCrop(352, 288, overscan=1, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0, 8, 32)
SpaceDust()
UnFilter(50, 50)
TemporalSmoother(1, 2)
MergeChroma(blur(1.5))
MergeLuma(blur(0.2))
GripBorders()
AssumeFPS(25.000, true)
LegalClip()

bigggt 06-03-2003 09:22 PM

Hi,,im not going to even pretend i know what i'm doing but try removing the STMedianFilter(8, 32, 0, 0, 8, 32) and encode a small sample and see how it looks.I do a lot of avi's and use the same script without the STMedianFilter and spacedust and am very happy with the results(looks way better the using standard templates).

I'm sure someone with a lot more knowledge will lend a hand but just try it and see :D

telemike 06-04-2003 06:19 AM

Code:

MergeChroma(blur(1.5))
MergeLuma(blur(0.2))

Try removing these. They BLUR the image.........

girv 06-04-2003 06:36 AM

@ftin:

I mostly encode from AVI sources, here are examples of the scripts I use.

AVISynth 2.0x:
Code:

LegalClip()

AddBorders(8,8,8,8)
Blockbuster(method="dither",detail_min=1,detail_max=10,variance=0.3,seed=5832)
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=false)
Crop(8,8,Width()-16,Height()-16)
Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.5,seed=5823,cache=4096)
FluxSmooth()
Sharpen(0.3)
BicubicResize(432,432)

LegalClip()

AVISynth 2.5x:
Code:

Limiter()

Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
ATC(3,6,7,0.5,false)
BlindPP(cpu=2)
ScriptClip(  "ydp = YDifferenceFromPrevious()" + chr(13)
                        \ + "ydn = YDifferenceToNext()" + chr(13)
                        \ + "yb  = ydp / 14.55" + chr(13)
                        \ + "ydp - ydn < 16 && yb > 0.2 ? MergeLuma(Blur(yb < 1.58 ? yb : 1.58)) : last")

BicubicResize(432,432)

Limiter()

The 2.0x script probably won't be updated any more as I've upgraded to AVISynth 2.5x. The 2.5x script is still under development, it still blurs the image a little too much for my tastes but try it yourself.

boeddha 06-04-2003 10:46 AM

@ Girv

Thanks for the 2.52 script for divx. I like the quality and it has more compression than the optimal script. If you keep tweaking your script for divx can you keep us updated from time to time :lol:

Thanks Boeddha

girv 06-04-2003 11:01 AM

@boeddha: try removing the BlindPP filter, see what you think of the difference.

Jellygoose 06-04-2003 11:10 AM

I wouldn't recommend removing the MergeChroma(blur(1.5)) line...
It really helps a lot with compression, and the picture quality does not get blurred at all... it's barely visible to the eye... 8)

boeddha 06-04-2003 02:23 PM

Hi Girv

I tried your script with and without blindpp. To be honest I can't see much difference (but my eyes are very tired now). I even think with looks a bit better. There is almost no speed difference (2 sec on a 2min sample) and with gives 200kb more compression. Wath do you think?

girv 06-04-2003 03:20 PM

@boeddha: yeah thats what I figured :) To my eyes it makes the picture a little more soft, but I think thats down to the cleaning up and smoothing it does so on balance its a Good Thing. I just wondered if you would like / dislike / not notice the extra softening. Thanks for testing and answering my question :)

You can see effects like this better with AVI sources if you use a contrast enhancing filter. I usually just add one in VDub when I'm experimenting - +175% contrast and +5% brightness seems to work well. Try it with a "raw" AVI (no filters) to see the sort of noise I'm trying to remove.

Next experiment is with MarcFD's asharp. Look's interesting :)

Jellygoose 06-04-2003 03:30 PM

Quote:

Originally Posted by girv
Next experiment is with MarcFD's asharp. Look's interesting :)

that's the filter I'm experimenting right now too! :wink:

jorel 06-04-2003 03:46 PM

@ girv and Jellygoose

:)
just like i tell my friends,
using asharp without STM i got more quality and less size...faster :!:

:wink:

ovg64 06-04-2003 03:53 PM

Quote:

Originally Posted by Jellygoose
Quote:

Originally Posted by girv
Next experiment is with MarcFD's asharp. Look's interesting :)

that's the filter I'm experimenting right now too! :wink:

Hi Jellygoose you may want to use a sharp with a low setting cause this filter is intensebly Sharp Ex:
asharp(2,1) = Unfiter(50 50) in file size
so a setting like asharp(2,0) will add file size to your encode.
although im still not sure whats the best setting for this one.

Bchteam 06-04-2003 04:09 PM

Hi Ovg64 :D :!:

Jorel said, that for Asharp he`s using the Value (2,3) for very gently Sharpness and (2,4) for even more Sharpness :wink:

ovg64 06-04-2003 04:21 PM

Thanx Bchteam, I said before that i dont know what are the best setting cause the filter does a bit more that sharpning.

asharp : adaptive sharpenning filter for Avisynth 2.5
(v0.95)


What it does:
basically, this filter is a very common unsharp mask, simply because unsharp
mask is the most pleasant sharpenning technique for my eyes ^^
but i've added 3 simple ideas i had about sharpening :
- adaptive thresholding to avoid noise enhancement
- block adaptive sharpenning to avoid DCT block edges enhancement
- block based adaptive thresholding to avoid DCT block edges enhancement

jorel 06-04-2003 04:29 PM

ovg64
:)
see from read-me:
What it does:
basically, this filter is a very common unsharp mask, simply because unsharp
mask is the most pleasant sharpenning technique for my eyes ^^
but i've added 3 simple ideas i had about sharpening :
- adaptive thresholding to avoid noise enhancement
- block adaptive sharpenning to avoid DCT block edges enhancement
- block based adaptive thresholding to avoid DCT block edges enhancement

it's optimised for quality, not speed. but... i love speed ^^
so i've added very optimised MMX/ISSE code.

it's working in YV12 colorspace, and on luma only
(chroma sharpenning seems to only introduce artifacts)

Usage of asharp :
First, add the following line in your .avs script :

LoadPlugin("asharp.dll") # because Avisynth 2.5 doesn't support Autoloading yet

To do simple unsharp masking with a strength of 2x :

asharp(2,0)

To try some adaptive sharpenning :

asharp(2,4)

Suggestion for divx anime decoding :

asharp(2.5,4.5,0.25,hqbf=true)

:wink:

Jellygoose 06-04-2003 04:37 PM

I'm currently testing this:

Code:

Unfilter(10,10)
asharp(1.25,4,1,hqbf=true)

instead of

Code:

Unfilter(50,50)
and the result is a lot less blurry... give it a try! :wink:

rendalunit 06-04-2003 04:45 PM

I've been wondering why Unfilter (50,50) is put in there in the first place. If it's to sharpen the image then why not just use Lanczos resizer?

ovg64 06-04-2003 04:50 PM

Quote:

Originally Posted by Jellygoose
I'm currently testing this:

Code:

Unfilter(10,10)
asharp(1.25,4,1,hqbf=true)

instead of

Code:

Unfilter(50,50)
and the result is a lot less blurry... give it a try! :wink:

Very nice Jellygoose i like that setting by it self asharp(1.25,4,1,hqbf=true) it gives same file size that unfilter50 n it apears more sharper. :D


All times are GMT -5. The time now is 11:06 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.