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)

audioslave 05-30-2003 07:36 AM

Thank you Krassi! :D
I'll download it right away...

jorel 05-30-2003 09:05 AM

with this script (copied from Kwag posted here),
when i try to load in ToK with the new sampler(Krassi-thanks) :wink:
i got:
" invalid argument to time encode "
and the file don't load!
i did a folder called "filters25" with all news dlls for avisynth251.

see ToK log:
================================================== ===========
ToK Log: C:\Meus documentos\kwag.avs
================================================== ===========

Resolution (fps):0x0 (00,000 fps)
Total Frames: 0

the script:
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\UnFilter.dll")
LoadPlugin("C:\Filters25\BlockBuster.dll")

Mpeg2Source("D:\La Luna\Segment2\DVD2AVI_PROJECT_FILE.d2v")

MaxThreshold=1.58

UnFilter(50,50)
BicubicResize(448,448,0,0.6,0,0,720,480)
STMedianFilter(8,32,0,0)
TemporalSoften(2,7,7,3,2)
mergechroma(blur(1.50))

### Dynamic Adaptive Filtering ###
val=0 # Initialize our motion variable.
N="noise"

FrameEvaluate("val=YDifferenceFromPrevious()/14.55") # Assign "val" with difference between current frame and last frame.
ScriptClip("val > MaxThreshold ? MergeLuma(blur(MaxThreshold)) : MergeLuma(blur( val )) ") # Adaptive mergeluma.
AddBorders(16,16,16,16)
LetterBox(16,16,16,16)
Limiter()

help please, don't know what's going wrong! :(
:?
any help will be fine.
:wink:

kwag 05-30-2003 09:25 AM

Hi jorel,

Make sure you're using the latest version of avisynth 2.51. Don't use the one posted on the page at sourceforge.net. Get the latest build from sh0dan's link, available on his signature.

-kwag

jorel 05-30-2003 09:28 AM

8O
ok faster double click!
:lol:

thank you.

jorel 05-30-2003 10:34 AM

no more problems
:D

the script is great and faster.
intall avisynth251 ffvfw option!!!

8)

kwag 05-30-2003 10:51 AM

Quote:

Originally Posted by jorel
:(
more information from my error:
when i try to open the script in VirtualDub i got:

VirtualDub error

"couldn't locate decompressor for format 'yv12' (unknow)

Add "ConvertToYV12()" after your source line ;)

-kwag

jorel 05-30-2003 11:00 AM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by jorel
:(
more information from my error:
when i try to open the script in VirtualDub i got:

VirtualDub error

"couldn't locate decompressor for format 'yv12' (unknow)

Add "ConvertToYV12()" after your source line ;)

-kwag

don't work Kwag,same error :!:

:?

kwag 05-30-2003 11:03 AM

I don't know what's going on jorel 8O
Maybe your MPEG2DEC3 version :idea:
I don't have a single problem with the script as it is, and it's working fine here even with ToK, doing prediction and encoding :!:

-kwag

jorel 05-30-2003 11:09 AM

Quote:

Originally Posted by kwag
I don't know what's going on jorel 8O
Maybe your MPEG2DEC3 version :idea:
I don't have a single problem with the script as it is, and it's working fine here even with ToK, doing prediction and encoding :!:

-kwag

i know Kwag,the script is fantastic,i read all posts and
you send me a big sample...is really cool!
:!:

my version of MPEG2DEC3 is from 19-01-03.
this was the last that i got!

where i find the new?
:)

kwag 05-30-2003 11:15 AM

Quote:

Originally Posted by jorel

my version of MPEG2DEC3 is from 19-01-03.
this was the last that i got!

So is my version :!:
Have you tried another source :idea:

-kwag

DorvalCS 05-30-2003 11:15 AM

Quote:

Originally Posted by jorel
:(
more information from my error:
when i try to open the script in VirtualDub i got:

VirtualDub error

"couldn't locate decompressor for format 'yv12' (unknow)

:?

Jorel... I had the exact same problem... And I fixed this by going to this site http://mirror01.iptelecom.net.ua/~video/ and I downloaded this Video Codec <<ATI YV12 4:2:0 Planar v.4.12.5038>>> and installed it.
This fixed my problem. I can now use the script.... That being said, I have a question for Kwag and others.... What codec are you using??? I don't even know if this is the right one... 8O

Hope this helps...
:)

jorel 05-30-2003 11:23 AM

DorvalCS

thanks for help me too!
:wink:

i only did like you post in another thread:
"Reinstalled only AviSynth 2.51 WITH (I think this is where I went wrong the first time) ffvfw option!!!"

:D

DorvalCS 05-30-2003 11:25 AM

Jorel,

Just tried the link again.... veeeerrrrrryyyyy slow!!! But it works. :wink:

I'm afraid I don't have another link.

jorel 05-30-2003 11:31 AM

believe me friend,
i post this link here in few months ago.

:lol: :lol: :lol: :lol:

i knew it but forgot. :oops:

thank you very much,now is coming.
:D

Krassi 05-30-2003 11:31 AM

Hi Jorel,
try again with this link
http://mirror01.iptelecom.net.ua/~vi...oder.v4.12.exe

I had the same problem and my solution was
Mpeg2Source("D:\Recorder\movie.d2v")
ConvertToYV12()
(as Kwag already said :D ).

DorvalCS 05-30-2003 11:38 AM

:D

Glad I can help... For a change!!!

I usually come here and benefit from all the hard work you guys are putting into this project :D

jorel 05-30-2003 11:38 AM

right between the eyes.
:D

works fantastic now :!:

thank you DorvalCS my friend :wink:

this is a big hint for all that got the same problem.

thank you too Krassi,i see you in the "preview".

you all are great :!:

:D

sbin 05-30-2003 12:51 PM

Quote:

And I fixed this by going to this site http://mirror01.iptelecom.net.ua/~video/ and I downloaded this Video Codec <<ATI YV12 4:2:0 Planar v.4.12.5038>>> and installed it.
You can also solve this issue by using VirtualDubMod, which is patched with internal YV12 support. Regular VirtualDub doesn't support YV12 without some support codecs, which can be a pain, as you see. :lol:

http://virtualdubmod.sourceforge.net

rendalunit 05-30-2003 03:28 PM

i changed the script to blur more on motion scenes:
Code:

Loadplugin("C:\encoding\filters25\MPEG2Dec3.dll")
Loadplugin("C:\encoding\filters25\Decomb.dll")
Loadplugin("C:\encoding\filters25\Deen.dll")
Loadplugin("C:\encoding\filters25\Sampler25.dll")
Loadplugin("C:\encoding\filters25\STMedianFilter.dll")

Mpeg2Source("D:\source.d2v")

Deen("m2d",1,10,12)
TemporalSoften(2,7,7,3,2)

BicubicResize(512, 462, 1/3, 1/3, 5, 0, 710, 480)
val=0
FrameEvaluate("val=YDifferenceFromPrevious()")
#ScriptClip("Subtitle(string(val))")
ScriptClip("val>=10 && val<15 ? blur(1.58).blur(1.58) :  mergechroma(blur(1.50)).mergeluma(blur(0.2))")
ScriptClip("val>=15 ? blur(1.58).blur(1.58).blur(1.58) :  mergechroma(blur(1.50)).mergeluma(blur(0.2))")

AddBorders(8, 9, 8, 9)
Limiter()

I'm getting really good compression with this script (probably because there's so much blurring and denoising :D ) Deen seems really fast too. I thought that when the Y difference between frames was > 15 then lots of blurring wouldn't be very noticeable but the problem is that when there's a scene change then the first frame of the new scene is blurry :roll:

ren

DorvalCS 05-30-2003 03:49 PM

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?


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