digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Motion adaptive filtering now possible? (http://www.digitalfaq.com/archives/avisynth/3594-avisynth-motion-adaptive.html)

girv 06-04-2003 11:00 AM

@kwag and jellygoose: I'm using the same trigger value for 480x480 encodes and it works just fine.

Jellygoose 06-04-2003 11:06 AM

Quote:

Originally Posted by girv
@kwag and jellygoose: I'm using the same trigger value for 480x480 encodes and it works just fine.

good news girv thanks! :wink:

btw: Where did STMedian Filter go in the latest script :?:

kwag 06-04-2003 11:07 AM

Quote:

Originally Posted by Jellygoose
So at KVCDx3 resolution, the current script should also work with no blinks or flashes right?

Yes. The flashes and blinks were related to the on/off switching of the filters. At least that's the only logical conclusion I have, because now I can't duplicate the problem :)

-kwag

kwag 06-04-2003 11:12 AM

Quote:

Originally Posted by Jellygoose

btw: Where did STMedian Filter go in the latest script :?:

Geee :!: thanks Jellygoose 8O, I forgot to add it, and the samples I posted were done with the filter included. I just fixed the script :oops:
Too many cycles are wearing my brain out :P

-kwag

jorel 06-04-2003 11:55 AM

Quote:

Originally Posted by Jellygoose
Quote:

Originally Posted by girv
@kwag and jellygoose: I'm using the same trigger value for 480x480 encodes and it works just fine.

good news girv thanks! :wink:

btw: Where did STMedian Filter go in the latest script :?:


i see without STMedianin in the last and before the last too but don't post.
i was afraid to bore with some that i don't understand. :oops:

thank you all.
:wink:

doing the sample number 39738390,8
:lol:

jorel 06-04-2003 12:30 PM

i did samples with and without the (forgoten)STF and can't see differences.
with the filter i got little less size, but in pc the quality is the same.

anyone did the same?
see differences :?:

in the last news i can't see some strange artefacts in
the moviments on the background using 480x480.
is really better :!:

ovg64 06-04-2003 01:11 PM

[quote]
Quote:

Originally Posted by jorel
i did samples with and without the (forgoten)STF and can't see differences.
with the filter i got little less size, but in pc the quality is the same.

anyone did the same?
see differences :?:

I Dont use STMedian I use Deen but that only a persopnal preference you can use Conv 3D, MipSmooth or any other to replace it. If you want to use STM use it with a low setting like Kwag has it I think it works better that way. Now TemporalSoften that one i wouldn't live out, is the best of the smoothers n the fastest. :wink:

Jellygoose 06-04-2003 01:14 PM

[quote="ovg64"]
Quote:

Quote:

Originally Posted by jorel
i did samples with and without the (forgoten)STF and can't see differences.
with the filter i got little less size, but in pc the quality is the same.

anyone did the same?
see differences :?:

I Dont use STMedian I use Deen but that only a persopnal preference you can use Conv 3D, MipSmooth or any other to replace it. If you want to use STM use it with a low setting like Kwag has it I think it works better that way. Now TemporalSoften that one i wouldn't live out, is the best of the smoothers n the fastest. :wink:
The only difference is that STMedian Filter does only spatial smoothing, the way we use it right now, while C3D or MipSmooth are combining Spatial and Temporal Filtering...

Dano 06-04-2003 01:57 PM

Now that the dust has settled after evryone's hard work I thought I might share my experience for adding filters for not so clean material/captures.
UnDot and DNR2 do a good job of removing noise and are a balance of speed and quality. Actually, Kwag, you might want to consider adding UnDot to the current script for DVD's since it has virtually no effect on encoding time.

Jellygoose 06-04-2003 03:28 PM

Right now, all I can say is that the latest script still works best for me, but I'm currently testing aSharp Filter, which is an Adaptive sharpening Filter, and the results are promising...
Testing is such a long-taking procedure for me... :wink:

Bchteam 06-04-2003 03:31 PM

Which Sharpen Filter, JellyGoose :idea: :?:

EDIT:

Now, I read that you're testing "aSharp" :oops:

jorel 06-04-2003 03:52 PM

Quote:

Originally Posted by Bchteam
Which Sharpen Filter, JellyGoose :idea: :?:

EDIT:

Now, I read that you're testing "aSharp" :oops:

believe me friend Bchteam,
asharp is the best sharper that i know.

i'm doing samples for 2 days to see and compare
using in the Kwag's scripts(and i test all scripts after any change)
changing unfilter to asharp and compare any encode.
in all asharp is champion!

do a test and see :!:
asharp(2,3)...(very gently) or asharp(2,4)...(more sharp)
:wink:

Bchteam 06-04-2003 04:06 PM

Sounds very Promising, Jorel :!: :D

Am I supposed to put "aSharp" Before(Like UnFilter) or After resizing :?:

:wink:


@Kwag

It's time for updating the script...

...again :D

jorel 06-04-2003 04:23 PM

Quote:

Originally Posted by Bchteam
Sounds very Promising, Jorel :!: :D

Am I supposed to put "aSharp" Before(Like UnFilter) or After resizing :?:

:wink:


@Kwag

It's time for updating the script...

...again :D

Bchteam,

all "sharp" filter tested before resize give
more sharpness and less size...ever :!:
:wink:

Bchteam 06-04-2003 04:32 PM

Yes I know, Jorel :wink:

I just required your opinion as final confirmation :)

I just made my first sample and I'm very curious... :lol:

ovg64 06-04-2003 04:33 PM

Hi all if this is thru than its worth using asharp. :D I have tried it and so far so good, but keep in mind the filter is very strong and at a high setting will add file size.

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

audioslave 06-04-2003 04:43 PM

Hmm... This ASharp filter sure sounds interesting! What settings do you guys recommend for a medium to high action DVD movie? I'm currently encoding "A Knight's Tale" and it would be nice to test the filter on that movie! Do you use Bicubic or Linear resize together with ASharp?

jorel 06-04-2003 05:02 PM

Quote:

Originally Posted by Bchteam
Yes I know, Jorel :wink:

I just required your opinion as final confirmation :)

I just made my first sample and I'm very curious... :lol:

Bchteam,
i got a little less CQ after prediction but big more quality
and of course,after prediction the final size will
be the same using any filter. :wink:

audioslave,
the recomendation from the developer is asharp(2,4)
but it will encrease the size and the Kwag's scripts,
don't need huge sharpness.
better is (2,2) or(2,3).
see how this filter encrease the contrast :!:
:wink:

ps:
where is our master?
(Kwag of course)
:?:

audioslave 06-04-2003 05:12 PM

@jorel
What about the other two parameters? No need for them?
And again: :wink:
Do you use Bicubic or Linear resize together with the filter?

kwag 06-04-2003 05:27 PM

@dano,
Thanks for the tip on "undot". It's now in the script.

@jorel,
Thaks for your heavy testing with "asharp".
I've removed "unsharp" and used "asharp".

@all,
Thanks for your patience :D

I've re-written the script, eliminating ALL dynamic blur and mergeluma(blur) calls.
I've used negative values in asharp to produce exactly the same dynamic results, but without the DAMN bugs that the "blur" and family of functions.
I had to do this, because I still found sporadic flashes on several encodes I did today. So I tried asharp, but used it as a "blur" engine instead of as a sharpener. Only at the beginning of the script it's used to oversharpen, just like unfilter was used.
Also, the speed of the script is much faster by removing all the 'blur" functions.
So give it a whirl, and post your comments. I can now say that I didn't find ANY blink or flash anywhere on scenes that DID have flashes with the previous script. The functionality of the new script is identical to the previous one.

-kwag

kwag 06-04-2003 05:55 PM

I'm currently trying out the asharp's adaptive sharpening. If it works as advertized ( 8) ), then I'll turn it on. From the readme file of asharp, here's what it does:

- 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


So this combination, together with the adaptive filtering (bluring) on action and scene changes, should be a killer :D

-kwag

kwag 06-04-2003 06:31 PM

Note: The first line of "asharp" in the script should read: asharp(2,0) and not asharp(1,0).


I fixed that. :imstupid:

jorel 06-04-2003 07:17 PM

@Kwag
you wrote:
"@all,
Thanks for your patience"

are you kidding?
we all are thankfull for your great work. :D
without your friendship and developing,
this forum couldn't never be so great.
thanks for the script update too.
:wink:

@audioslave
i ever use bicubic precise in all my tests and in the last encodes.
:)

@all
great work!
i'm thankfull :D
the Kwag team is the best.
:!:

Racer99 06-04-2003 07:27 PM

MY Test
 
I just did a couple of tests using asharp.

Test Basics: (Current Script)

kvcdX3 - MPEG1 CQ=80 Sample Length=1656 Frames (69 seconds)
MinBitrate=300, Max Bitrate=2500, VBV=40, GOP 1-5823-2-1-24

Filesize with asharp(2,0) = 8,653,029
Filesize with asharp(2,2) = 7,236,833 (16.37% smaller)

kvcdX3 - MPEG2 CQ=80 Sample Length=1656 Frames (69 seconds)
MinBitrate=600, Max Bitrate=6000, VBV=224, GOP 1-5823-2-1-18

Filesize with asharp(2,0) = 19,076,155
Filesize with asharp(2,2) = 15,308,597 (19.75% smaller)

I don't see much difference in quality (but I don't have the best eyes. :) )
I think that adaptive shapening is the way to go with asharp.

Racer99

kwag 06-04-2003 07:28 PM

Here's a small ( ~1MB ) sample with the new script :D
www.kvcd.net/red-planet-short-asharp-704x480.mpg

-kwag

kwag 06-04-2003 07:31 PM

Re: MY Test
 
Quote:

Originally Posted by Racer99
I don't see much difference in quality (but I don't have the best eyes. :) )
I think that adaptive shapening is the way to go with asharp.

Racer99

I did turn on adaptive shapening as asharp(2,4). The script was just updated with that. Also the small sample I just posted, was done that way :)

-kwag

kwag 06-04-2003 08:11 PM

:imstupid: :imstupid::imstupid::imstupid:


Latest correction: I was passing bluring variables as INT instead of FLOAT :imstupid:
The scaling on blurring was incorrect, as it was in harder steps ( -1, -2, -3, etc. ).
Fixed. It's now floating point values ( -1.12, -2.142, etc. )


-kwag

jorel 06-04-2003 10:23 PM

hey Kwag,

i don't test the "very new" yet, i see it only now.
the last script before your corrections
give some staircases like in lanczos, did you see some like this?
i see it in detail in 352x240.
with more "resize" this thin lines with staircases are hard to see.

can i encode a movie using 720x480 in one cdr80 or
cdr90 with audio in 160k and got good result :?:
i'm asking cos never did with more than 480x480.
i did only samples in pc and the results are incredibles.
i never see this resolution in the tv.

ps:
i got a new player phillips and he play all kvcds. 8)
i did a big search to find what was the best.
2 weeks testing with tons of kvcds in the shops, 8O
i post it in the portuguese forum.
the important now isn't the dvd player.
the best is the kvcd player :!:
:wink:

@racer,
i'm with you!
asharp(2,2) ... (2,4) give more sharp and less size!
i think that (2,2) is a "gently" sharpness.
:wink:

kwag 06-04-2003 10:45 PM

Quote:

Originally Posted by jorel

can i encode a movie using 720x480 in one cdr80 or
cdr90 with audio in 160k and got good result :?:

Try it :)
The "Red Planet" samples I posted were all 704x480 with a CQ for one 80 minute CD :!:
Audio at 112Kbps.

-kwag

jorel 06-04-2003 11:08 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by jorel

can i encode a movie using 720x480 in one cdr80 or
cdr90 with audio in 160k and got good result :?:

Try it :)
The "Red Planet" samples I posted were all 704x480 with a CQ for one 80 minute CD :!:
Audio at 112Kbps.

-kwag

sample very clear Kwag.

what CQ did you find in the sample :?:

kwag 06-04-2003 11:15 PM

Quote:

Originally Posted by jorel
sample very clear Kwag.

what CQ did you find in the sample :?:

All were around CQ ~62 to ~63. I think I posted the CQ besides some of the samples

-kwag

Jellygoose 06-05-2003 01:52 AM

God I was testing the whole night, and now everything has changed again... :cry: 8)
well as for noise reduction and sharpness, I found that this line would best replace Unfilter(50,50) :

Code:

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

you might still wanna test it...

kwag 06-05-2003 02:05 AM

Quote:

Originally Posted by Jellygoose
God I was testing the whole night, and now everything has changed again... :cry: 8)
well as for noise reduction and sharpness, I found that this line would best replace Unfilter(50,50) :

Code:

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

you might still wanna test it...

Hi Jellygoose,

Did you see the latest one: asharp(2, 4, 0.25, hqbf=true)
Have you tested that one :?:
It seems that asharp is way faster than unfilter :!:

-kwag

Jellygoose 06-05-2003 02:12 AM

currently testing... :wink:

kwag 06-05-2003 02:16 AM

Quote:

Originally Posted by Jellygoose
currently testing... :wink:

I just did a new clip of "Red Planet" with the new script, and it looks :jawdrop: :D

-kwag

audioslave 06-05-2003 02:26 AM

@kwag
So what are you waiting for?! Show us a clip, man! :D

EDIT: Would be nice with info on CQ etc.

kwag 06-05-2003 02:28 AM

Quote:

Originally Posted by audioslave
@kwag
So what are you waiting for?! Show us a clip, man! :D

EDIT: Would be nice with info on CQ etc.

Will do :!: Give me about 15 minutes... :D

-kwag

audioslave 06-05-2003 02:29 AM

:lol: :lol: :lol:

kwag 06-05-2003 02:46 AM

Ok, this one should top just about every other sample ever made at KVCD.Net :mrgreen:
www.kvcd.net/red-planet-extreme-704x480.mpg
Specs:
31 second sample, 3,838KB. Res. 704x480, CQ=63.42, MIN bitrate 300Kbps, MAX bitrate 2,500Kbps
KVCD "Notch" Q. Matrix. GOP 1-12-2-1-24, Current script as posted Ver. June 5, 2003 @05:45GMT :mrgreen:

-kwag

audioslave 06-05-2003 02:48 AM

@kwag
I didn't have any luck with squeezing "A Knight's Tale" onto one CDR :cry: . When I made the prediction I got a CQ value 25-30(!) for one CDR, and I guess that won't be very exciting to look at... If a movie contains a lot of fast action scenes will it be easier to fit on a single disc?


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