View Single Post
Old 16th December 2014, 21:45   #15  |  Link
Are_
Registered User
 
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
Quote:
Originally Posted by Myrsloik View Post
If I'm not mistaken it will work when the input clip has up to 10 bit precision. If you conditionally replace Lut2 with Expr when the input clip > 10 bits you can easily make it work for 16 bit clips too.
Quote:
Originally Posted by buchanan View Post
Just tried with a 10bit clip, it still throws an error "Clip must be 8bit YUV"
Yeah it works, but it adds like 20/30 of startup, I didn't permit it for that reason, but I suppose I can change that check.

I tried what you said Myrsloik, but the output was not the same, more grainy, I guess my expresion sucked and I gave up. I will keep at it another day.

Thanx for the tips feisty2, when I have a chance I will try to make it work that way. Btw, you don't need to convert anything to strings in python, that's an avisynth limitation when dealing with strings. In python you do something like:
Code:
'x y %r - +' % (thr)
with positional arguments or
Code:
'x y {thr} - +'.format(thr=thr)
with named arguments.
Are_ is offline   Reply With Quote