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 > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th August 2023, 09:05   #2721  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Quote:
Originally Posted by Dogway View Post
If you want to sharpen noisy/grainy content you have to denoise first as you would normally do. Then feed that to ex_ContraSharpening() as denoised and source as source. Then you make a diff from the sharpened and denoised and add that to source, this way you don't sharpen grain/noise but only details.

Code:
source
src=last

SMDegrain()
den=last

ex_ContraSharpening(src) # or LSFplus in contra mode

ex_makeadddiff(last,den,src)
Well this way I get a picture that is almost as noisy as the original but with the grain being static now. I already noticed the missing last argument in the first version of your post and corrected that.

I could post screenshots, but to spare me the hassle with an image provider, I'll just post SAD values from mvtools. Hope you'll take my word for it.

untouched: 26455
denoised: 7720
denoised with internal contrasharp: 8477
denoised with external cs and makediff: 25965

mvtools script:
Code:
super = MSuper(mt=false, pel=2)
forward_vec1 = MAnalyse(super, isb = false, delta = 1, search=3, chroma=true, mt=false)
MShow(super,forward_vec1, showsad=true)
(In case someone wonders about those numbers, they are in 16bitī. You have to divide those by 256 if you want a relation to those numbers you use with SMDegrain.)

Idk, maybe it is intended that way. But the denoised areas should still be clean which they are not and those numbers reflect that obviously.

Last edited by LeXXuz; 30th August 2023 at 22:35.
LeXXuz is offline   Reply With Quote
Old 30th August 2023, 20:57   #2722  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,337
Maybe the principle was ill-founded, try to do an ex_makediff between src and denoised -with LFR- (grain extract) then add that to the sharpened-denoised clip

Code:
ex_makeadddiff(den,src,last)
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 6th September 2023, 08:17   #2723  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
I have that error when you SMDegrain
Code:
SMDegrain(6, 400, prefilter=5, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
kedautinh12 is offline   Reply With Quote
Old 6th September 2023, 20:25   #2724  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,337
Quote:
Originally Posted by kedautinh12 View Post
I have that error when you SMDegrain
Code:
SMDegrain(6, 400, prefilter=5, ContraSharp=true, RefineMotion=true, plane=4, limits=false, DCTFlicker=false)
Thanks! Just fixed. I forgot to update the new Super global variable that I changed in SMDegrain to align to QTGMC+
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 10th September 2023, 15:37   #2725  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Hi Dogway, I tried QTGMCp but can't fix the interlaced video of some scenes, can you help me how to fix that??

Frame 920


Code:
AssumeTFF()
QTGMCp(Preset="Medium", Sharpness=0).SelectEven()
Sample:
https://drive.google.com/file/d/1oat...ew?usp=sharing
kedautinh12 is offline   Reply With Quote
Old 10th September 2023, 17:05   #2726  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,156
resize to 1920x540, then upscale back to 1920x1080
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 10th September 2023, 17:44   #2727  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,337
The moiree effect is present even in the fields so you might need to target the issue locally as postprocessing I think.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 11th September 2023, 02:15   #2728  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Quote:
Originally Posted by Dogway View Post
The moiree effect is present even in the fields so you might need to target the issue locally as postprocessing I think.
Can you have any suggestions script for that??
kedautinh12 is offline   Reply With Quote
Old 11th September 2023, 02:22   #2729  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Quote:
Originally Posted by Selur View Post
resize to 1920x540, then upscale back to 1920x1080
resize after or before Deinterlaced??

I tried and got better results but I still have errors
Code:
propSet("_FieldBased",0)
deep_resize(1920,540,grain=0)
deep_resize(1920,1080,grain=0)
AssumeTFF()
QTGMCp(Preset="Medium", Sharpness=0).SelectEven()

Last edited by kedautinh12; 12th September 2023 at 01:22.
kedautinh12 is offline   Reply With Quote
Old 12th September 2023, 03:38   #2730  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
After updated QTGMC+ to latest ver with moiree option, I tried but still doesn't work
Code:
AssumeTFF()
QTGMCp(Preset="Medium", moiree=true, Sharpness=0).SelectEven()
kedautinh12 is offline   Reply With Quote
Old 12th September 2023, 19:42   #2731  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,156
I did have an additional look the sources:
a. seems like DVD resolution at best, so you could probably downscaling to dvd resolution without loosing detail.
b. Dogway is right, this isn't caused by deinterlacing and won't be fixed by it, this would require some specific local processing like copying parts of a previous frame/field over to the broken ones
=> probably not worth the effort this would require
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 13th September 2023, 03:34   #2732  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Quote:
Originally Posted by Selur View Post
I did have an additional look the sources:
a. seems like DVD resolution at best, so you could probably downscaling to dvd resolution without loosing detail.
b. Dogway is right, this isn't caused by deinterlacing and won't be fixed by it, this would require some specific local processing like copying parts of a previous frame/field over to the broken ones
=> probably not worth the effort this would require
a, i try downscaling to DVD but errors won't gone
kedautinh12 is offline   Reply With Quote
Old 13th September 2023, 04:09   #2733  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Ok, I tried other Deinterlaced scripts and work very well. Some scenes have ALIASING after Deinterlaced. Therefore, I fixed it with ANTI-ALIASING
Code:
AssumeTFF()
AnimeIVTC(mode=1)
daa3mod()

Last edited by kedautinh12; 13th September 2023 at 05:19.
kedautinh12 is offline   Reply With Quote
Old 19th September 2023, 06:15   #2734  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,673
@Dogway: do you have any recommended method for stabilizing luma changes for a more accurate scene change detection with ffmpeg? I tend to get quite a lot of false detections just because the brightness between frames seems to change a bit (Withnail and I from the early 80s, rather LQ Blu-ray). If I raise the detection threshold, it starts missing too many scene changes to be useful. I'm not looking to catch all of them so I have some wiggling room. I've tried downscaling, severe blurring and using ex_luma_rebuild but no real help there.
__________________
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   Reply With Quote
Old 19th September 2023, 17:56   #2735  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,337
If it's some kind of luma flicker try ex_autolevels() (example)

Otherwise yes, you have to temporal blend the frames, except those for scene changes, so a catch-22 situation.

It depends if you want surgeon denoising, or a simple temporal blend, in such case replace the denoise with a TemporalSoften().
With SceneStats you can work on a scene basis, also it inherits SC weight from the source frame type.

Here are some examples:
https://forum.doom9.org/showthread.p...86#post1982586
https://forum.doom9.org/showthread.p...53#post1985953
https://forum.doom9.org/showthread.p...05#post1976405
https://forum.doom9.org/showthread.p...07#post1969107 (I recommend putting SMDegrain/TemporalSoften outside ScriptClip)
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 21st September 2023, 14:59   #2736  |  Link
alexx7777
Registered User
 
Join Date: Mar 2012
Posts: 69
Name:  ошибка.png
Views: 36
Size:  34.4 KBThank you very much for the work done. I'm getting an nmod error. For what reason and how to solve?
alexx7777 is offline   Reply With Quote
Old 21st September 2023, 15:08   #2737  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Quote:
Originally Posted by alexx7777 View Post
Attachment 18482Thank you very much for the work done. I'm getting an nmod error. For what reason and how to solve?
Up image to another sever or you will waiting for mod approval forever
kedautinh12 is offline   Reply With Quote
Old 21st September 2023, 16:56   #2738  |  Link
alexx7777
Registered User
 
Join Date: Mar 2012
Posts: 69
gives an error message

Last edited by alexx7777; 21st September 2023 at 16:59.
alexx7777 is offline   Reply With Quote
Old 21st September 2023, 17:15   #2739  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,043
Quote:
Originally Posted by alexx7777 View Post
Did you update all scripts of Dogway to latest ver??

Last edited by kedautinh12; 21st September 2023 at 17:17.
kedautinh12 is offline   Reply With Quote
Old 21st September 2023, 19:42   #2740  |  Link
alexx7777
Registered User
 
Join Date: Mar 2012
Posts: 69
Quote:
Originally Posted by kedautinh12 View Post
Did you update all scripts of Dogway to latest ver??
Downloaded from here
alexx7777 is offline   Reply With Quote
Reply

Tags
avisynth, dogway, filters, hbd, packs

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 19:31.


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