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 29th August 2022, 19:28   #1  |  Link
DonCanjas
Registered User
 
DonCanjas's Avatar
 
Join Date: Jul 2022
Posts: 5
Dehalo_Beta_Package: a fork of Dehalo_alpha and FineDehalo

https://github.com/DonCanjas/Avisynt...o_Beta_Package

Dehalo_Beta_Package consists of Dehalo_Beta, a fork of Dehalo_alpha; and FineBeta, a fork of FineDehalo.

It currenlty supports YUV[A] & Y 8-32 bit.



Dehalo_Beta

Instead of built-in scalers, Dehalo_Beta uses avsresize and has the option to use libplacebo_resample with useplacebo=True.

Code:
DGSource("haloed_clip.dgi")
ConvertBits(16)

src = last

DA = src.DeHalo_Alpha(darkstr=0)

DB = src.DeHalo_Beta()




FineBeta

FineBeta is basically the same as FineDehalo, but uses Dehalo_Beta and by default it uses Kirsch to create an edgemask.
On top of that, you can choose between 3 different masktypes: kirsch, old, TEdge. Old uses FineDehalo's default mask, TEdge will use TEdgemask and kirsch uses ex_edge's kirsch.

You can also parse your own edgemask to FineBeta and, as in FineDehalo, input your own halo mask.

Code:
DGSource("haloed_clip.dgi")
ConvertBits(16)

src = last

FDH = src.FineDehalo(darkstr=0)

FB = src.FineBeta()



I'm planning on adding chroma dehaloing support for FineBeta. I'm thinking on using SSIM_downsample() to downscale luma's mask to chroma size and process every plane individually.
__________________
Check out my repo for stupid and/or possibly useful avs scripts: https://github.com/DonCanjas/Avisynth-Functions
DonCanjas is offline   Reply With Quote
Old 10th September 2022, 05:35   #2  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,590
so DeHalo_Beta should give same output as DeHalo_alpha_2BD?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 10th September 2022, 23:18   #3  |  Link
DonCanjas
Registered User
 
DonCanjas's Avatar
 
Join Date: Jul 2022
Posts: 5
Quote:
Originally Posted by real.finder View Post
so DeHalo_Beta should give same output as DeHalo_alpha_2BD?
I forked it from Dehalo_alpha_mt2. It should have a similar output, tho you can see that it's not 1:1 when working with 16 bit video
__________________
Check out my repo for stupid and/or possibly useful avs scripts: https://github.com/DonCanjas/Avisynth-Functions
DonCanjas is offline   Reply With Quote
Old 12th September 2022, 07:30   #4  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 242
Here lies a problem.

Every time someone comes up with a plugin/script/whatever and post images showing suppose differences, I can't see where the differences are.

Any chance you could insert and arrow or something onto the images to show what the differences are?
coolgit is offline   Reply With Quote
Old 13th September 2022, 01:46   #5  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,008
CoolGit,

Maybe something like this [flip from even to odd frames]

Code:
DGSource("haloed_clip.dgi")
ConvertBits(16)

src = last

DA = src.DeHalo_Alpha(darkstr=0)

DB = src.DeHalo_Beta()

Interleave(DA,DB)  # Even DA, Odd DB
Or similar for any other test script

EDIT: OR eg,
Code:
DGSource("haloed_clip.dgi")
ConvertBits(16)

src = last

DA = src.DeHalo_Alpha(darkstr=0)

DB = src.DeHalo_Beta()

Interleave(src.Subtitle("Src"), DA.Subtitle("DA"), DB.Subtitle("DB"))
Untested.
EDIT: or with Src adjacent to both DA and DB [group of 4]
Code:
Interleave(src.Subtitle("Src1"), DA.Subtitle("DA"), DB.Subtitle("DB"), src.Subtitle("Src2"))
Or,
Code:
StackVertical(StackHorizontal(src.Subtitle("Src"),DA.Subtitle("DA")),StackHorizontal(src.Subtitle("Src"),DB.Subtitle("DB")))
Or,
Code:
StackVertical(StackHorizontal(src.Subtitle("Src"),DA.Subtitle("DA")),StackHorizontal(Subtract(DA,DB).Subtitle("DA-DB"),DB.Subtitle("DB")))
Again Untested.
__________________
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; 13th September 2022 at 02:01.
StainlessS is offline   Reply With Quote
Old 19th September 2022, 13:01   #6  |  Link
coolgit
Registered User
 
Join Date: Apr 2019
Posts: 242
How do I do that? I don't see haloed_clip.dgi uploaded anywhere.
coolgit is offline   Reply With Quote
Old 19th September 2022, 15:36   #7  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,008
I was just using example script in opening post,

DA, and DB, could be any 2 alternative results of any script.
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 23rd September 2022, 08:54   #8  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 206
Both give me this error:
There is no function named "m4_sh". Line 31 & 33
takla is offline   Reply With Quote
Old 23rd September 2022, 09:21   #9  |  Link
DonCanjas
Registered User
 
DonCanjas's Avatar
 
Join Date: Jul 2022
Posts: 5
Quote:
Originally Posted by takla View Post
Both give me this error:
There is no function named "m4_sh". Line 31 & 33
I forgot to list Zs_RF_Shared.avsi as required. Should work if you download it:
https://github.com/realfinder/AVS-St...RF_Shared.avsi
__________________
Check out my repo for stupid and/or possibly useful avs scripts: https://github.com/DonCanjas/Avisynth-Functions
DonCanjas is offline   Reply With Quote
Old 15th October 2024, 18:17   #10  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,796
Quote:
Originally Posted by DonCanjas View Post
Dehalo_Beta_Package consists of Dehalo_Beta, a fork of Dehalo_alpha; and FineBeta, a fork of FineDehalo.
Would be possible to have a updated version to work with AVS+ without the need of stacking?

Plus I can't find Retinex_MSRCP anywhere.

Thank you!
__________________
@turment on Telegram

Last edited by tormento; 15th October 2024 at 18:35.
tormento is offline   Reply With Quote
Old 15th October 2024, 20:48   #11  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,464
Quote:
Originally Posted by tormento View Post
Would be possible to have a updated version to work with AVS+ without the need of stacking?
Did you try this version ?
https://github.com/realfinder/AVS-St...alpha_mt2.avsi

Quote:
# DeHalo_alpha with high bit support, need masktools 2.2.20 or up in avs26 and last avs+
# 2022.08.31

Quote:
Plus I can't find Retinex_MSRCP anywhere.

https://github.com/Asd-g/AviSynth-Retinex

Code:
MSRCP (clip clip, float[] "sigma", float "lower_thr", float "upper_thr", bool "fulls", bool "fulld", float "chroma_protect")
poisondeathray is offline   Reply With Quote
Old 15th October 2024, 21:03   #12  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,796
Quote:
Originally Posted by poisondeathray View Post
Did you try this version?
Actually, it's one of the various dehalo that I tried.

FineBeta is way more effective and less prone to destroy details.
Quote:
Originally Posted by poisondeathray View Post
Retinex
I had to rename RETINEX_MSRCP to MSRCP in the script to make it work.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 15th October 2024, 21:48   #13  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,464
Quote:
Originally Posted by tormento View Post
I had to rename RETINEX_MSRCP to MSRCP in the script to make it work.
You should let the author know so he can update on github
poisondeathray is offline   Reply With Quote
Old 15th October 2024, 21:57   #14  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,796
Quote:
Originally Posted by poisondeathray View Post
You should let the author know so he can update on github
Did it.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 16th October 2024, 11:49   #15  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,796
Whenever I flag useplacebo=true, I get:

libplacebo_Resample: [error] vk->CreateDevice(vk->physd, &dinfo, PL_VK_ALLOC, &vk->dev): VK_ERROR_INITIALIZATION_FAILED (../src/vulkan/context.c:1299)
[fatal] Failed creating logical device!
[fatal] Failed initializing vulkan device

Avslibplacebo works fine as standalone filter on my computer.

Any idea?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Reply

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:09.


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