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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th July 2022, 12:19   #1341  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,836
Quote:
Originally Posted by Dogway View Post
I don't know, I can go as low as 48 and still shows fine. Check here.
Anyway, it's a prefilter so it doesn't need to be perfect, I guess it depends on source master level, simply use the value that saturates the bit range.
That's odd. The range is 1-2000 I think, and a regular rather bright movie like Green Book was pitch black with 100..

EDIT: Oh, a pointer regarding GradFun3plus, I think the default threshold for PQ sources should be higher. The default value is a bit too low, I'd go maybe for 0.75 or something like that.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...

Last edited by Boulder; 19th July 2022 at 12:25.
Boulder is offline   Reply With Quote
Old 20th July 2022, 08:42   #1342  |  Link
LeXXuz
24 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 747
Quote:
Originally Posted by Boulder View Post
I noticed some strange happenings with neo_f3kdb with HDR encodes a long time ago (https://forum.doom9.org/showthread.p...78#post1912378), but I've never seen any changes in color in SDR or HDR. Is it reproducable by some bare minimum script? To me it looks more like an issue with the colormatrix.
I was still using neo_f3kdb_r6 version. Tried out _r7 and no problems with colour deviations so far.

But if that doesn't work, I'll try out Dogways mod of Gradfun.
LeXXuz is offline   Reply With Quote
Old 24th July 2022, 01:49   #1343  |  Link
guest
Guest
 
Posts: n/a
Quote:
Originally Posted by kedautinh12 View Post
Just use SMDegrain(prefilter=6, gpuid=-1). SMDegrain will choose BM3DCPU is prefilter
Hi ked,

I have a very belated question about this gpuid "switch" in SMDegrain..

It has been bought to my attention that with the changes Dogway did to this function a few builds ago, that if it's left to default, any SMDegrain filter will use the GPU for filtering / pre-filtering.

Would that be the case ???

Do I need to change it to gpuid=-1 for CPU instead, for my scripts ??

Cheers
  Reply With Quote
Old 24th July 2022, 08:27   #1344  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
Quote:
Originally Posted by TDS View Post
Hi ked,

I have a very belated question about this gpuid "switch" in SMDegrain..

It has been bought to my attention that with the changes Dogway did to this function a few builds ago, that if it's left to default, any SMDegrain filter will use the GPU for filtering / pre-filtering.

Would that be the case ???

Do I need to change it to gpuid=-1 for CPU instead, for my scripts ??

Cheers
You need use gpuid=-1 for CPU. If not, Smdegrain will choose GPU is default
kedautinh12 is offline   Reply With Quote
Old 24th July 2022, 11:31   #1345  |  Link
guest
Guest
 
Posts: n/a
Quote:
Originally Posted by kedautinh12 View Post
You need use gpuid=-1 for CPU. If not, Smdegrain will choose GPU is default
Thankyou for that, I will need to change all my script's then

And another question, with KNLMeansCL as a pre-filter, how do you change that to use the CPU, in SMDegrain....it looks like it's written a little differently to BM3D "instruction's".

Cheers
  Reply With Quote
Old 24th July 2022, 11:55   #1346  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
Quote:
Originally Posted by TDS View Post
Thankyou for that, I will need to change all my script's then

And another question, with KNLMeansCL as a pre-filter, how do you change that to use the CPU, in SMDegrain....it looks like it's written a little differently to BM3D "instruction's".

Cheers
Just use SMDegrain(prefilter=5, gpuid=-1)
kedautinh12 is offline   Reply With Quote
Old 24th July 2022, 12:12   #1347  |  Link
guest
Guest
 
Posts: n/a
Quote:
Originally Posted by kedautinh12 View Post
Just use SMDegrain(prefilter=5, gpuid=-1)
  Reply With Quote
Old 27th July 2022, 08:02   #1348  |  Link
madey83
Guest
 
Posts: n/a
Quote:
Originally Posted by LeXXuz View Post
Now I understand what you mean. I use latest DG tools as well. Thanks, I will add this to my script when processing HDR content. But are you sure about white=100? That is almost pitch black.

Anyway, I have to apologize to you. It seems neo_f3kdb() is the root of evil here and not SMDegrain. I totall forgot I usually add this later as the final filter to my scripts.

Was quite happy with its results and speed but I guess it's time to look for another debanding filter.

EDIT:



Well I chose DGDenoise() as it's an animation movie. Would it be beneficial to use BM3d instead?

HI LeXXuz,

i use a lot neo_f3kdb() and you mentioned that this is the root cause for color "changing". Do you know what would be the best alternative for neo_f3kdb?

this is my basic command for this filter:
neo_f3kdb(preset="veryhigh/nograin", dynamic_grain=false, output_depth=10)

Could you share yours for alternative?
  Reply With Quote
Old 27th July 2022, 11:02   #1349  |  Link
LeXXuz
24 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 747
Quote:
Originally Posted by madey83 View Post
HI LeXXuz,

i use a lot neo_f3kdb() and you mentioned that this is the root cause for color "changing". Do you know what would be the best alternative for neo_f3kdb?

this is my basic command for this filter:
neo_f3kdb(preset="veryhigh/nograin", dynamic_grain=false, output_depth=10)

Could you share yours for alternative?
I was still using r6 version of neo_f3kdb().

With version r7 I could not reproduce this problem so far:
https://github.com/HomeOfAviSynthPlu...eleases/tag/r7
LeXXuz is offline   Reply With Quote
Old 29th July 2022, 10:07   #1350  |  Link
LeXXuz
24 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 747
Dogway I noticed some faint distortions in my encodes, barely noticeable.
So I played around with the preview mode a little and saw a lot of erroneous frames of the prefiltered clip. See pics below:



EDIT: I turned off DGDenoise and the errors are gone. Tried with no prefilter (-1) and BM3DCUDA (6) with no errors.

Btw. about "speed, memory and quality" shown on the right with different colours. Are they displayed anywhere? All I see is the gamma curve in the preview.

Last edited by LeXXuz; 29th July 2022 at 10:16.
LeXXuz is offline   Reply With Quote
Old 29th July 2022, 18:55   #1351  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,375
LeXXuz, I cannot reproduce your issue. I used your settings over a 2.40 ratio 1080p source at 16-bit.

What did you change between this and this? Result looks fine but no settings changed?

The legend is when you define show="speed" in string format so you can have some hint where to tweak for optimization.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 29th July 2022, 19:41   #1352  |  Link
LeXXuz
24 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 747
Quote:
Originally Posted by Dogway View Post
What did you change between this and this? Result looks fine but no settings changed?
Weird. I changed nothing, just stepped a frame forward in MeGUIs preview window and took a new screenshot. Some frames look fine, others have these strange colour distortions.

I did a few encodes with DGDenoise() just alone to see if these errors occur, but no. Have latest nVidia Studio drivers installed for RTX 2060. I will check this very same script on another machine with a RTX 3060TI once that's free as it's currently occupied by running a longer encoding job.

EDIT: That is actually not true. It does also happen with DGDenoise() alone.

Last edited by LeXXuz; 13th August 2022 at 14:50.
LeXXuz is offline   Reply With Quote
Old 29th July 2022, 20:55   #1353  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,375
Just upload a small sample and your script so I can test here.

Is the source interlaced? (a possible point of failure)
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 29th July 2022, 22:48   #1354  |  Link
LeXXuz
24 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 747
Quote:
Originally Posted by Dogway View Post
Is the source interlaced? (a possible point of failure)
No it's 1920x800 @23p.
LeXXuz is offline   Reply With Quote
Old 31st July 2022, 11:16   #1355  |  Link
madey83
Guest
 
Posts: n/a
Quote:
Originally Posted by LeXXuz View Post
Dogway I noticed some faint distortions in my encodes, barely noticeable.
So I played around with the preview mode a little and saw a lot of erroneous frames of the prefiltered clip. See pics below:



EDIT: I turned off DGDenoise and the errors are gone. Tried with no prefilter (-1) and BM3DCUDA (6) with no errors.

Btw. about "speed, memory and quality" shown on the right with different colours. Are they displayed anywhere? All I see is the gamma curve in the preview.
hi LeXXuz,

could you please tell me what is the application used by you to show SMDegrain results? Is this application shows in real time results of denoise without encode?
  Reply With Quote
Old 31st July 2022, 14:31   #1356  |  Link
LeXXuz
24 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 747
Quote:
Originally Posted by madey83 View Post
hi LeXXuz,

could you please tell me what is the application used by you to show SMDegrain results? Is this application shows in real time results of denoise without encode?
No. That is just the Avisynth preview window of MeGUI:
https://forum.doom9.org/showthread.php?t=112496
LeXXuz is offline   Reply With Quote
Old 31st July 2022, 14:56   #1357  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,411
Quote:
could you please tell me what is the application used by you to show SMDegrain results? Is this application shows in real time results of denoise without encode?
I'm not sure what you are after, but maybe WaveForm_FilmStrip() will fit the bill.



Here in WaveForm thread:- https://forum.doom9.org/showthread.p...05#post1965005

Here client script with SHOWAUDIO=False [where it dont need Waveform plugin]

Code:
# Import(".\Waveform_FilmStrip.avsi")
#AviSource("D:\G.avi")
Colorbars.Trim(0,-100)

WINDOW    = 3           # Frames Wide = 2 * WINDOW + 1
HEIGHT    = 0.33        # Audio graphs height, 0.333 = 1/3 of result filmstrip image height.
UNDER     = false       # True, then audio graphs stacked under video, else overlay over video.
ZOOM      = 1.0         # Amplify audio signal for viewing (1.0=No Amp).
SUBSIZE   = 0.5         # Suggest 0.0(off) to about 0.5. (0.0 <= SubSize <= 1.0) : 0.0 = No Frame Number,  1.0=biggest size for current clip Height (probably too big).
SHOWAUDIO = False        # Default True. If False, Switches OFF WaveForm Display, Shows FilmStrip Only.
W         = 264         # Default -1, (or 0 or +ve). -1 = Normal Downscale behaviour, filmstrip width ~= input clip width.
#H         = Undefined  # Undefined, Let W govern height of thumbnail images (or just dont use h=H in function call, same as h=Undefined).

###### Can Remove this lot ######
TONE      = False       # Replace Colorbars tone with selected TONETYPE tone
TONETYPE  ="NOISE"      # Pick from:- "Silence", "Sine", "Noise", "Square", "Triangle" or "Sawtooth"
TONECHANS = 5           # Tone Channels Count (test channels display)
#
(TONE)    ? AudioDub(Tone(Length=FrameCount/FrameRate,Type=TONETYPE,Channels=TONECHANS))  : Last
###### End Of Can Remove   ######
WaveForm_FilmStrip(window=WINDOW,Height=HEIGHT,under=UNDER,zoom=ZOOM,subSize=SUBSIZE,ShowAudio=SHOWAUDIO,w=W) #,h=H)
Return Last
EDIT: The Waveform_FilmStrip() script at linked post is the most recent version.

EDIT: If Waveform_FilmStrip.avsi aint in plugins, then need to import it.

EDIT: And here with SHOWAUDIO=TRUE [but animated gif(via VDub2 export) dont have audio, so silent]


EDIT: If required, you could eg Interleave(Clip_A, Clip_B) and use result with WaveForm_FilmStrip, even frames would be Clip_A, odd Clip_B,
or just use eg StackHorizontal(Clip_A,Clip_B) to view side by side.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 31st July 2022 at 15:52.
StainlessS is offline   Reply With Quote
Old 31st July 2022, 21:28   #1358  |  Link
ENunn
Registered User
 
Join Date: Dec 2019
Posts: 100
Using SMDegrain and I'm having issues with random corruption artifacts. It happens randomly and I can't seem to find a fix.


Code:
SMDegrain(prefilter=5, str=0.8, refinemotion=true)
Any fix? Running AVS+ 2.7.2 and using the latest SMDegrain script. This doesn't occur in the source, and I have been using TempDegrain2 in the meantime with no issue, but it's painfully slow.

Last edited by ENunn; 31st July 2022 at 21:46.
ENunn is offline   Reply With Quote
Old 31st July 2022, 22:31   #1359  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,375
AVS+ 3.7.2?
Update a small sample and full script since I'm not getting that issue.
Try with prefilter=-1 to see if it's ex_KNLMeansCL() related. Check dependencies as well.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread

Last edited by Dogway; 31st July 2022 at 22:33.
Dogway is offline   Reply With Quote
Old 1st August 2022, 01:14   #1360  |  Link
ENunn
Registered User
 
Join Date: Dec 2019
Posts: 100
Quote:
Originally Posted by Dogway View Post
AVS+ 3.7.2?
Yeah, typo :P

Quote:
Originally Posted by Dogway View Post
Update a small sample and full script since I'm not getting that issue.
Here's the sample.

Code:
AVISource("G:\virtualdub\tape transfers\sampledegrain.avi", true, pixel_type="YUY2")
assumetff().converttoyuv422(matrix="rec601", interlaced=true).convertbits(10)
tweak(bright=-9, cont=1.04, hue=-10.0, sat=1.12, coring=false, dither=true).convertbits(8)
Trim(58, 554)
qtgmcp()
#ChromaShiftSP(X=-.85, Y=-.25)
ConvertToYv16(matrix="rec601",interlaced=false)
MergeChroma(aWarpSharp2(depth=20,threads=4))MergeChroma(aWarpSharp2(depth=10,threads=4))
santiag(strv=0, nns=4, nsize=5, threads=4)
#converttoyuy2(matrix="rec601", interlaced=false)
SMDegrain(prefilter=-1, str=0.8)
I also tried simply
Code:
AVISource("G:\virtualdub\tape transfers\sampledegrain.avi", true, pixel_type="YUY2")
assumetff().converttoyuv422(matrix="rec601", interlaced=true).convertbits(10)
tweak(bright=-9, cont=1.04, hue=-10.0, sat=1.12, coring=false, dither=true).convertbits(8)
Trim(58, 554)
qtgmcp()
SMDegrain(prefilter=-1, str=0.8)
The issue was still there, although the result is different. Looks like it depends on both the source and what's behind smdegrain. Might not show up for you at all yet it shows up for me.

I did take out the tweak and convertbits lines, looks like the issue doesn't happen there, but I need those lines.

Quote:
Originally Posted by Dogway View Post
Try with prefilter=-1 to see if it's ex_KNLMeansCL() related.
Same result.

Quote:
Originally Posted by Dogway View Post
Check dependencies as well.
Where can I find a list of them?

Last edited by ENunn; 1st August 2022 at 01:25.
ENunn 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 - 2026, vBulletin Solutions Inc.