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)

kwag 05-30-2003 04:10 PM

Quote:

Originally Posted by rendalunit
but the problem is that when there's a scene change then the first frame of the new scene is blurry :roll:

ren

I have notied that too ren, and I'm adding a work around that :)
But I also see a problem in your script, and that is that you are using fixed values ( 1.58 ) instead of using value returned as the parameter to blur. This causes a sharp turn on/turn off of the filter between boundaries, and will make sort of "flashing" visuals every time a filter is turned on and turned off :!:

-kwag

jorel 05-30-2003 04:15 PM

Quote:

Originally Posted by DorvalCS
Did anyone of you compare a scene (or frame) from this new script to the same scene created with the last "optimal script" for AviSynth 2.0x?

With this new adaptive script I noticed that the colors were washed out... It is especially noticeable with the black :?

Is it just me?

:)

install avisynth251 with ffvfw option!!!

:wink:

rendalunit 05-30-2003 05:34 PM

Quote:

Originally Posted by kwag
But I also see a problem in your script, and that is that you are using fixed values ( 1.58 ) instead of using value returned as the parameter to blur. This causes a sharp turn on/turn off of the filter between boundaries, and will make sort of "flashing" visuals every time a filter is turned on and turned off

You're right! There's flickering which is especially noticeable with the credits. This is !muy no bueno! :wink:

ren

kwag 05-30-2003 05:45 PM

Quote:

Originally Posted by rendalunit
Quote:

Originally Posted by kwag
But I also see a problem in your script, and that is that you are using fixed values ( 1.58 ) instead of using value returned as the parameter to blur. This causes a sharp turn on/turn off of the filter between boundaries, and will make sort of "flashing" visuals every time a filter is turned on and turned off

You're right! There's flickering which is especially noticeable with the credits. This is !muy no bueno! :wink:

ren

Hey, no sweat :!:, it's been only a couple of days and we already can encode at 704x480 with a >~30% better quality than two days ago :mrgreen:
So it's a matter of fine tunning this stuff, and we'll be rocking :lol:

-kwag

ovg64 05-30-2003 06:07 PM

I see you guys are talking allready about encoding more at 704x480 but with my Athlon xp 1700 i dont think ill be doing any 704 yet even with the 30% speed improvement in avs2.51. :roll:

ovg64 05-30-2003 06:20 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by ovg64
now it would be nice if MovieStacker would generate our avs scripts again. :mrgreen:

It's just a matter of time, and a matter of muaddib getting his motheboard fixed :!: His machine went bad (again!) last week, and he told me he would be unavailable for some days until he gets his system fixed. I'm sure he will be surprised when he logs back on :mrgreen:

-kwag

Maybe we should get some Donations and buy Muaddib that Mothemboard that way we can speed up things a little. :mrgreen:

kwag 05-30-2003 06:29 PM

Quote:

Originally Posted by ovg64
Maybe we should get some Donations and buy Muaddib that Mothemboard that way we can speed up things a little. :mrgreen:

Yeah, let's take donations and when we get enough, I'll buy him a new 3 Gigahertz P4, but I'll keep it and send him my P4 @1.6Ghz :mrgreen:

ovg64 05-30-2003 08:21 PM

Quote:

I'll buy him a new 3 Gigahertz P4, but I'll keep it and send him my P4 @1.6Ghz :mrgreen
My dream mashine a full power 3 Gig P4,
Three years from now when i get it it won't
be the dream mashine anymore. :mrgreen:

muaddib 05-30-2003 08:59 PM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by ovg64
now it would be nice if MovieStacker would generate our avs scripts again. :mrgreen:

It's just a matter of time, and a matter of muaddib getting his motheboard fixed :!: His machine went bad (again!) last week, and he told me he would be unavailable for some days until he gets his system fixed. I'm sure he will be surprised when he logs back on :mrgreen:

-kwag

MUCH MORE THEN SURPRISED!!
:bugeyes: :bugeyes: :bugeyes: :bugeyes: :bugeyes: :bugeyes:
:jawdrop: :jawdrop: :jawdrop: :jawdrop: :jawdrop: :jawdrop: :jawdrop: :jawdrop: :jawdrop: :jawdrop:
I need to install AVS2.5 to try that!
(well I need to install everything again... I did a fresh install of WinXP)

BTW... my system is now stable (i hope) and it's flying smooth! :mrgreen:
I just bought a new machine and it's really "near" of my dream system.
Here is my rig:
ABIT IC7 - Pentium IV 2.53GHz - 512MB Dual DDR 400 Kingston
MSI GeForce4 Ti4200 AGP 8x - 2x 80GB UDMA133 (8MB buffer) Raid 0


Oh man... this baby is FAST! 8)

ovg64 05-30-2003 09:25 PM

Quote:

Here is my rig:
ABIT IC7 - Pentium IV 2.53GHz - 512MB Dual DDR 400 Kingston
MSI GeForce4 Ti4200 AGP 8x - 2x 80GB UDMA133 (8MB buffer) Raid 0


Oh man... this baby is FAST! 8)
Nice Rig Muad, wouldn't I like to call Michall Dell and tell him to send me one 4 Christmas. :D

rendalunit 05-30-2003 11:52 PM

@kwag,

I rewrote the script I posted earlier:
Code:

Loadplugin("C:\encoding\filters25\MPEG2Dec3.dll")
Loadplugin("C:\encoding\filters25\Deen.dll")
Mpeg2Source("D:source.d2v")
Deen("m2d",1,10,12)
BicubicResize(512, 462, 1/3, 1/3, 5, 0, 710, 480)
val=0
amnt=0
FrameEvaluate("val=YDifferenceFromPrevious()")
ScriptClip("amnt=((val/10)>1.58) ? 1.58 : val/10. blur(0).Subtitle(string(amnt), y=30)")
ScriptClip("Subtitle(string(val))")
ScriptClip("val>=10 && val<20 ? blur(1.58).blur((val-10)/10) : blur(0)")
ScriptClip("val>=20 && val<35 ? blur(1.58).blur(1.58) : blur(0)")
blur(amnt).mergeluma(blur(0.2))
AddBorders(8, 9, 8, 9)
Limiter()

It transitions a lot better (not as much flickering). YDifferenceFromPrevious values above 35 seemed to usually be scene changes so i made 35 the cutoff point

ren

kwag 05-31-2003 12:10 AM

Hi ren,

The trick is to keep a variable assigned from the last frame, and compare to the current frame. Then establish a trigger threshold. So when there is a scene change, there is an abrupt change in val, and we don't apply filters at that point!
Right now I'm looking with Vdub at the value that is assigned to val on every scene change. It's usually above 3. So I'm modifying the script to consider that if (last frame to current frame diff is > 1) "abrupt change!", don't apply filters, because usually a frame to frame change increases or decreases at around .2 to .3, but not any higher :)

-kwag

Jellygoose 05-31-2003 03:56 AM

Hi all!

after watching the first movie on my TV encoded with the new script, I have to say that I'm still impressed... I haven't noticed any bad colors at all... black is completely black, and colors actually look more natural than before in my eyes... :o
however I did notice the flashing you guys were talking about. It's not very obvious, however, I'd like to get rid of it...
kwags idea sounds great, as usual, so I'm just leaning back, waiting for new script-food! :wink:

jorel 05-31-2003 05:45 AM

:!:
i had big problems,
was the decompressor.

using this script and avisynth251 my result was washed...horrible.

solving the problem:
install avisynth251 with ffvfw option!!!

i got the big sample that Kwag give with 11.8mb,
the image is incredible! :!: ! :wink: :wink: :wink:

:!:

Jellygoose 05-31-2003 05:55 AM

I can't even remember installing a YV12 decompressor... however, my picture quality is amazing with this script... :o
sorry jorel, I don't know what's going on ...

Bchteam 05-31-2003 06:46 AM

Quote:

Originally Posted by Jellygoose
I can't even remember installing a YV12 decompressor... however, my picture quality is amazing with this script... :o
sorry jorel, I don't know what's going on ...

Are you talking about the latest optimal script from Kwag???

jorel 05-31-2003 06:53 AM

Quote:

Originally Posted by Bchteam
Quote:

Originally Posted by Jellygoose
I can't even remember installing a YV12 decompressor... however, my picture quality is amazing with this script... :o
sorry jorel, I don't know what's going on ...

Are you talking about the latest optimal script from Kwag???

seems that only i had this problem....
but no more, see what i did:

"Reinstalled only AviSynth 2.51 WITH ffvfw option!"

thanks DorvalCS for this big hint.
:D

edited,
big quality now.
:)

Jellygoose 05-31-2003 07:03 AM

Quote:

Originally Posted by Bchteam
Quote:

Originally Posted by Jellygoose
I can't even remember installing a YV12 decompressor... however, my picture quality is amazing with this script... :o
sorry jorel, I don't know what's going on ...

Are you talking about the latest optimal script from Kwag???

Yes I am...

rendalunit 05-31-2003 12:35 PM

Quote:

Originally Posted by kwag
Right now I'm looking with Vdub at the value that is assigned to val on every scene change. It's usually above 3.

8O 8O way higher than 3 (like ~35-200). I wonder why the numbers you're talking about are so low :?: Are those numbers the YDifferenceFromPrevious divided by a constant?

btw- i'm using 528x480 in case it's because of using different resolutions

thnx,
ren

jorel 05-31-2003 12:57 PM

@ friendalunit and Kwag

excuse me this "pause" friends:

now my system is working with a help from DorvalCS. :wink:
the error was that i wasn't install the ffvfw option.

now everything is "shine" with avisynth251..
i see grat results in samples with great quality.
i never see quality like that....and faster :!:
:o

go ahead friends, you're the best, i'm impressed.
thank you.
:D


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