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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th April 2007, 10:31   #221  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,173
Someones got a bug in there code. This is typical when one doesn't clamp arithmetic results to 0 at the low end and 255 at the high end.

In 8 bit unsigned arithmetic 0-1=255 (0=black, 255=white)
IanB is offline   Reply With Quote
Old 1st August 2007, 22:00   #222  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
New version : v2.0a31

Changelog :
Code:
    * fixed : mt_hysteresis was randomly crashing.
    * fixed : mt_polish is back.
    * added : round, clip, min, max and = for lut.
    * adapted : to msvc8 / yasm.
__________________
Manao is offline   Reply With Quote
Old 1st August 2007, 22:03   #223  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
Didee : what you asked for isn't possible with a lut, it would require too big a lut.

Dr Khron, foxyshadis : does anybody still have the problem on the edges reported by Dr Khron ? If yes, can I have something to help me reproduce it ?
__________________
Manao is offline   Reply With Quote
Old 1st August 2007, 23:06   #224  |  Link
Terranigma
*Space Reserved*
 
Terranigma's Avatar
 
Join Date: May 2006
Posts: 953
Thanks for the update Manao
Terranigma is offline   Reply With Quote
Old 2nd August 2007, 00:27   #225  |  Link
Terranigma
*Space Reserved*
 
Terranigma's Avatar
 
Join Date: May 2006
Posts: 953
Manao, was there some sort of speed tweak involved as well? Seems like it, but maybe i'm just off my engines.
Terranigma is offline   Reply With Quote
Old 2nd August 2007, 20:08   #226  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
I didn't do anything to make it faster.
__________________
Manao is offline   Reply With Quote
Old 5th August 2007, 15:27   #227  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
New version : v2.0a32

Changelog :
Code:
 * added : mt_lutxyz
 * added : mt_lutsx
 * fixed : small memory leak in mt_luts
Basically, mt_lutsx is the filter Didee previously required, and mt_lutxyz is a three clip lut. I changed my position on what "too big" is for a lut. Those filters take some time to initialize ( 3*2^24 values to compute ), something like 5 seconds can be expected. Each instance of those filters takes up 48 MB too.
__________________
Manao is offline   Reply With Quote
Old 10th August 2007, 19:19   #228  |  Link
check
phjbdpcrjlj2sb3h
 
check's Avatar
 
Join Date: Sep 2005
Location: Western Australia
Posts: 1,692
Just letting you know there's a typo in the filterlist in the .htm help. 'mt_rectange'
check is offline   Reply With Quote
Old 20th December 2007, 03:18   #229  |  Link
Spuds
dumber every day
 
Spuds's Avatar
 
Join Date: Dec 2006
Location: Planet Earth
Posts: 154
Not so much a bug as an observation or just a plain mistake on my part.

I was using mt_lutf to see if a frame was over / under a very low threshold, something like:
lutf(mask,mask,mode="avg",expr="x 0.1 > y 0 ?")

and comparing the results to:
ConditionalFilter(mask, nullclp, mask, "AverageLuma()", "<", string(0.1),false)

I was getting different results on what frames got through and realized the mt_lutf was doing the comparison not on the float but on the rounded value of average. I know the final result is a round but expected the float to be maintained through the comparison.

Also found that the averageluma approach was about 30% faster.
Spuds is offline   Reply With Quote
Old 20th December 2007, 03:41   #230  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,394
Interesting finding on the rounding thing.
The speed difference probably isn't surprising: averageluma operates on just one single clip. LutF/LutS always operate on two input clips, could be this makes the internal pixel shuffling a bit slower.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 20th December 2007, 06:58   #231  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
LutF/S are completely unoptimized, so it doesn't suprises me if they are slow.

As for the rounding, I'll add that to the documentation. It makes sense for me, since the average becomes an entry to a LUT, it must be rounded, but I guess that a programmer's POV, not really a user's POV
__________________
Manao is offline   Reply With Quote
Old 20th December 2007, 17:16   #232  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
manao, why in your signature the stable version is 2.0a31 and not 2.0a32?
Fizick is offline   Reply With Quote
Old 28th February 2008, 10:24   #233  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
using in Avisynth 2.57 planar YUY2

Hi folks!
Can I use MaskTools V.2 in Avisynth 2.57 with planar YUY2?
I can get planar using SSETools.
Code:
AVISource("a.avi")#YUY2 source
SeparateFields()
Interleaved2Planar()
MaskTools V.2 function
Planar2Interleaved()
Weave()
This will be work?
yup.
yup is offline   Reply With Quote
Old 28th February 2008, 10:28   #234  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,662
MaskTools requires YV12 input, so you need to convert to YV12 before using any MaskTools functions.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 28th February 2008, 10:44   #235  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Hi Boulder!
This sentence from document.
Quote:
The filters have a set of common parameters, that mainly concerns what processing to do on each planes. They all work only in YV12 ( though with Avisynth 2.6, support for all planar format will be available ).
We need waiting Avisynth 2.6? I right?
yup.
yup is offline   Reply With Quote
Old 28th February 2008, 10:47   #236  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,662
I don't know the inner workings of MaskTools, it could (and probably does) mean that the MaskTools code needs some rewriting too.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 28th February 2008, 10:58   #237  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
Internally, it supports everything from 4:0:0 to 4:4:4 planar. I'll see what I can do for avs 2.5 and interleave2planar. It already works for avs 2.6.
__________________
Manao is offline   Reply With Quote
Old 28th February 2008, 19:56   #238  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
Done : http://manao4.free.fr/masktools-v2.0a33.zip
__________________
Manao is offline   Reply With Quote
Old 29th February 2008, 04:14   #239  |  Link
XBoy
Registered User
 
Join Date: Jul 2005
Posts: 11
x64

How about x64 support?
XBoy is offline   Reply With Quote
Old 29th February 2008, 04:18   #240  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,855
I can quickly make a x64 version with assembly disabled. I don't think that's what you want, but without having a 64bit OS, I won't do anything more.
__________________
Manao 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 13:06.


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