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 3rd January 2017, 13:02   #21  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
Quote:
Originally Posted by Izuchi View Post
I'm getting the following error message: I don't know what "merge 16" means. Can you confirm that it should be shift16 instead?

Code:
# Threshold Merging & Output
	
    enable ? \
    Eval("""
        merge16  = !nnt ? flat16
        \               : mixed ? Dither_limit_dif16(flat16, edge16, thr=thr, elast=elast, y=Ynn, u=Unn, v=Vnn)
        \                       : Ynnt==Unnt && Unnt==Vnnt || IsY8 ? edge16
        \                                                          : mt_lutxy(edge16, flat16, Y=Yt?Ynnt?2:4:1, U=Ut?Unnt?2:4:1, V=Vt?Vnnt?2:4:1)
        merge16  = IsY8 ? output=="Y8" ? merge16.ConvertToY8() : Eval("merge16.ConvertTo"+oCSP).Dither_lut16(Y=2, U=-32768, V=-32768) : merge16
        
        final    = IsRGB ? merge16.Dither_convert_yuv_to_rgb(matrix=matrix, tv_range=tv_range, lsb_in=True, mode=dither, output=output)
        \                : lsb ? merge16
        \                      : merge16.nnedi3_resize16_Down8(tv_range, True, !IsY8, !IsY8, dither)
    """) : \
    Eval("""
        shift16  = input16.Dither_resize16(ow, oh, src_left, src_top, src_width, src_height, kernel="point", y=Y, u=U, v=V)
        shift16  = IsY8 ? output=="Y8" ? merge16.ConvertToY8() : Eval("shift16.ConvertTo"+oCSP).Dither_lut16(Y=2, U=-32768, V=-32768) : shift16
        
        final    = IsRGB ? shift16.Dither_convert_yuv_to_rgb(matrix=matrix, tv_range=tv_range, lsb_in=True, mode=dither, output=output)
        \                : lsb ? shift16
        \                      : shift16.nnedi3_resize16_Down8(tv_range, True, !IsY8, !IsY8, dither)
    """)
    
    
    return final
}
in what function? and the settings?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 3rd January 2017, 13:43   #22  |  Link
Izuchi
Registered User
 
Join Date: Dec 2014
Posts: 28
Sorry, it's in the nnedi3_resize16 function.

Code:
# 1920x1080 input
Dither_convert_8_to_16()
nnedi3_resize16(lsb_in=true, lsb=true, output="RGB48Y")
nnedi3_resize16(1920, 1080, lsb_in=True, lsb=True, Y=3, U=1, V=1)
Dither_convert_rgb_to_yuv(SelectEvery(3, 0), SelectEvery(3, 1), SelectEvery(3, 2), lsb=True, output="YV24")
DitherPost()

Last edited by Izuchi; 3rd January 2017 at 13:48.
Izuchi is offline   Reply With Quote
Old 3rd January 2017, 13:57   #23  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
Quote:
Originally Posted by Izuchi View Post
Sorry, it's in the nnedi3_resize16 function.

Code:
# 1920x1080 input
Dither_convert_8_to_16()
nnedi3_resize16(lsb_in=true, lsb=true, output="RGB48Y")
nnedi3_resize16(1920, 1080, lsb_in=True, lsb=True, Y=3, U=1, V=1)
Dither_convert_rgb_to_yuv(SelectEvery(3, 0), SelectEvery(3, 1), SelectEvery(3, 2), lsb=True, output="YV24")
DitherPost()
fixed it, thanks for report
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 3rd January 2017, 16:20   #24  |  Link
ndjamena
Registered User
 
Join Date: Sep 2012
Posts: 366
Code:
	# Get maximum temporal radius needed
	maxTR = (temporalSL)       ? SLRad : 0
	maxTR = (MatchTR2 > maxTR) ? MatchTR2 : maxTR
	maxTR = (TR1 > maxTR)      ? TR1 : maxTR
   	maxTR = (TR2 > maxTR)      ? TR2 : maxTR
   	maxTR = (NoiseTR > maxTR)  ? NoiseTR : maxTR
	maxTR = (ProgSADMask > 0.0 || StabilizeNoise || ShutterBlur > 0) ? (maxTR > 1 ? maxTR : 1) : maxTR
	maxTR = (ForceTR > MaxTR)  ? ForceTR : maxTR
Just curious if this mess in QTGMC is actually necessary given that there's always been a max function in AVISynth.

I'm pretty sure a line or two of consisting of max() would be easier to read and this just makes the script look more complicated than it actually is.
ndjamena is offline   Reply With Quote
Old 3rd January 2017, 18:31   #25  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
Quote:
Originally Posted by ndjamena View Post
Code:
	# Get maximum temporal radius needed
	maxTR = (temporalSL)       ? SLRad : 0
	maxTR = (MatchTR2 > maxTR) ? MatchTR2 : maxTR
	maxTR = (TR1 > maxTR)      ? TR1 : maxTR
   	maxTR = (TR2 > maxTR)      ? TR2 : maxTR
   	maxTR = (NoiseTR > maxTR)  ? NoiseTR : maxTR
	maxTR = (ProgSADMask > 0.0 || StabilizeNoise || ShutterBlur > 0) ? (maxTR > 1 ? maxTR : 1) : maxTR
	maxTR = (ForceTR > MaxTR)  ? ForceTR : maxTR
Just curious if this mess in QTGMC is actually necessary given that there's always been a max function in AVISynth.

I'm pretty sure a line or two of consisting of max() would be easier to read and this just makes the script look more complicated than it actually is.
I will check it later (when there is a bug or really needed change)
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 13th January 2017, 18:36   #26  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
added DeHalo_alpha and others

DeHalo_alpha now in avs 2.6 is faster and it's rad can be set more flexible (cuz it's done in Y8 with no mod4 or mod8 etc... resize limit)
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 14th January 2017, 05:56   #27  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 543
Quote:
Originally Posted by Sparktank View Post
Great stuff! What a nice collection.
and ... +1
hydra3333 is offline   Reply With Quote
Old 22nd January 2017, 19:59   #28  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
new update for admfilter and RemoveDirtMC_SE
__________________
See My Avisynth Stuff

Last edited by real.finder; 16th August 2019 at 04:37.
real.finder is offline   Reply With Quote
Old 22nd January 2017, 21:41   #29  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,821
Will you push all of your filters/scripts to github?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 22nd January 2017 at 21:45.
ChaosKing is offline   Reply With Quote
Old 22nd January 2017, 21:50   #30  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
Quote:
Originally Posted by ChaosKing View Post
Will you push all of your filters/scripts to github?
maybe
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th January 2017, 18:04   #31  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
Using AVS+, in SMDegrain, having stacked 16bit 422 YV16 as a source, I have the following error only when contrasharp=true
Code:
StackVertical: Image formats don't match
at line 541
Code:
lsb_out ? StackVertical (last, BlankClip (last, pixel_type=type, color_yuv=0,length=1)) : last""")}
mp3dom is offline   Reply With Quote
Old 28th January 2017, 22:53   #32  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
Quote:
Originally Posted by mp3dom View Post
Using AVS+, in SMDegrain, having stacked 16bit 422 YV16 as a source, I have the following error only when contrasharp=true
Code:
StackVertical: Image formats don't match
at line 541
Code:
lsb_out ? StackVertical (last, BlankClip (last, pixel_type=type, color_yuv=0,length=1)) : last""")}
fixed
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th January 2017, 23:08   #33  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
Many thanks!
mp3dom is offline   Reply With Quote
Old 2nd February 2017, 06:17   #34  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
new dehalo edit and other added and updated
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 8th February 2017, 12:35   #35  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
nnchromaupsubsampling() now work with more than 8 bit in avs+
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 21st February 2017, 04:12   #36  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
I build some plugins of chikuzen since he/she absent from the scene

TCannyMod and CombMask 32 bit plugins work with xp unlike original chikuzen plugins

yadifmod2 already work in xp but this one is work with new colour format in avs+ (chikuzen update the source in github but didn't make new release)
edit: my yadifmod2 build is useless since the HBD code is buggy, also the x64 one seems avx one

edit: there are another update for this https://forum.doom9.org/showthread.p...22#post1821422
Attached Files
File Type: rar chikuzen plugins.rar (151.6 KB, 417 views)
__________________
See My Avisynth Stuff

Last edited by real.finder; 16th August 2019 at 04:40.
real.finder is offline   Reply With Quote
Old 4th March 2017, 23:04   #37  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
DeHalo_alpha now work with all new avs+ bit depth, big thanks to pinterf, new updates for other dehalos maybe silently come very soon (maybe after some hours from now or next days)
__________________
See My Avisynth Stuff

Last edited by real.finder; 9th March 2017 at 23:32.
real.finder is offline   Reply With Quote
Old 6th March 2017, 01:21   #38  |  Link
ingoldie
Registered User
 
Join Date: Sep 2014
Posts: 133
Does anybody know how to fix the "RemoveGrain: only planar color spaces are supported" error for BlindDeHalo3_mt2?
ingoldie is offline   Reply With Quote
Old 6th March 2017, 23:44   #39  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
Quote:
Originally Posted by ingoldie View Post
Does anybody know how to fix the "RemoveGrain: only planar color spaces are supported" error for BlindDeHalo3_mt2?
make sure you use last RgTools

I did port BlindDeHalo3 now to work in all new bit depth, VHSHaloremover is already done but waiting for new avs+ release, abcxyz is done from yesterday
__________________
See My Avisynth Stuff

Last edited by real.finder; 6th March 2017 at 23:47.
real.finder is offline   Reply With Quote
Old 8th March 2017, 08:42   #40  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,597
The situation for support new format in avs+ now is:

* new Masked_DHA and BlindDeHalo3 update to make them accept float in all possible parameters (it will be more accurate especially with high bit)

* SMDegrain now work with 10-16 bit in default settings

* edgesidebleed() now work with all new bit depth
__________________
See My Avisynth Stuff

Last edited by real.finder; 8th March 2017 at 08:44.
real.finder is offline   Reply With Quote
Reply

Tags
avisynth, avs script, avs+, banding, generator, hbd, mod

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 16:55.


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