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 21st September 2023, 20:58   #2741  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,338
@akexx777 That's an error on line 215, basically a nmod() call in the Defaults definitions. It works for me so ensure everything is updated and no other older ResizersPack is present.
You can also try with this call nmod(8/2,2,4) which is what is failing on line 215
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 22nd September 2023, 19:37   #2742  |  Link
alexx7777
Registered User
 
Join Date: Mar 2012
Posts: 69
Quote:
Originally Posted by Dogway View Post
@akexx777 That's an error on line 215, basically a nmod() call in the Defaults definitions. It works for me so ensure everything is updated and no other older ResizersPack is present.
You can also try with this call nmod(8/2,2,4) which is what is failing on line 215
Thank you very much, everything worked!
alexx7777 is offline   Reply With Quote
Old 26th September 2023, 15:47   #2743  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,439
What about using avs_libplacebo in some of your scripts? It's some weeks that I am playing with it and it's really fast and powerful.

The mitchell downsizing filter is something astonishing to get native anime resolution.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 27th September 2023, 22:02   #2744  |  Link
DTL
Registered User
 
Join Date: Jul 2018
Posts: 1,000
Quote:
Originally Posted by LeXXuz View Post

I'm still struggling with a bluring effect with SMDegrain in moving areas which really disturbs the overall look of the picture.
To elaborate: I've uploaded four samples of a short scene. Original, 2x denoised with SMDegrain (thSAD 400 and 200)
New tests with 2 stages (non-linear median-like and linear low pass with Gauss kernel) MVs filtering in new MDegrainN release of 26.09.2023 - https://forum.doom9.org/showthread.p...38#post1992038

Still first generation of MVs (no refining) and no prefiltering. mvtools2 script only.

Last edited by DTL; 27th September 2023 at 22:06.
DTL is offline   Reply With Quote
Old 28th September 2023, 16:51   #2745  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Looks clearly better, especially the skin tones and areas.
LeXXuz is offline   Reply With Quote
Old 28th September 2023, 17:40   #2746  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,439
I am swearing with the ending of an anime.

The first part of the ending is a resized 1080i 59.94, the second part is a true (I think) 1080i 59.94.

I want to convert them to 23.976 as the rest of the anime. For the second part, I tried to deinterlace and apply IVTC via DGTools but it becomes a mess, as its not a true telecined video.

For the first part I have no ideas too.

__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 28th September 2023, 19:44   #2747  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,160
you could try TFM+sRestore
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 28th September 2023, 22:43   #2748  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,439
Quote:
Originally Posted by Selur View Post
you could try TFM+sRestore
Is proper to deinterlace without downscaling?

Talking about the first video.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th September 2023, 03:10   #2749  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,079
I tried this script with the second part and it's a good result but you need to add some dehalo/dering and derainbow to get a better result

Code:
QTGMCp(Preset="Very Slow", Sharpness=0).SelectEven()
prefetch(2)
https://drive.google.com/file/d/1f2d...usp=drive_link
kedautinh12 is offline   Reply With Quote
Old 29th September 2023, 10:25   #2750  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,439
Quote:
Originally Posted by kedautinh12 View Post
I tried this script with the second part
Thanks but the problem isn't deinterlacing but get a decent 23.976
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th September 2023, 15:08   #2751  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,977
Weird. For the first part try something like
Code:
converttoYV12(interlaced=true)
BWDIF(field=3).selecteven()
RestoreFPS(23.976,1.0)
Edit: still messy,sorry

Last edited by Sharc; 29th September 2023 at 16:11.
Sharc is offline   Reply With Quote
Old 8th October 2023, 08:40   #2752  |  Link
anton_foy
Registered User
 
Join Date: Dec 2005
Location: Sweden
Posts: 688
Quote:
Originally Posted by Dogway View Post
Is there a special scene or frame you have issues with? I tested with the Carrie call (I use tr 1 and 2 and thSAD=400 for the 2nd call) and found it good enough.
Also keep in mind this is a BW film so plane=0 and chroma=false.

The film shows "fizz" grain. It's in between the Carrie example and something stronger like 300. I found that a blksize of 32 is good to avoid catching these kind of big grains, along refinemotion this is a good approach. Filters like SPresso or STTWM are not suited here because they only filter minimal change noise, these are more for DVDs or faint grain.
My general approach with strong grain is a rather strong prefilter (with LFR), and a rather not so strong filter without LFR.

Personally for my encodes I don't like the clean look because they either look psychovisually blurry or sometimes it shows the "screen" effect, like grain stuck over a glass, so I apply some artificial grain after denoising.
@Dogway, how to achieve the "screen" effect you mention here? You mean like applying temporal denoising on a spatial denoised difference kind of? I would like to try this technique just for an experiment.
anton_foy is offline   Reply With Quote
Old 8th October 2023, 23:59   #2753  |  Link
Lan4
Registered User
 
Join Date: Dec 2022
Posts: 62
Hello. Question about FineSharpPlus.

I use values:
FineSharpPlus(mode=1, sstr=1, cstr=0.1, xstr=0, lstr=1, pstr=4, ldmp=0, hdmp=0)

If you increase "pstr" more than 4, the difference in the result will be almost invisible. If "lstr" is set to 2 (or above), then the difference at pstr=4 or higher becomes more noticeable. This is right?

Last edited by Lan4; 9th October 2023 at 10:40.
Lan4 is offline   Reply With Quote
Old 9th October 2023, 15:42   #2754  |  Link
Lan4
Registered User
 
Join Date: Dec 2022
Posts: 62
Question about using the kernel in DetailSharpen and FineSharpPlus. I'm watching the preview in AvsPmod.

Using gaussian kernel in DetailSharpen(mode=0). Look at the furrows in the image that are most noticeable on the face.


Using box kernel in DetailSharpen(mode=1). Now the furrows have disappeared.


Using gaussian kernel in FineSharpPlus(mode=1)


And using box kernel in FineSharpPlus(mode=-1).


There is no difference. Furrows are present in both last examples, as if the kernel is not switching. Am I right or wrong?

The question is more of a scientific one, since furrows are not visible after encoding, or almost invisible.

Last edited by Lan4; 9th October 2023 at 15:44.
Lan4 is offline   Reply With Quote
Old 14th October 2023, 02:47   #2755  |  Link
fabioseixal
Registered User
 
Join Date: May 2008
Posts: 21
@Dogway, I've been experimenting ex_Vibrance(), to be more precise the Recovery mode to get back the proper saturation after rainbow removal.
The issue is that ex_Vibrance is working okish, i.e., it does recover contrast in areas that where lost, but the problem is that it is also getting back the rainbows in some places.
There also frames where the issue is even worse than before (see below)

Any idea why? I mean, any idea if this can be avoided?
This idea of getting back the contrast after removing the rainbows is a neat idea and it would be awesome to be able to make use of it.


Here is an example.

Source: (Rainbow is visible in the centre near the hole, near the vertical lines etc)



Source + Scomb: Rainbows are gone



Source + Scomb + ex_Vibrance: Rainbow is back and vertical lines are now surrounded by a Yellowish "aura", i.e., rainbow effect is accentuated



Script used:

Quote:
DGSource("ep1.dgi")

vibrance=last
scomb()
ex_vibrance(1.0, mode="Recover", Rc=vibrance)
PS: Yes, the video is interlaced, that's where scomb really shines. Probably that's the issue... oh well
PS2: I made the same test but with progressive video and the issue remains exactly the same

Last edited by fabioseixal; 14th October 2023 at 03:06.
fabioseixal is offline   Reply With Quote
Old 26th October 2023, 00:54   #2756  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,338
Sorry for the delay, I'm quite busy now with APP development.

@fabioseixal: I think in this case it's better to increase saturation or vibrance. If your filtering is local then the difference of saturation in "recovery" mode is also going to be local. "Recover" works better with mostly global desaturation like denoisers and such.

For DeRainbow I used to use:
Code:
edgy=FlatMask(2.0).ex_expand()
ex_merge(last,FFT3DFilter( sigma=2, sigma2=8, sigma3=12, sigma4=4, bt=3, plane=3, ncpu=4),edgy.ex_expand(),Y=2,UV=3,luma=true)
but FFT3DFilter is slow so you can try other denoisers.
I also had this expanded version which kills rainbowing further and preserves saturation a bit better.

Code:
o = last
derain = o.ex_median("median",Y=2,UV=3)
Hmed   = ex_luts(o,o,mode="median",pixels="-2 0 -1 0 0 0 1 0 2 0",UV=2)
Hedge  = ex_lutxy(Hmed,o,"x y - abs 8 *",UV=128)
ex_merge(o,derain,Hedge.ex_expand(2),luma=true,Y=2,UV=3)

edgy=FlatMask(2.0).ex_expand()
ex_merge(o,FFT3DFilter( sigma=2, sigma2=8, sigma3=12, sigma4=4, bt=3, plane=3, ncpu=4),edgy.ex_expand().ex_vibrance(1),Y=2,UV=3,luma=true)

Quote:
Originally Posted by Lan4 View Post
Question about using the kernel in DetailSharpen and FineSharpPlus. I'm watching the preview in AvsPmod.

Using gaussian kernel in DetailSharpen(mode=0). Look at the furrows in the image that are most noticeable on the face.

There is no difference. Furrows are present in both last examples, as if the kernel is not switching. Am I right or wrong?

The question is more of a scientific one, since furrows are not visible after encoding, or almost invisible.
I'm not sure to understand "furrows" in this case, but the implementation in both sharpeners are different, to compare them equally you'd need DetailSharpen() with med=true. As for FineSharpPlus' I might revise the non-linear values as I get a gray clip out of shrpD var. Actually I fixed an issue on _cstr var as spline() was going out of bounds.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread

Last edited by Dogway; 26th October 2023 at 01:25.
Dogway is offline   Reply With Quote
Old 27th October 2023, 01:56   #2757  |  Link
Lan4
Registered User
 
Join Date: Dec 2022
Posts: 62
In Finesharp, increasing the LSTR and PSTR parameters softens the sharpness. In FinesharpPlus, on the contrary, it increases sharpness. I'm right? Showing a preview from AvsPmod:

https://imgsli.com/MjE2NDkx
Lan4 is offline   Reply With Quote
Old 27th October 2023, 02:20   #2758  |  Link
Lan4
Registered User
 
Join Date: Dec 2022
Posts: 62
This is how I understand how Finesharp works. LSTR softens flat areas and textures. PSTR softens edges without affecting flat areas or textures. Screenshots after encoding:

sstr=5, lstr=1, pstr=1 (all other values are at minimum, 0 or 0.1)



sstr=5, lstr=5, pstr=1



sstr=5, lstr=1, pstr=5



But I don't understand how FinesharpPlus works. I have to guess with the values to get the result I want.
Lan4 is offline   Reply With Quote
Old 27th October 2023, 19:22   #2759  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,338
@Lan4: Sorry for the delay, FineSharp non-linear sharpening is an old implementation, whereas FineSharpPlus one is based on LSFplus in Smode=5, if any you might want to compare to that. This is not to say everything's right on FineSharpPlus, the contrary, I need to give it a review to see why I'm getting a flat grey shrpD clip, as well as confirm your suspicions. When I get some time I will let you know. Maybe I open an issue ticket on the repo so I don't forget.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 7th November 2023, 21:05   #2760  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,285
ex_vibrance does not seem to work for 10bit or 12bit 420/422/444 input. 8bit, 14bit, 16bit ok

Do you prefer issues reported here or github issues tracker ?
poisondeathray 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 20:46.


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