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 1st September 2021, 18:28   #281  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
I'm yet to try fmtconv's Void & Cluster dithering, it's an ordered dither so maybe it compresses better than error diffusion, in my opinion it also distributes better so less banding.
Anyway my preference for the last years have been to (denoise), add grain and increase bitrate, I like texture in the images.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 2nd September 2021, 03:01   #282  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
I would like to ask a real dumb, noobie question about SMDegrain & pre-filter=4, KNLMeansCL, if I may.

How do you change the "strength" settings for KNLMeansCL ???, is it Line ***, or somewhere else ??

Example :-
Quote:
#After_Prefetch_Denoise
LoadPlugin("%AVISYNTHPLUGINS%\KNLMeansCL\KNLMeansCL.dll")
video=KNLMeansCL(video,d=1, a=2, s=4, h=2, device_type="GPU", device_id=0)
And while I'm at it, does BM3D have optional settings within SMDegrain ??

TIA
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 2nd September 2021, 03:10   #283  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,160
Here for document of KNLMeansCL
http://avisynth.nl/index.php/KNLMeansCL

BM3D don't have optional settings in SMDegrain. If you want change settings suitable for you. Can change here
https://github.com/Dogway/Avisynth-S...2.7d.avsi#L159
Documents of BM3D:
http://avisynth.nl/index.php/BM3DCUDA
kedautinh12 is offline   Reply With Quote
Old 2nd September 2021, 03:29   #284  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 94
Quote:
Originally Posted by Dogway View Post
@Julek: Test now with updated ExTools. Also if you let me know what type of Adaptive Threshold you use I can give it another stab. "Adaptive" is a generic family, some use integral other not. In your case it seemed to also use an edge mask. Here is a list of most kind of thresholds I could find.

Code:
Adaptive Mean
Adaptive Median
Adaptive Gaussian
Otsu Thresholding
Maximum Entropy Thresholding
Mixture Model Thresholding
Binary Clustering
Metric
Moment-Preserving Thresholding
Inner-class Variance
Pun Thresholding 
Niblack Thresholding
Bernsen Thresholding
Abutaleb Thresholding
Sauvola Thresholding
Phansalkar Thresholding
PirahanSiah Adaptive Single thresholding based on PSNR ( www.pirahansiah.com )
Lloyd Thresholding
Ridler-Calvard Thresholding // Iterative Selection Thresholding
Johannsen Entropy Thresholding
Yen, Chang Thresholding
Sahoo, Wilkins, Yeager Thresholding // Renyi's Entropy Thresholding
Triangle Thresholding
Kittler-Illingworth Thresholding // Minimum Error Thresholding
Kapur, Sahoo, Wong Thresholding
Here what I use:
https://docs.opencv.org/4.5.1/d7/d4d...esholding.html
cv.ADAPTIVE_THRESH_MEAN_C and cv.ADAPTIVE_THRESH_GAUSSIAN_C, using OpenCV + VS is already quite fast, so I don't know if via Expr would be faster.
Julek is offline   Reply With Quote
Old 2nd September 2021, 09:26   #285  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by kedautinh12 View Post
Here for document of KNLMeansCL
http://avisynth.nl/index.php/KNLMeansCL

BM3D don't have optional settings in SMDegrain. If you want change settings suitable for you. Can change here
https://github.com/Dogway/Avisynth-S...2.7d.avsi#L159
Documents of BM3D:
http://avisynth.nl/index.php/BM3DCUDA
Thanks again, I thought it might be a "line" in SMDegrain somewhere

Not sure what's happened, but I am now getting x264 errors, and I can't seem to diagnose them :-

y4m [error]: bad sequence header magic
x264 [error]: could not open input file `-'
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 2nd September 2021, 09:56   #286  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,160
Maybe your name of video file contain special characters or characters don't belong to English alphabet. Others your source video (L-SMASH) can't open that video format
kedautinh12 is offline   Reply With Quote
Old 2nd September 2021, 10:25   #287  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by kedautinh12 View Post
Maybe your name of video file contain special characters or characters don't belong to English alphabet. Others your source video (L-SMASH) can't open that video format
Yes, I wonder if it is the "name", thanks for the prompt.

Now that you've mentioned L-Smash....

I was going to post a comment on what ppl thought the best decoder was out of FFMS2 or L-Smash ???

What do you think is the "best" (non GPU based) ?
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 2nd September 2021, 10:56   #288  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,160
Quote:
Originally Posted by Pauly Dunne View Post
Yes, I wonder if it is the "name", thanks for the prompt.

Now that you've mentioned L-Smash....

I was going to post a comment on what ppl thought the best decoder was out of FFMS2 or L-Smash ???

What do you think is the "best" (non GPU based) ?
Don't have best Video Source plugin, choose video source plugin base your video format
kedautinh12 is offline   Reply With Quote
Old 2nd September 2021, 11:08   #289  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,616
Quote:
Originally Posted by Dogway View Post
I'm yet to try fmtconv's Void & Cluster
Thanks, I will try it too.

It would be nice to have 2 parameters in SMDegrain where you can decide the internal engine bitdepth and the output one.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 2nd September 2021, 19:50   #290  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
I have always been reticent of adding too many options if they are not well justified, the reason, humans don't deal well when faced with too many options, they stress out and paralyze (FOBO).

Quote:
FOBO (Fear of Better Options) is a subjective, first-person emotion of indecision, regret and frustration which is associated with being unable to identify a path of action due to an abundance of options.
I think that ConvertBits() is well and nice in its own, visible on the uppermost layer of the script so you can follow the bitdepth conversion flow.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 3rd September 2021, 06:24   #291  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by kedautinh12 View Post
Maybe your name of video file contain special characters or characters don't belong to English alphabet. Others your source video (L-SMASH) can't open that video format
Well, I have tried a lot of different things to diagnose this, but it seems to be on only 4 servers that I use for the Distributed Encoding function of RipBot.

So they are simply connected via a LAN, and don't need the complete program to encode (very clever, actually), and yet other pc's on the LAN don't have the problem,

So I think my only recourse is a fresh setup of Windows.

Update:- It turned out that I needed to update these:-VC_redist.x86.exe & VC_redist.x64.exe

There must be some subtle change in Dog's ExTools & SMDegrain.
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)

Last edited by Pauly Dunne; 3rd September 2021 at 07:57.
Pauly Dunne is offline   Reply With Quote
Old 3rd September 2021, 09:37   #292  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,616
Quote:
Originally Posted by Dogway View Post
I think that ConvertBits() is well and nice in its own, visible on the uppermost layer of the script so you can follow the bitdepth conversion flow.
I have tried Void & Cluster and I can't really see lot of improvements over x264 internal Sierra dithering. Perhaps I need to touch knobs that I don't really know, such as pattern size and so.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 3rd September 2021, 12:34   #293  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
Well, there's another option, to use SmoothGrad() it uses Dither Tools, maybe there's an equivalent in fmtconv but haven't checked. In any case I have plans of porting it to ExTools from VS ports in a new pack called yugefunc.avsi
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 3rd September 2021, 12:46   #294  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
@Pauly Dunne [or anyone else]

Here is abbodi1406 vcredist AIO (All In One) version 52, 1st Aug 2021.
[27MB]:- https://github.com/abbodi1406/vcredist/releases

All runtimes from 2005 to current for x86 and x64 combined, all un-necessary stuff stripped out and much smaller than M$ download of all separately.

Good idea to keep the link, updated fairly frequently [about once per month, when M$ makes updates].
__________________
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; 3rd September 2021 at 12:49.
StainlessS is offline   Reply With Quote
Old 3rd September 2021, 14:56   #295  |  Link
Pauly Dunne
Grumpy Old Man.
 
Pauly Dunne's Avatar
 
Join Date: Jul 2019
Location: Out There....
Posts: 692
Quote:
Originally Posted by StainlessS View Post
@Pauly Dunne [or anyone else]

Here is abbodi1406 vcredist AIO (All In One) version 52, 1st Aug 2021.
[27MB]:- https://github.com/abbodi1406/vcredist/releases

All runtimes from 2005 to current for x86 and x64 combined, all un-necessary stuff stripped out and much smaller than M$ download of all separately.

Good idea to keep the link, updated fairly frequently [about once per month, when M$ makes updates].
Nice, StainlessS, can't remember where I found mine, but it's the latest build 14.30.30423.0.

Also need to mention I think it's wise to install both x86 & x64, as I had a fairly recent build of x64, installed, but rather old x86, but after installing, everything works again
__________________
Not poorly done, just doin' it my way !!!
Live every day like it's your last, because one day, it will be !! (M$B)
Pauly Dunne is offline   Reply With Quote
Old 3rd September 2021, 15:47   #296  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,588
Quote:
Originally Posted by Dogway View Post
Well, there's another option, to use SmoothGrad() it uses Dither Tools, maybe there's an equivalent in fmtconv but haven't checked. In any case I have plans of porting it to ExTools from VS ports in a new pack called yugefunc.avsi
SmoothGrad still missing, along with Dither_box_filter16 and dither_bilateral16 https://forum.doom9.org/showpost.php...postcount=1131
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 3rd September 2021, 19:59   #297  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,364
Dither_box_filter16 is ex_boxblur(mode="mean"), for Dither_bilateral16() we have ex_bilateral() or vsTBilateral(), I still need to port LimitFilter and SmoothGrad.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 4th September 2021, 11:05   #298  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,160
Here for new ver of mvsfunc. If you want port something from vs. Check here:
https://github.com/AmusementClub/mvsfunc
kedautinh12 is offline   Reply With Quote
Old 4th September 2021, 11:13   #299  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,588
Quote:
Originally Posted by Dogway View Post
Dither_box_filter16 is ex_boxblur(mode="mean"), for Dither_bilateral16() we have ex_bilateral() or vsTBilateral(), I still need to port LimitFilter and SmoothGrad.
ex_bilateral give same output as Dither_bilateral16?

LimitFilter = https://github.com/realfinder/AVS-St...ared.avsi#L476
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 4th September 2021, 12:38   #300  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,588
Quote:
Originally Posted by Dogway View Post
Dither_box_filter16 is ex_boxblur(mode="mean")
Code:
#ex_boxblur(5,mode="mean")
Dither_convert_8_to_16().Dither_box_filter16(5).DitherPost()
but I can see that they are not similar
__________________
See My Avisynth Stuff
real.finder 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 01:14.


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