Quantcast Avisynth: Next Changes to Optimal Script. - digitalFAQ.com Forums [Archives]
  #1  
06-26-2003, 02:41 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
Thanks to Jellygoose for the suggestion on trying out unfilter once again, instead of using asharp's undocumented negative values for blur.

Here's the latest experiment:

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? unfilter( -(fmin(round((nf/0.5)), 100)), -(fmin(round((nf/0.5)), 100)) ) : \
TemporalSoften(2,7,7,3,2) ")


It seems to do a better job than asharp, specially on the scene changes. Give it a try, just to make sure it works ok. It might also have a "positive " impact, with higher accuracy on file prediction.

Thanks for the suggestion Jellygoose

-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
  #2  
06-26-2003, 03:32 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
Ok, will asharp still be the sharpener in the script
or do we use unfilter also instead which way is better

Quote:
undot()
Limiter()
asharp(2, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
Quote:
undot()
Limiter()
unfilter(50,50)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
Reply With Quote
  #3  
06-26-2003, 03:42 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
I would leave the asharp(2, 4) on the top as it is, because it applies for every frame regardless of activity, and is much better that unfilter.

-kwag
Reply With Quote
  #4  
06-27-2003, 05:20 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, I see you already updated the Latest Script. I'm still in testing phase here, so I'll report back later!
__________________
j3llyG0053
Reply With Quote
  #5  
06-27-2003, 07:40 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Could anyone post a sample made with the new script? Curious !
__________________
AudioSlave
Reply With Quote
  #6  
06-27-2003, 07:59 AM
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
audioslave go back to the Experimental Revise Prediction tread Kwag posted one there.

Better yet here http://www.kvcd.net/k19-fast-predict...-cq-63.209.mpg
Reply With Quote
  #7  
06-27-2003, 08:16 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you, ovg64!
__________________
AudioSlave
Reply With Quote
  #8  
06-27-2003, 09:27 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
comparing the new script with unfilter and the old with asharp
after load in vdubmod,i see that the new loose the "dimensional"
sharpness(blurry?)... loose details,seems (is) worse.

please,someone load the scripts in vdub
and save one bitmap for each script in the same scene to compare.

anyone see the same?

ps:
i see "marching ants"(i call it before erroneous as"staircaise")
using 480x480,but this nothing have to asharpen or unfilter,
i see it days ago and think that is the "resize" cause it.

another problem is that many people got high CQ with
544 or more resolution and i with "only" 480x480 don't get more
than CQ56 again using ToK0052 with all advices.
then something is wrong .
Reply With Quote
  #9  
06-27-2003, 09:37 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
A stupid question. Is there any difference between the following lines:

Quote:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? unfilter( -(fmin(round((nf/0.5)), 100)), -(fmin(round((nf/0.5)), 100)) ) : \
TemporalSoften(2,7,7,3,2) ")
and
Quote:
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? \
unfilter( -(fmin(round((nf/0.5)), 100)), -(fmin(round((nf/0.5)), 100)) ) : \
TemporalSoften(2,7,7,3,2) ")
???

The first line is from kwag's "Next changes to optimal script" post and the second is from the latest "Optimal script". I'm no programmer, but does the "\" symbol just tell the function to continue on the next line?
__________________
AudioSlave
Reply With Quote
  #10  
06-27-2003, 09:47 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
Quote:
Originally Posted by audioslave
I'm no programmer, but does the "\" symbol just tell the function to continue on the next line?
The "\" breaks long lines. In simple words, it's a "continue on next line" escape character

-kwag
Reply With Quote
  #11  
06-27-2003, 09:49 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for that info, kwag! I was just worried I had to restart my encode !
__________________
AudioSlave
Reply With Quote
  #12  
06-27-2003, 10:26 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 jorel
comparing the new script with unfilter and the old with asharp
after load in vdubmod,i see that the new loose the "dimensional"
sharpness(blurry?)... loose details,seems (is) worse.

please,someone load the scripts in vdub
and save one bitmap for each script in the same scene to compare.

anyone see the same?

ps:
i see "marching ants"(i call it before erroneous as"staircaise")
using 480x480,but this nothing have to asharpen or unfilter,
i see it days ago and think that is the "resize" cause it.

another problem is that many people got high CQ with
544 or more resolution and i with "only" 480x480 don't get more
than CQ56 again using ToK0052 with all advices.
then something is wrong .
Jorel:

You should still use aSharp as a sharpening filter, and just use Unfitler for softening again. This actually shouldn't decrease the sharpness of the picture...
__________________
j3llyG0053
Reply With Quote
  #13  
06-27-2003, 10:32 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
jell my friend,
did you compare the same source with pictures or samples after encode?
i did and see big differences,believe me
you don't see nothing different


ps:
jell,i'm only trying to got the best and i test everything all day long here!
my post is nothing more to help everybody or to got help for myself.
Reply With Quote
  #14  
06-27-2003, 10:50 AM
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
Jorel if you getting CQ under 60% with 480x480 than there is defenetly something wrong there, lets take a look at your script.
Reply With Quote
  #15  
06-27-2003, 11:13 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
ok Jell,thanks

this is the script and i got the seamless Cq with asharp or unfilter:

MaxTreshold=1.50
nf=0 # Current frame.

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

FieldDeinterlace()
undot()
Limiter()
asharp(2,4)
GripCrop(480,480,overscan=1,source_anamorphic=fals e)
GripSize(resizer="BicubicResize")
STMedianFilter(8,32,0,0)
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))
ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf>2. 5?\
unfilter(-(fmin(round((nf/0.5)),100)),-(fmin(round((nf/0.5)),100))):\
TemporalSoften(2,7,7,3,2)")

GripBorders()
Limiter()

function fmin(float f1,float f2){return(f1<f2)?f1:f2}


anything wrong?

i post some in the prediction thread too cos my CQ is too low!

thanks again Jell!
Reply With Quote
  #16  
06-27-2003, 11:34 AM
Jellygoose Jellygoose is offline
Free Member
 
Join Date: Jun 2002
Location: Germany
Posts: 1,288
Thanks: 0
Thanked 0 Times in 0 Posts
@jorel:

I don't see any errors in that script you posted... How long is the movie?
Full Screen?
How come you don't use any overscanning on the sides at all?
For a resolution of 480x480 I can use at least Letterbox(0,0,20,20)!
That saves a lot of bitrate right there!
Another thing is that FieldDeinterlace() will give you a higher filesize too, but there's nothing you can do about that!
I just saw that your source is 29.97 fps. That makes another huge difference in Filesize.

Some movies are just not compressible at all, and you cannot really figure out why. I'd recommend you try that script on 3 more movies, and If your results are still bad, then
We'll see...

BTW: I compared the script with aSharp softening and Unfilter softening frame by frame in VDub, and the only thing I saw was that flashes on scene changes are gone using Unfilter as a softener. Otherwise the scripts looked almost identical. I did notice that on high action scenes Unfilter blurs a lot more than aSharp. Still pictures looked identical in my eyes though.
__________________
j3llyG0053
Reply With Quote
  #17  
06-27-2003, 11: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
thanks jell!


you wrote:
Otherwise the scripts looked almost identical.
Still pictures looked identical in my eyes though.

not in mine pictures Jell,
can i send 2 pictures by mail
(one with unfilter new script,another with asharp old script)
they are really differents!

and:
How long is the movie?
is Total Time : 01:28:31 fullscreen

and without deinterlace change just a little!

please,pm your mail!
Reply With Quote
  #18  
06-27-2003, 11:56 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
Quote:
Originally Posted by Jellygoose
I did notice that on high action scenes Unfilter blurs a lot more than aSharp. Still pictures looked identical in my eyes though.
Yep, I agree 100%
Still and low moving scenes look very sharp.
With the new values set for unfilter, we should get an average of ~(-60,-60) on heavy action scenes, and that really smoothes the picture. So we get a higher CQ values with the new revised script

-kwag
Reply With Quote
  #19  
06-27-2003, 11:57 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 jorel,

Can you try the script on a movie that is 23.976fps

-kwag
Reply With Quote
  #20  
06-27-2003, 12:05 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 kwag
Hi jorel,

Can you try the script on a movie that is 23.976fps

-kwag
no Kwag,not try yet but i will do it.

can i send to you the pictures from the scripts by mail?
i insist, they have BIG differences
my work was "image quality" for 30 years,
i see big details between the scripts...
i have 5 televisions, tv out on pc (ati) and a new monitor(3 months).
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Optimal Script? Shibblet Avisynth Scripting 29 01-05-2005 04:57 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: New optimal script for AVS 2.52 Dialhot Avisynth Scripting 3 06-14-2003 12:17 PM
Avisynth: Optimal Script for D2S? telemike Avisynth Scripting 3 06-11-2003 08:33 AM
Avisynth: Optimal Script Help Bigswaffo Avisynth Scripting 7 05-29-2003 04:17 PM

Thread Tools



 
All times are GMT -5. The time now is 07:29 AM  —  vBulletin © Jelsoft Enterprises Ltd