Quantcast Avisynth: Asharping the Optimal AVI v4 Script? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
05-11-2004, 07:19 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Hii guys, I'm a thankful user of the avi scripts made by Dialhot. They
work great.

Last night, I was playing around with asharp. I found that if I replace
the Lanczosresizer with Bicubicresizer in the avi v4 script, and add the line

asharp(1.5,2,0.2, hqbf=true)

right after the resize, I get a sharper image than with lanczos, and with the testclip i made of 800 frames it was 0,3 MB smaller than the v4 script too!

Especially the "hqbf" is great in my eyes, because it doesn't sharpen the edges of block-noise often found in avi sources, so the result is less noisy also.

What do you guys think about this?
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  
05-11-2004, 08:18 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
As a rule of thumb, sharpening is usually used before resizing the video.
Due to the simple fact that a lot of detail is lost after the resizing. So I think it would be better to use the ASharp line right before the BicubicResize line. But, I'll try your ASharp setting both before and after the resizing (not at the same time of course ) and compare the results.
__________________
AudioSlave
Reply With Quote
  #3  
05-11-2004, 08:51 AM
Abond Abond is offline
Free Member
 
Join Date: Mar 2003
Posts: 243
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audioslave
(not at the same time of course )
Why not ?
Reply With Quote
  #4  
05-11-2004, 09:20 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Watch out as asharp(1.5,2,0.2, hqbf=true)

.... does plain the picture very much!
3 already should be the limit ... as this is the threshold of sharpening, means which will be sharpend and blurred. The lower the threshold gets, the more the sharpen moves to the edges and blurs the other parts, therefore Hairs, skins etc.

And as Otimal Script already does spatial/temporalcleaning in the further lines, this value 2 should be usied with caution.
Reply With Quote
  #5  
05-12-2004, 03:32 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Inc, you're right (of course)

I've tested a bit and changed the line to:

asharp(1.7, 3, 0.15, hqbf=true)

Looks better now, with less blurring in the center of the image.

I'm also considering of kicking out TemporalSoften, maybe replace it with a FluxSmooth or another spatio/temporal cleaning filter.

It's gonna be a long night...
Reply With Quote
  #6  
05-12-2004, 01:51 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Do not replace temporalsoften (temporal only) with a spatio-temporal filter.
The spatial dimension is already well managed by undot, and C3D is already a spatio-temporal.

Try temporalcleaner if you want.
Reply With Quote
  #7  
05-13-2004, 01:57 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Allright, changed the asharp to

asharp(1.3, 3.8, 0.18, hqbf=true) and placed it before the resize.

Furthermore I replaced undot + temporalsoften with fluxsmooth(7,7)

This gives better image quality in my eyes. It takes a bit longer to encode though... btw, the file-size is more or less the same as the v4 script in my testclip (have to do more testing to be sure).
Reply With Quote
  #8  
05-13-2004, 01:49 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by gamma
Furthermore I replaced undot + temporalsoften with fluxsmooth(7,7)

This gives better image quality in my eyes. It takes a bit longer to encode though
Yeah, unfortunally fluxsmooth is quite slow.
Be carreful also : have a close look to the "moving paint" problem. That is when too much spatial filtering is done and the color starts to become unatural. It's like if all the colored area were "painting" in movement.
Reply With Quote
  #9  
05-14-2004, 05:02 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Thnx Dialhot, I'll look into it and tweak around with the settings...
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Mmx optimal script? SlowlyGoingInsane Avisynth Scripting 1 03-10-2004 05:11 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: Next changes to optimal script. kwag Avisynth Scripting 21 06-27-2003 12:31 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




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