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 > Capturing and Editing Video > VapourSynth

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 8th April 2020, 11:19   #541  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
Quote:
Originally Posted by Sharc View Post
Difficult to advise when we don't know your source.....


Mostly old reels with lot of grain, the type of movies that drive you crazy to denoise.
__________________
@turment on Telegram
tormento is offline  
Old 8th April 2020, 11:23   #542  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by tormento View Post
Mostly old reels with lot of grain, the type of movies that drive you crazy to denoise.
KNLMeansCL? dfttest? MDegrain? TemporalDegrain2(degrainTR=8)? Any of these possibly followed by a pure temporal denoiser ... Have you tried all these?
Much depends on the particular noise/grain of the source. There is no one fits all filter.

Last edited by Sharc; 8th April 2020 at 12:34.
Sharc is offline  
Old 8th April 2020, 12:39   #543  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
KNLMeansCL could be one to test. Maybe add some motion compensation with MVTools.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline  
Old 8th April 2020, 12:43   #544  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
HAvsFunc

Quote:
Originally Posted by Boulder View Post
KNLMeansCL could be one to test. Maybe add some motion compensation with MVTools.


I.e. SMDegrain that I correctly use.

On some reels I have to use tr>3 and it’s where VS stops being of any use.
__________________
@turment on Telegram
tormento is offline  
Old 8th April 2020, 12:47   #545  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
Quote:
Originally Posted by Boulder View Post
I'd say that any details will be long gone with radius 3 at strong settings anyway so you could do with something faster.
The higher tr is, the better the results, mostly on fast speed scenes. Strong settings is all another matter. On really old BW movies I have to use tr=9 with lot less detail loss than tr=3.
__________________
@turment on Telegram
tormento is offline  
Old 8th April 2020, 12:54   #546  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by tormento View Post
I.e. SMDegrain that I correctly use.

On some reels I have to use tr>3 and it’s where VS stops being of any use.
Try Avisynth TemporalDegrain2(degrainTR=xx). xx=16 for example. It's slow though.
Sharc is offline  
Old 8th April 2020, 12:55   #547  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
Quote:
Originally Posted by tormento View Post
I.e. SMDegrain that I correctly use.

On some reels I have to use tr>3 and it’s where VS stops being of any use.
SMDegrain uses MDegrain to denoise as far as I know, a very different method compared to KNLMeans.

It would be interesting to have sample clips of before and after filtering of one severe case where a high temporal radius is needed. I personally never go above 1 when denoising, but then again, I prefer keeping things as close to the original as it's possible.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline  
Old 8th April 2020, 12:57   #548  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
Quote:
Originally Posted by Boulder View Post
SMDegrain uses MDegrain to denoise as far as I know, a very different method compared to KNLMeans.
KNLMeans is applied as prefilter.

Again: higher tr means more precise results as motion vectors.

High thSAD is where details start be lost.
__________________
@turment on Telegram
tormento is offline  
Old 8th April 2020, 12:58   #549  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Maybe tormento's original has very low details?
For VHS tapes a higher TR can be beneficial.
Sharc is offline  
Old 8th April 2020, 13:00   #550  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
Quote:
Originally Posted by Sharc View Post
Maybe tormento's original has very low details?
For VHS tapes a higher TR can be beneficial.
Old BW movies have way lot more details than anything produced now.

On very high quality scans, i.e. 4k or more, you can easily see the single silver particle grain.

Anyway we are going OT. All i need is a VS MVTools with support for tr>3
__________________
@turment on Telegram
tormento is offline  
Old 8th April 2020, 13:14   #551  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
Quote:
Originally Posted by tormento View Post
KNLMeans is applied as prefilter.
Only affects the detection of motion, indirectly to the results.
Quote:
Again: higher tr means more precise results as motion vectors.
Now there is a dilemma we all often have to deal with. How do you know the motion vector predicted to for example 10 frames in the future is any good? Often the detection is difficult already for 2-3 frames from the current frame.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline  
Old 8th April 2020, 13:16   #552  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
Quote:
Originally Posted by Boulder View Post
Now there is a dilemma we all often have to deal with. How do you know the motion vector predicted to for example 10 frames in the future is any good? Often the detection is difficult already for 2-3 frames from the current frame.
Unless scene change (and it is the main limit of MVTools), object mostly tend to move in a way that the more frames you sample, the best interpolation you can get. I don't know exactly the MV algorithm but at least on math, to have good interpolation and extrapolation, you need data, the more, the better.
__________________
@turment on Telegram
tormento is offline  
Old 8th April 2020, 13:32   #553  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Also every mvtools based deboiser can't really denoise single frames with sudden changes like flashes, explosions etc (typically found in action animes) becouse it does not have any reference frames to work with.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 8th April 2020 at 13:40.
ChaosKing is offline  
Old 8th April 2020, 13:38   #554  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,564
Quote:
Originally Posted by ChaosKing View Post
Also every mvtools based demoiser can't really denoise single frames with sudden changes like flashes, explosions etc (typically found in action animes) becouse it does not have any reference frames to work with.


Nothing last one frame only, unless it is flash from a photo. The more frames you can sample, the better results. With very grainy noise, it’s absolutely impossible to denoise a fast moving object with tr=3. You could have to rise until 9 on some material. I did many many times. I have a collection of almost 3 thousand DVD and BD, plus digital transfers of reels. I am not rich, I simply collect things people want to throw. I know what I am talking about.
__________________
@turment on Telegram
tormento is offline  
Old 12th April 2020, 18:06   #555  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
By the way, changing SMDegrain to support tr 1-6 should not be very hard. If you take a look at MCTemporalDenoise inside havsfunc, you can see how it is done there. I didn't check the function thoroughly, but there are a few things that need to be done, basically copying the functionality which is already done for deltas 1-3 and then do the degraining with weighted merging.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline  
Old 12th April 2020, 18:17   #556  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Quote:
Originally Posted by Boulder View Post
By the way, changing SMDegrain to support tr 1-6 should not be very hard. If you take a look at MCTemporalDenoise inside havsfunc, you can see how it is done there. I didn't check the function thoroughly, but there are a few things that need to be done, basically copying the functionality which is already done for deltas 1-3 and then do the degraining with weighted merging.
the result is different from native MDegrain(tr=6), the mdegrain algorithm is here, do the math.
feisty2 is offline  
Old 12th April 2020, 18:46   #557  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
Quote:
Originally Posted by feisty2 View Post
the result is different from native MDegrain(tr=6), the mdegrain algorithm is here, do the math.
Too bad I suck at maths. What is the actual real-world difference? Just a different output but impossible to tell which one looks better or something that can be pointed out as a real flaw in the workaround?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline  
Old 12th April 2020, 18:51   #558  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Quote:
Originally Posted by Boulder View Post
Too bad I suck at maths. What is the actual real-world difference? Just a different output but impossible to tell which one looks better or something that can be pointed out as a real flaw in the workaround?
the difference is pretty notable, the home-assembled version in MCTD is usually notably blurrier. there's no better or worse, just two completely different algorithms
feisty2 is offline  
Old 12th April 2020, 18:57   #559  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
I don't think tormento would mind blurring And the limit parameter could be used to control it quite well as the default seems to be 255..
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline  
Old 12th April 2020, 19:04   #560  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
this is insane, just grab dubhater's code and do some copy-paste and you got a legit MDegrain6 in less than 5 minutes, why bother with all that homegrown mess.
feisty2 is offline  
Closed Thread

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 22:05.


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