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

Bchteam 06-04-2003 04:50 PM

@ Rendalunit

Quote:

Hi heller,

Using Lanczos, the picture will look slightly sharper, but will also decrease compression and show slightly more artifacts around objects.

-kwag
That's what Kwag wrote... :wink:

jorel 06-04-2003 04:54 PM

friendalunit,
:)
i post (and Kwag too) somewhere here that lanczos give strange artefacts
in the lines...seems staircases in thin lines.
i see it in 352x240..with more size got less staircases.

i use it before in 3 full movies and got big simbilances on tv29.
:wink:
(sorry my english) :!:

Bchteam 06-04-2003 05:19 PM

I made 2 Samples one with:

Code:

Asharp(2,4)

and one with


Code:

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

With the First one(Only Asharp) I got a CQ of 50,72, at a resolution of 704x480.

With the second one (Asharp+Unfilter) I got a CQ of 51,2, at a resolution of 704x480, as well.

The First Script (Asharp only) is way sharper...The second is also good but not as good as the First one.

So the winner (for now) is :

Code:

Asharp(2,4)

rendalunit 06-04-2003 05:58 PM

Quote:

Originally Posted by Bchteam
@ Rendalunit

Quote:
Hi heller,

Using Lanczos, the picture will look slightly sharper, but will also decrease compression and show slightly more artifacts around objects.

-kwag


That's what Kwag wrote...

aahh, i get it now

thnx,
ren

vico1 06-04-2003 08:01 PM

Quote:

Originally Posted by Bchteam
So the winner (for now) is :

Code:

Asharp(2,4)

@ Bchteam,
Was the "Asharp(2,4)" you applied, only used on a very clean source?? (DVD?)
I would imagine using that much sharpening, on anything other than
a pretty clean source, would also bring out a lot of artifacts.



************************************
The Devil.....is always.....in the Details!

Bchteam 06-05-2003 12:46 AM

@ Vico

Yes, the Source is very clean :idea:

Jellygoose 06-05-2003 01:45 AM

Well this line
Code:

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

is optimized, for noise reduction too... for me it is the best compromise between sharpness and the covering of artifacts around objects...
aSharp(2,4) gives me a very sharp picture, however noise seems to be enhanced and becomes clearly more visible around Objects, especially in the background...
that's at least my observation! :wink:


All times are GMT -5. The time now is 10:20 PM  —  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.