06-03-2003, 10:08 AM
|
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 sh0dan
I need a simple script to reproduce this.
Does this happend with or without mergeluma? (When you just blur)?
|
Hi sh0dan,
You can reproduce the effect with the current script, which is this:
Code:
## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\UnFilter.dll")
#
####
## Defined Variables and Constants ##
#
MaxTreshold = 1.58
scd_trigger = 15 # Scene change trigger value.
nf = 0 # Current frame.
lf = 0 # Last frame
val = 0 # Dynamic value applied to filters
#
####
## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
Limiter()
UnFilter(50, 50)
BicubicResize( Your_Resize_Values_Here )
STMedianFilter(8, 32, 0, 0 )
TemporalSoften(2,7,7,3,2) # Experimental!
MergeChroma(blur(1.50))
#
####
## Dynamic Linear Adaptive filtering and Scene Change Detection ##
#
FrameEvaluate("lf = YDifferenceToNext()")
FrameEvaluate("nf = YDifferenceToNext()")
FrameEvaluate("val = (lf / 16) + 0.2")
ScriptClip("((nf - lf) < scd_trigger) ? (val < MaxTreshold) ? \
MergeLuma(blur(val)) : MergeLuma(blur(MaxTreshold)) : \
( (sign(nf-lf)) != -1) && (val < MaxTreshold) ? MergeLuma(blur(val)) : blur(MaxTreshold).blur(MaxTreshold).blur(MaxTreshold).blur(MaxTreshold)")
#
####
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
#AddBorders( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()
#
####
And change the line that reads FrameEvaluate("val = (lf / 16) + 0.2") to read FrameEvaluate("val = (lf / 16) ")
That will make the value for mergeluma to go from ~0 to 1.58
-kwag
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
06-03-2003, 10:12 AM
|
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 DorvalCS
Hi Kwag,
In testing the new script I have noticed that on scenes with very little action the image seems to shift from left to right.... The Scene I'm looking at is from the movie "Meet the Parents" when they are at the dinner table. You can see the glass wine move from left to right... I have just tried this a couple of minutes ago with the last script you posted.
I don't notice this effect in scene with action/movement... Have you notice the same?
|
No, but I would suspect that it would be caused by the STMedian filter 
Try removing that filter and encode that scene. I don't think it's related at all to the current script, which basically changes luma values. The other filters are applied statically and evenly throughout all frames. So I don't think luma variations, specially low variations, would make any shifting of pixels.
-kwag
|
06-03-2003, 10:51 AM
|
Free Member
|
|
Join Date: Mar 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@kwag: "Simple"???
Anyway - it would seem like it is a blur() issue. It's coded by someone who isn't any longer in touch with us, so it might be hard to track down. For now - you seem to do fine with values > 0.2!
__________________
Regards, sh0dan // VoxPod
|
06-03-2003, 11:53 AM
|
Free Member
|
|
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
 that kinda sucks that we have to stick with Blur values >0.2 ...
I still think this blurs the picture a lot, even at 704x480/576...
Well I guess we have to live with it...
__________________
j3llyG0053
|
06-03-2003, 11:55 AM
|
Free Member
|
|
Join Date: Dec 2002
Location: Montreal, Canada
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by kwag
No, but I would suspect that it would be caused by the STMedian filter 
Try removing that filter and encode that scene. I don't think it's related at all to the current script, which basically changes luma values. The other filters are applied statically and evenly throughout all frames. So I don't think luma variations, specially low variations, would make any shifting of pixels.
-kwag
|
That didn't fix the problem
Are you interested in seing a small sample? Follow this link:
http://www.geocities.com/dorvalcs/meettheparents.zip
The file is less than 700k... But it is very noticeable!
I'm cureous to see what you think... As usual!
__________________
DorvalCS
|
06-03-2003, 12:12 PM
|
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 Jellygoose
Well I guess we have to live with it...
|
Don't worry 
We'll find a fix or a workaround in a few "centons"
-kwag
|
06-03-2003, 12:12 PM
|
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 DorvalCS
|
Says link is unavailable
-kwa
|
06-03-2003, 12:21 PM
|
Free Member
|
|
Join Date: Dec 2002
Location: Montreal, Canada
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by kwag
Says link is unavailable
-kwag
|
Sorry...  Try again... I setup this site especially so that I could share files like this... The link is available now.
Thanks for taking the time to look at it!!
__________________
DorvalCS
|
06-03-2003, 12:38 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Get rid of STMedianFilter NOW
It screwes up the luma somehow  That was the problem.
I just found that out, and I just updated the script. Now the luma varies from 0 to MaxTreshold again, for an extra "crispy" movie without "flashes"
Edit: This sucks  The STMFilter definitely causes a shift in color balance at some scenes, but I'm still getting some flashes when I lowered the value to MIN on luma. So I guess we'll have to stick to 0.2 for a while until this is further debugged
-kwag
|
06-03-2003, 12:55 PM
|
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 DorvalCS
Thanks for taking the time to look at it!!
|
I can see it clearly, but it's the whole frame shifting 
Are you positive this doesn't show, even minimal, if you encode without filters
-kwag
|
06-03-2003, 01:45 PM
|
Free Member
|
|
Join Date: Dec 2002
Location: Montreal, Canada
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by kwag
I can see it clearly, but it's the whole frame shifting 
Are you positive this doesn't show, even minimal, if you encode without filters
-kwag
|
Mmmmmm.... I should have done this before  ... I've been encoding all morning with various setting to see how I could get rid of this
After removing ALL the filters... The image is still shifting
Sooooooo.... I put my DVD in my player.... And guess what??? The shifting is part of the source
Oh boy!!! Sorry for the trouble Kwag... Next time I'll know what to look at first
__________________
DorvalCS
|
06-03-2003, 01:47 PM
|
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 DorvalCS
Oh boy!!! Sorry for the trouble Kwag... Next time I'll know what to look at first 
|
No trouble at all. I do that too
-kwag
|
06-03-2003, 03:05 PM
|
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
|
|
Kwag,
i test all the last scripts from 2 days ago at the last.(really new)
i ever see that less filters is better,
is a question of choice of arguments like you did...and you was great
the last script is faster and give more details.
i can't find words to write sometimes and
the opinions of girv are great to me.
i can speak like he posted.
he always see the same as me and he wrote with big details.
go ahead friends, is really better.
thanks.
|
06-03-2003, 03:59 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Would some kind soul care to test this please
I hope I'm finally hitting the nail correctly, and hope that we can all have a stable script that we can start to depend on, without changing every hour
Hopefully, this one won't "blink"  This one also blurs the frames adjacent to a scene change. That is, the frame before the scene change, AND the frame after the scene change. Not visibly detectable, but softer to the encoder and final file size.
Encode a small clip, and then load it up in Vdub. Move slowly through your clip, and notice the scene changes. See if you can see the small blur between scene changes and if there are any frames with any color bleed or flashes. THERE SHOULDN'T. I'm trying to reproduce the problems, but right now I can't. It seems that it's working. I added the STM filter again, because apparently it was some interaction with STM and the way scene detection was working. I really can't pin point what was happening. But the way the script is now, it seems that the anomalies don't show anymore
I won't update the current script until I see some reports about this script that it works flawlessly
Code:
## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\UnFilter.dll")
#
####
## Defined Variables and Constants ##
#
MaxTreshold = 1.58
scd_trigger = 15 # Scene change trigger value.
nf = 0 # Current frame.
lf = 0 # Last frame
val = 0 # Dynamic value applied to filters
#
####
## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
Limiter()
UnFilter(50, 50)
BicubicResize( Your_Resize_Values_Here )
STMedianFilter(8, 32, 0, 0 )
TemporalSoften(2,7,7,3,2) # Experimental!
MergeChroma(blur(1.50))
#
####
## Dynamic Linear Adaptive filtering and Scene Change Detection ##
#
FrameEvaluate("lf = YDifferenceToNext()")
FrameEvaluate("nf = YDifferenceToNext()")
FrameEvaluate("val = (lf / 16) + 0.05")
ScriptClip("(abs(nf - lf) < scd_trigger) ? (val < MaxTreshold) ? \
mergeluma(blur(val)) : mergeluma(blur(MaxTreshold)) : \
( (sign(nf-lf)) != -1) && (val < MaxTreshold) ? mergeluma(blur(val)) : mergeluma(blur(MaxTreshold)).mergeluma(blur(MaxTreshold))")
#
####
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
#AddBorders( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()
#
####
|
06-03-2003, 04:29 PM
|
Free Member
|
|
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Well man i think is kicking now i just did the same clip that i been doing now 4 2 friking days and the the change between Blur and sharp scenes it much much better so i think we cooking now we almost if not done.
PS: i just love this crop
|
06-03-2003, 04:38 PM
|
Free Member
|
|
Join Date: Mar 2003
Location: Netherlands
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@ Girv
I don't know if you have already fixed your problem. But i got also a green bar at the bottom when i forgot to change the resize and addborders values when i started a new project. When i used the correct values (from moviestacker) the bar was gone.
@ Kwag
I used the script for avs 2.52 yesterday and everything was ok. But today I wanted to do some tests and the script doesn't work corect anymore. The color is messed up, so know i have blue people. Quite funny but it's not what I want. Do you have any idea what this can be? I am using your optimal script.
Thanks
|
06-03-2003, 04:43 PM
|
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 boeddha
Quite funny but it's not what I want. Do you have any idea what this can be? I am using your optimal script.
Thanks
|
I don't have any idea (yet!), but I'm not stopping until I find out and get this right, no matter how many times I have to twist this script 
It's either a mathematical problem ( floating point error or something deep in the blur code ) of some other logical software control flow error.
-kwag
|
06-03-2003, 04:46 PM
|
Free Member
|
|
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@ovg64 and all,
Make sure this line reads: FrameEvaluate("val = (lf / 16) + 0.05")
I forgot the "+" sign on the script above. I edited the script.
-kwag
|
06-03-2003, 05:15 PM
|
Free Member
|
|
Join Date: Jan 2003
Location: Puerto Rico
Posts: 423
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yeah its Kool now, using the old adaptine script there was a part where actually the face was sharp and the mouth was a blur  , no more of that.
|
All times are GMT -5. The time now is 11:14 AM — vBulletin © Jelsoft Enterprises Ltd
|