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 4th July 2011, 18:15   #261  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Sorry sorry, seems that the last example did work. I don't understand still why but its ok.

If I use ditherpost (mandatory) after smoothcurve16 or at the end of the 16b chain for dithering, there's no point on having the "dither" parameter in smoothcurve16, just wondering
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread

Last edited by Dogway; 4th July 2011 at 18:29.
Dogway is offline   Reply With Quote
Old 4th July 2011, 18:32   #262  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by Dogway View Post
Sorry sorry, seems that the last example did work. I don't understand still why but its ok.
No problem, it's great that everything works

Quote:
Originally Posted by Dogway View Post
If I use ditherpost (mandatory) after smoothcurve16, there's no point on having the "dither" parameter in smoothcurve16, just wondering
Yes, you can disable it (unless you have a full 16bits chain with a 16bits display ^^)

Last edited by LaTo; 5th July 2011 at 16:42.
LaTo is offline   Reply With Quote
Old 4th July 2011, 18:41   #263  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2011/07/04

Quote:
v2.00 beta6:
added SmoothCustom

Todo-list:
- improve debug view
- fix all bugs
Download here: > SmoothAdjust v2.00 beta6 <


SmoothCustom is considered "alpha", I can't test everything alone.
So if some people are motivated, here is what to do:
- find expressions that crash
- find expressions that produce a syntax error
- find expressions that output a false result
- find expressions that work but which should not



PS: All informations about SmoothCustom are in the readme.

Last edited by LaTo; 5th July 2011 at 16:43.
LaTo is offline   Reply With Quote
Old 14th July 2011, 15:03   #264  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2011/07/14

Quote:
v2.00 beta7:
improved debug view
tweaked smoothing


Todo-list:
- fix all bugs
Download here: > SmoothAdjust v2.00 beta7 <

LaTo is offline   Reply With Quote
Old 14th July 2011, 15:35   #265  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
for the new build!
leeperry is offline   Reply With Quote
Old 14th July 2011, 20:17   #266  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Thanks LaTo!
Is it possible to implement lsb_in, for reading stacked 16b?
I normally put color correction at the end of the chain, that's why
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 14th July 2011, 20:27   #267  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by Dogway View Post
Thanks LaTo!
Is it possible to implement lsb_in, for reading stacked 16b?
I normally put color correction at the end of the chain, that's why
Yes it's already implemented...
Simply use SmoothLevels16(), SmoothTweak16(), SmoothCurve16() and SmoothCustom16().
LaTo is offline   Reply With Quote
Old 14th July 2011, 20:34   #268  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Yay! Thanks you \(^o^)/
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 27th July 2011, 20:23   #269  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
Hey, this is great, I'll have to test it. Can you add avg and std and atan2 to the functions in smoothcustom?
Even better, correlation
jmac698 is offline   Reply With Quote
Old 29th July 2011, 04:11   #270  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
LaTo, since long Ive struggling trying to convert PC values to TV values. Normally this is a workflow:
Code:
SmoothLevels(preset="pc2tv",smooth=10,limiter=0)

sat=0.0
Cb=0.0
Cr=-0.0
SmoothCurve(\
ycurve="0-0;16-16;30-32;60-50;116-95;190-150;228-208;236-236;255-255",\
ucurve="0-"+string(128*(-sat))+";"+string(int(128-(128*Cb)))+"-"+string(128+(128*Cb))+";255-"+string(255-128*(-sat))+" ",\
vcurve="0-"+string(128*(-sat))+";"+string(int(128-(128*Cr)))+"-"+string(128+(128*Cr))+";255-"+string(255-128*(-sat))+" ",\
smooth=10,show=true,limiter=false)
Is it possible to do everything in one step inside smoothcurve? What operations should I do to convert the ycurve values to PClevels?

I also observed that the first value must be an integer in order to work...

Another issue is the graphs in the debug view, they change position depending on input values length. It makes it hard to compare 2 different graphs to check the changes.

Thanks for all the hard work.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 3rd August 2011, 08:26   #271  |  Link
atra dies
Registered User
 
Join Date: Jul 2011
Posts: 32
Is it wrong to use smoothlevels16 on linear y values?

Blacks wash out much earlier on than in ylevelsg, even before gamma=2 whilst ylevels can go up to 9 with this dark movie. I am trying to replicate ylevels with chroma=0.

smoothlevels16(input_low=0,gamma=1.2,input_high=65535,output_low=0,output_high=65535,chroma=0,lmode=0 or 3,ecurve=1,dither=-1,smooth=0,limiter=0)

Last edited by atra dies; 4th August 2011 at 02:35.
atra dies is offline   Reply With Quote
Old 4th August 2011, 09:23   #272  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by jmac698 View Post
Hey, this is great, I'll have to test it. Can you add avg and std and atan2 to the functions in smoothcustom?
Even better, correlation
Yes I will add some functions in the next version.
No problem/bug/crash in SmoothCustom?

Quote:
Originally Posted by Dogway View Post
I also observed that the first value must be an integer in order to work...
ex: SmoothCurve("a-b;c-d;e-f")
In this expression "a", "c" and "e" must be an integer.


Quote:
Originally Posted by Dogway View Post
Another issue is the graphs in the debug view, they change position depending on input values length. It makes it hard to compare 2 different graphs to check the changes.
I will add a parameter "to fix" the graph position.


Quote:
Originally Posted by atra dies View Post
Is it wrong to use smoothlevels16 on linear y values?

Blacks wash out much earlier on than in ylevelsg, even before gamma=2 whilst ylevels can go up to 9 with this dark movie. I am trying to replicate ylevels with chroma=0.
It's because ylevelsS or ylevelsG doesn't follow a linear conversion.
Simply use Lmode=1 or 2 in SmoothLevels for the same behaviour.
On top of that you can add protect=16 (or protect=4096 for 16bits) which protects the black parts.
LaTo is offline   Reply With Quote
Old 4th August 2011, 11:31   #273  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Thanks LaTo, by chance wouldn't you know what operations requires converting one value from PC levels to TV levels?

for example in PC levels I want to convert the value of 30 to 50 ("30-50"), what is the equivalent in TV levels?

SmoothCurve(\
ycurve="0-0;30-50;255-255",\
smooth=10,show=true,limiter=false)


SmoothCurve(\
ycurve="0-16;30-x;255-235",\
smooth=10,show=true,limiter=false)
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread

Last edited by Dogway; 4th August 2011 at 11:35.
Dogway is offline   Reply With Quote
Old 5th August 2011, 02:17   #274  |  Link
atra dies
Registered User
 
Join Date: Jul 2011
Posts: 32
Quote:
Originally Posted by LaTo View Post
It's because ylevelsS or ylevelsG doesn't follow a linear conversion.
Simply use Lmode=1 or 2 in SmoothLevels for the same behaviour.
On top of that you can add protect=16 (or protect=4096 for 16bits) which protects the black parts.
Well I tried to replicate that with version beta 5, lmode3 (3 = limit conversion on bright areas (apply conversion @100% at luma=0 & @0% at luma=255)), ecurve 1, and chroma=0 which is why I found the result surprising. Should they have behaved similarly? I didn't want to protect anything cause I added borders later to avoid brightening them. Or is ylevelsg supposed to limit on the dark, not the bright? (going to check it now)

Edit: I think ylevelsg does something similar to lmode 1 with a low ecenter thereby protecting the blacks. Would be nice to know the exact center of the curve.

Last edited by atra dies; 6th August 2011 at 21:39.
atra dies is offline   Reply With Quote
Old 21st August 2011, 02:08   #275  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
hi LaTo, is there anything I'm overlooking here please?



It works fine w/ 1.33 DAR, but w/ 1.5(untouched SAR) I get this error msg
leeperry is offline   Reply With Quote
Old 21st August 2011, 09:28   #276  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Quote:
Originally Posted by leeperry View Post
hi LaTo, is there anything I'm overlooking here please?



It works fine w/ 1.33 DAR, but w/ 1.5(untouched SAR) I get this error msg
Maybe because you use multithreading, height[480]/threads[4] = 120
LaTo is offline   Reply With Quote
Old 21st August 2011, 13:52   #277  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
Ah, you nailed it! Any chance of allowing 120 as a minimum instead of 128?

Last edited by leeperry; 21st August 2011 at 14:38.
leeperry is offline   Reply With Quote
Old 2nd September 2011, 19:08   #278  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Update 2011/09/02

Quote:
v2.00 beta8:
added "scale" parameter for debug view
relaxed minimum frame size (128 for AVX & 64 for SSE2)
added sinh, cosh & tanh in SmoothCustom


Todo-list:
- fix all bugs
Download here: > SmoothAdjust v2.00 beta8 <

LaTo is offline   Reply With Quote
Old 2nd September 2011, 20:49   #279  |  Link
leeperry
Kid for Today
 
Join Date: Aug 2004
Posts: 3,477
I was eagerly hoping for a new build w/ more better colors, but this will do

for the new build, and especially the lower minimum frame size requirement.
leeperry is offline   Reply With Quote
Old 2nd September 2011, 22:45   #280  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
Quote:
added sinh, cosh & tanh in SmoothCustom
Great, but could you add avg, std, atan2 at some point, as per my original request
avg(a,b)=(a+b)/2, std=standard deviation of the pixels, atan2(a,b) like atn
jmac698 is offline   Reply With Quote
Reply


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


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