Quantcast Avisynth: Motion Adaptive Filtering Now Possible? - Page 9 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #161  
05-30-2003, 04:10 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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

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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #162  
05-30-2003, 04:15 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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!!!

Reply With Quote
  #163  
05-30-2003, 05:34 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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!

ren
Reply With Quote
  #164  
05-30-2003, 05:45 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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!

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
So it's a matter of fine tunning this stuff, and we'll be rocking

-kwag
Reply With Quote
  #165  
05-30-2003, 06:07 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
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.
Reply With Quote
  #166  
05-30-2003, 06:20 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
Quote:
Originally Posted by kwag
Quote:
Originally Posted by ovg64
now it would be nice if MovieStacker would generate our avs scripts again.
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

-kwag
Maybe we should get some Donations and buy Muaddib that Mothemboard that way we can speed up things a little.
Reply With Quote
  #167  
05-30-2003, 06:29 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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
Reply With Quote
  #168  
05-30-2003, 08:21 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
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.
Reply With Quote
  #169  
05-30-2003, 08:59 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
Originally Posted by ovg64
now it would be nice if MovieStacker would generate our avs scripts again.
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

-kwag
MUCH MORE THEN SURPRISED!!


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!
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!
Reply With Quote
  #170  
05-30-2003, 09:25 PM
ovg64 ovg64 is offline
Free Member
 
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ovg64
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!
Nice Rig Muad, wouldn't I like to call Michall Dell and tell him to send me one 4 Christmas.
Reply With Quote
  #171  
05-30-2003, 11:52 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
@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
Reply With Quote
  #172  
05-31-2003, 12:10 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #173  
05-31-2003, 03:56 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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...
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!
__________________
j3llyG0053
Reply With Quote
  #174  
05-31-2003, 05:45 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts

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! !

Reply With Quote
  #175  
05-31-2003, 05:55 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
I can't even remember installing a YV12 decompressor... however, my picture quality is amazing with this script...
sorry jorel, I don't know what's going on ...
__________________
j3llyG0053
Reply With Quote
  #176  
05-31-2003, 06:46 AM
Bchteam Bchteam is offline
Free Member
 
Join Date: Jan 2003
Posts: 275
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Jellygoose
I can't even remember installing a YV12 decompressor... however, my picture quality is amazing with this script...
sorry jorel, I don't know what's going on ...
Are you talking about the latest optimal script from Kwag???
Reply With Quote
  #177  
05-31-2003, 06:53 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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...
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.


edited,
big quality now.
Reply With Quote
  #178  
05-31-2003, 07:03 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
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...
sorry jorel, I don't know what's going on ...
Are you talking about the latest optimal script from Kwag???
Yes I am...
__________________
j3llyG0053
Reply With Quote
  #179  
05-31-2003, 12:35 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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
Reply With Quote
  #180  
05-31-2003, 12:57 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
@ friendalunit and Kwag

excuse me this "pause" friends:

now my system is working with a help from DorvalCS.
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


go ahead friends, you're the best, i'm impressed.
thank you.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Dynamic Linear Adaptive Filtering and Scene Change Detection supermule Avisynth Scripting 3 09-15-2006 01:45 AM
Avisynth: Message from linear motion adaptive filtering? holgerschlegel Avisynth Scripting 7 08-27-2003 04:08 AM
Avisynth: Help with Linear Motion Adaptive Filtering pitoman Avisynth Scripting 2 08-05-2003 12:51 PM
Avisynth: Motion adaptive filtering good enough? bicho_visacoso Avisynth Scripting 6 06-15-2003 06:30 AM
Avisynth: AVS 2.5x Script, Motion Adaptive Filtering problems? Bchteam Avisynth Scripting 15 05-31-2003 12:38 PM




 
All times are GMT -5. The time now is 02:08 PM  —  vBulletin © Jelsoft Enterprises Ltd