Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th June 2024, 11:53   #1  |  Link
orion44
None
 
orion44's Avatar
 
Join Date: Jul 2007
Location: The Background
Posts: 310
AviSynth sharpeners for 720p videos?

Which AviSynth sharpener would you recommend for sharpening 720p videos?
orion44 is offline   Reply With Quote
Old 14th June 2024, 18:10   #2  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,860
I'm still partial to LSFMod.
http://avisynth.nl/index.php/LSFmod

When I asked google to find it for me, I discovered there's an updated version I haven't tried yet.
https://github.com/avisynth-repository/LSFmod

And Dogway has a couple of versions in his function collection.
https://github.com/Dogway/Avisynth-S...s/LSFplus.avsi
https://github.com/Dogway/Avisynth-S...s/LSFplus.avsi
hello_hello is offline   Reply With Quote
Old 14th June 2024, 19:28   #3  |  Link
orion44
None
 
orion44's Avatar
 
Join Date: Jul 2007
Location: The Background
Posts: 310
Thanks.

I think I'll use the original LSFmod for now.

Which AviSynth denoiser would you recommend to use in combination with LSFmod for denoising 720p videos?

For DVDs, I always used FFT3DFilter or DFTTest because they produced the most visually pleasing result,
but I'm not sure if they are suited for denoising 720p videos.
orion44 is offline   Reply With Quote
Old 14th June 2024, 23:20   #4  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,860
I've been using TemporalDegrain2 a fair bit lately, although it's pretty slow.

For some sources (it depends on the type of noise) QTGMC in progressive mode can denoise really well and it's much faster than TemporalDegrain2.
QTGMC(InputType=1, Preset="very slow", EzDenoise=2.0) or something like that. I'd recommend trying QTGMC for DVDs sources too. The main downside I find is that it can enhance any existing halos a bit, but it'll generally remove more noise before it starts blurring than most other denoisers, plus it'll stabilize the picture a bit which often helps for standard definition.
If you don't increase the denoising enough to remove all of it, it sometimes pays to use a faster speed preset otherwise QTGMC can stabilize the remaining noise too much and the effect can be a bit like watching video through a fly screen, if that makes sense.

For light noise I find a simple MDegrain function can work quite well for HD.
MDegrainNL.zip

If you happen to be working with 1080p sources that you're downscaling, it's usually better to denoise before you downscale as it tends to blur fine detail less regardless of the denoising method. Obviously it's slower though.

And I almost never encode without adding something like GradFun3() from DitherTools to the end of a script. It only supports 8 bit video but it can help a great deal with preventing banding after denoising. For high bit depth sources (or for 8 bit) Dogway has a similar function. You'd use it like this:

ConvertBits(16)
GradFun3plus()
ConvertBits(10, dither=0) # or convert back to your preferred bitdepth.

Last edited by hello_hello; 15th June 2024 at 15:21.
hello_hello is offline   Reply With Quote
Old 15th June 2024, 08:46   #5  |  Link
orion44
None
 
orion44's Avatar
 
Join Date: Jul 2007
Location: The Background
Posts: 310
Yes, I'm downscaling 1080p Blu-rays to 720p and would like to just slightly sharpen them before encoding.
orion44 is offline   Reply With Quote
Old 15th June 2024, 11:38   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,347
FineSharp is intended to sharpen downscaled (using DPID might also be worth a try) content.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 15th June 2024, 14:49   #7  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,860
Quote:
Originally Posted by orion44 View Post
Yes, I'm downscaling 1080p Blu-rays to 720p and would like to just slightly sharpen them before encoding.
If you try QTGMC you can crank the denoising up higher for 1080p without much motion blurring. I try not to go much beyond EzDenoise=2.0 for SD or 720p, but 1080p seems to require a higher level to remove an equivalent amount of noise. I'm pretty sure EzDenoise uses FFT3DFilter by default, but QTGMC has an option for denoising with DFTTest instead. The NoisePreset argument (as opposed to the Preset argument) also switches between them depending on the NoisePreset used.

For both TemporarDegrain2 and QTGMC you mightn't need additional sharpening as they tend to sharpen a little anyway, but it depends on the source.

Sometimes one denoising method will work better with one source while another method works better with a different source. I usually compare at least a couple of them for each video.

Last edited by hello_hello; 15th June 2024 at 15:24.
hello_hello is offline   Reply With Quote
Old 15th June 2024, 16:20   #8  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,860
As I still happened to have a couple of examples on my hard drive, there's four screenshots in the attached zip file, two originals and their denoised/encoded versions. They weren't downscaled.

The QTGMC example used:

QTGMC(InputType=1, EzDenoise=1.5, Preset="Fast")
GradFun3()

and for the TemporalDeGrain2 example:

TemporalDegrain2(degrainTR=2, grainLevel=2, PostDither=0)
Convertbits(16)
GradFun3plus()
ConvertBits(10,dither=1)

It's more obvious for the TemporalDegrain2 screenshot, but you can see they sharpen a bit.
I picked a couple of frames where there was a bit of motion as if the denoising blurs fine detail, that's where it'll happen first.

Denoising.zip (36.5 MiB)

Last edited by hello_hello; 15th June 2024 at 16:22.
hello_hello is offline   Reply With Quote
Old 19th June 2024, 08:21   #9  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,870
I wrote my own sharpening script with aSobel and CAS plugins

Code:
Function MCAS(clip video,float "Strength") 
{
Strength = Default(Strength,1.0)

LevelLimit=(video.BitsPerComponent==8) ? 255 : 1023
IntensityMask=ConvertToY(video).Levels(0,2,LevelLimit,0,LevelLimit,coring=false)
EdgeMask=aSobel(IntensityMask,chroma=0,thresh=255,SetAffinity=false).invert.Levels(0,2,LevelLimit,0,LevelLimit,coring=false).Blur(1)
SharpMask=Overlay(IntensityMask,EdgeMask,mode="Multiply",opacity=1.0)
SharpenedVideo=CAS(video,1.0)
video=Overlay(video,SharpenedVideo,mask=SharpMask,opacity=Strength)

return video
}
4k downsampled to 720p

OFF


50%


100%
Atak_Snajpera is offline   Reply With Quote
Old 19th June 2024, 13:55   #10  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,622
Looks nice !
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.