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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th January 2018, 08:14   #101  |  Link
kuchikirukia
Registered User
 
Join Date: Oct 2014
Posts: 476
Unfiltered: 30MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true) = 21MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true, plane=0) = 28MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true, plane=3) = 81MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true, plane=1) = 83MB

Umm....

eh, 3.1.2d does it too.

Last edited by kuchikirukia; 24th January 2018 at 08:22.
kuchikirukia is offline   Reply With Quote
Old 25th January 2018, 14:34   #102  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by kuchikirukia View Post
Unfiltered: 30MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true) = 21MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true, plane=0) = 28MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true, plane=3) = 81MB
smdegrain(thsad=200,lsb=true,lsb_in=false,lsb_out=true, plane=1) = 83MB

Umm....

eh, 3.1.2d does it too.
it's something in mvtools or the way of how the encoder work
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 11th February 2018, 16:37   #103  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
days ago I did update stab3, now it's should be more stable with mirror=15
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 16th February 2018, 13:36   #104  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
SMDegrain 16 bit

I want to ask you a curiosity: is SMDegrain written to work with the 16 bit depth capabilities of MaskTool, MVTool and KNLMeansCL or does it use some kind of workaround?

AFAIK they are the only filters I use with the following:

PHP Code:
SMDegrain (tr=4,PreFilter=4,thSAD=600,contrasharp=false,refinemotion=false,truemotion=true,plane=4,chroma=true,lsb=true,mode=0
If not, would be a "pure" 16 bit version faster and/or more precise than the workaround method, if any?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 16th February 2018, 15:09   #105  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
I want to ask you a curiosity: is SMDegrain written to work with the 16 bit depth capabilities of MaskTool, MVTool and KNLMeansCL or does it use some kind of workaround?

AFAIK they are the only filters I use with the following:

PHP Code:
SMDegrain (tr=4,PreFilter=4,thSAD=600,contrasharp=false,refinemotion=false,truemotion=true,plane=4,chroma=true,lsb=true,mode=0
If not, would be a "pure" 16 bit version faster and/or more precise than the workaround method, if any?
in avs+ native 16 bit? it not use workaround, but the lsb in your code is not, it should show you some error message that lsb it not work with native HBD

edit: it will not be faster in native 16 unless you did this workaround

Code:
#8bit source
c=last

SMDegrain(globals=3,tr=4,PreFilter=4)
global fv1 = fv1.MScalevect(bits=16)
global fv2 = fv2.MScalevect(bits=16)
global fv3 = fv3.MScalevect(bits=16)
global fv4 = fv4.MScalevect(bits=16)
global bv1 = bv1.MScalevect(bits=16)
global bv2 = bv2.MScalevect(bits=16)
global bv3 = bv3.MScalevect(bits=16)
global bv4 = bv4.MScalevect(bits=16)

c
ConvertBits(16)
SMDegrain(globals=1,tr=4,thSAD=600,contrasharp=false,refinemotion=false,truemotion=true,plane=4)
ConvertBits(8,dither=1)
__________________
See My Avisynth Stuff

Last edited by real.finder; 16th February 2018 at 15:26.
real.finder is offline   Reply With Quote
Old 18th February 2018, 09:14   #106  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by real.finder View Post
in avs+ native 16 bit?
Thanks for your clear reply.

To clarify my question: will be possible one day to have a SMDegrain (bitdepthworkingspace=8/10/16,outputbitdepth=8/10/16) without the need of LSB? Would like also to try if a pure 16 bit processing would be more precise than a "fake" one.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 18th February 2018, 16:31   #107  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
Thanks for your clear reply.

To clarify my question: will be possible one day to have a SMDegrain (bitdepthworkingspace=8/10/16,outputbitdepth=8/10/16) without the need of LSB? Would like also to try if a pure 16 bit processing would be more precise than a "fake" one.
it's already do that but there are some filters that not work with native HBD yet (in your case it support native 10-16 bit now but you should remove the "lsb=true" or make it false), but that is way slower than the lsb method, even with the code I post above, see here https://forum.doom9.org/showthread.p...87#post1833887
__________________
See My Avisynth Stuff

Last edited by real.finder; 18th February 2018 at 16:36.
real.finder is offline   Reply With Quote
Old 10th March 2018, 12:21   #108  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
@real.finder

Could you please tell me which is the difference between
PHP Code:
pre=KNLMeansCL (d=0a=3h=7.0)
SMDegrain (tr=6thSAD=400refinemotion=falselsb=truemode=0contrasharp=falsePreFilter=pretruemotion=falseplane=4chroma=true
and
PHP Code:
pre=SMDegrain_KNLMeansCL (d=0a=3h=7.0)
SMDegrain (tr=6thSAD=400refinemotion=falselsb=truemode=0contrasharp=falsePreFilter=pretruemotion=falseplane=4chroma=true
They are giving me different results.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 10th March 2018, 13:40   #109  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
@real.finder

Could you please tell me which is the difference between
PHP Code:
pre=KNLMeansCL (d=0a=3h=7.0)
SMDegrain (tr=6thSAD=400refinemotion=falselsb=truemode=0contrasharp=falsePreFilter=pretruemotion=falseplane=4chroma=true
and
PHP Code:
pre=SMDegrain_KNLMeansCL (d=0a=3h=7.0)
SMDegrain (tr=6thSAD=400refinemotion=falselsb=truemode=0contrasharp=falsePreFilter=pretruemotion=falseplane=4chroma=true
They are giving me different results.
of course they are different, since SMDegrain_KNLMeansCL process chroma with luma by special way
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 10th March 2018, 13:44   #110  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by real.finder View Post
of course they are different, since SMDegrain_KNLMeansCL process chroma with luma by special way
Please define "special".
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 10th March 2018, 13:51   #111  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
Please define "special".
back then and still KNLMeansCL can't process chroma with luma in subsampling Chroma (new KNLMeansCL can do process chroma alone) so dogway use stacking method, you can see the code yourself, or back to dogway posts in videohelp forum
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 10th March 2018, 15:58   #112  |  Link
magiblot
Eurobeat Fan
 
Join Date: Sep 2014
Posts: 108
Hi real.finder,

Is there any way to run srestore in AVS+ x64? At first sight, it won't run because there doesn't seem to be a x64 version of GScript. Since I have read AVS+ supports GScript's functionality natively, I tried to replace the call to GScriptClip in srestore.avsi with ScriptClip, but a "I don't know what 'dm' means" error is the farthest I got.

Thanks.
magiblot is offline   Reply With Quote
Old 10th March 2018, 17:55   #113  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
GScriptClip is from Grunt plugin, not GScript.
__________________
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 10th March 2018, 20:55   #114  |  Link
magiblot
Eurobeat Fan
 
Join Date: Sep 2014
Posts: 108
Wow, what a miss.
Thanks, Stainless .
magiblot is offline   Reply With Quote
Old 10th March 2018, 20:59   #115  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by magiblot View Post
Hi real.finder,

Is there any way to run srestore in AVS+ x64? At first sight, it won't run because there doesn't seem to be a x64 version of GScript. Since I have read AVS+ supports GScript's functionality natively, I tried to replace the call to GScriptClip in srestore.avsi with ScriptClip, but a "I don't know what 'dm' means" error is the farthest I got.

Thanks.
as StainlessS said, it's Grunt

and I think the error related to something else (not Grunt)

you use mt "Prefetch()"? cuz it will not work, runtime things (srestore use it) not compatible with mt yet
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 11th March 2018, 09:00   #116  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by real.finder View Post
back then and still KNLMeansCL can't process chroma with luma in subsampling Chroma (new KNLMeansCL can do process chroma alone) so dogway use stacking method, you can see the code yourself, or back to dogway posts in videohelp forum
Looked.

What does this line

!lsb && lsb_in ? Ditherpost(mode=6,slice=false) : last

means?

As I am using SMDegrain_KNLMeansCL as a prefilter (just to have more control over prefilter parameters), is it useful to dither when SMDegrain already dither again at some point?

Wanting to use KNLMeansCL as a plain prefilter, would it be sufficient to use:

pre =KNLMeansCL (d=0, a=3, h=7.0, channels="Y")
pre2=KNLMeansCL (d=0, a=3, h=7.0, channels="UV")
SMDegrain (tr=6, thSAD=400, refinemotion=false, lsb=true, mode=0, contrasharp=false, PreFilter=pre2, truemotion=false, plane=4, chroma=true)

or the very complex prefilter script is necessary?
__________________
@turment on Telegram

Last edited by tormento; 11th March 2018 at 09:07.
tormento is offline   Reply With Quote
Old 11th March 2018, 12:15   #117  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
remember that I told you that mvtools don't has lsb_in anywhere, it's just has lsb parameter in mdegrainX, so you must dither any stacked input clip

yes, you can use

pre =KNLMeansCL (d=0, a=3, h=7.0, channels="Y")
pre2=KNLMeansCL (d=0, a=3, h=7.0, channels="UV")
SMDegrain (tr=6, thSAD=400, refinemotion=false, lsb=true, mode=0, contrasharp=false, PreFilter=pre2, truemotion=false, plane=4, chroma=true)

or anything give you what you want

but I think you need to added "pre." before KNLMeansCL in pre2, so it should be

pre2=pre.KNLMeansCL (d=0, a=3, h=7.0, channels="UV")
__________________
See My Avisynth Stuff

Last edited by real.finder; 11th March 2018 at 12:18.
real.finder is offline   Reply With Quote
Old 11th March 2018, 12:22   #118  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by real.finder View Post
remember that I told you that mvtools don't has lsb_in anywhere, it's just has lsb parameter in mdegrainX, so you must dither any stacked input clip
We need some Pinterf modding here
Quote:
Originally Posted by real.finder View Post
or anything give you what you want
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 11th March 2018, 12:25   #119  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
We need some Pinterf modding here
why? lsb is hack, he already did support native avs+ HBD, and he will add out16 as replacement for lsb method, see last posts in his mvtools Thread
__________________
See My Avisynth Stuff

Last edited by real.finder; 11th March 2018 at 12:27.
real.finder is offline   Reply With Quote
Old 11th March 2018, 13:42   #120  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by real.finder View Post
why? lsb is hack, he already did support native avs+ HBD, and he will add out16 as replacement for lsb method, see last posts in his mvtools Thread
I saw and I know. Look at smiley.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Reply

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


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 15:47.


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