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 9th June 2008, 11:13   #261  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
I guess the problem comes from the fact that mt_merge needs to perform a resizing operation when luma=true, but Avisynth does not support resizing of "planar hacked" YUY2 input ... ?

However: yup, most probably you don't need luma=true. It seems that you're currently dealing with masks provided by MVMask(). Those masks contain the needed information on all three planes, so using the normal U=3,V=3 in mt_merge should do what you want.
If that's not the case, you have to construct your mask clip manually by means of YtoUV() operations.
__________________
- 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 9th June 2008, 13:39   #262  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Didée!
Code:
mask=Planar2Interleaved(maskpl)
HorizontalReduceBy2(mask).YtoUV() 
mask=Merge(mask)
maskpl=Interleaved2Planar(mask)
maskpl mask in planar colorspace
mask YUY2 in interleaved colorspace.
This will be work?
yup.
yup is offline   Reply With Quote
Old 10th June 2008, 10:37   #263  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Please advice:
Code:
mmask=Planar2Interleaved(mmaskpl)
YtoUV(HorizontalReduceBy2(mmask),HorizontalReduceBy2(mmask))
mmask=MergeLuma(mmask)
mmaskpl=Interleaved2Planar(mmask)
And use U=3,V=3 at mt_merge. This work like luma=true for YUY2 planar?
Now right?
yup.
yup is offline   Reply With Quote
Old 10th June 2008, 11:21   #264  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Seems to be correct, yes.
Small nitpick: it does a little more work than necessary.
More efficient:
Code:
mmask   = mmaskpl.Planar2Interleaved()
mmask2  = mmask.HorizontalReduceBy2()
mmaskpl = YtoUV(mmask2,mmask2,mmask).Interleaved2Planar()
__________________
- 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 10th June 2008, 12:19   #265  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Didée
My collection tip&trick grow one more
yup.
yup is offline   Reply With Quote
Old 6th September 2008, 16:07   #266  |  Link
Alain2
Registered User
 
Join Date: May 2005
Posts: 236
Hi Manao,

Is it normal that mt_edge doesn't output the same thing when using a named kernel and its equivalent kernel as defined in the html help file ? (like for instance "laplace" and "1 1 1 1 -8 1 1 1 1")
Alain2 is offline   Reply With Quote
Old 6th September 2008, 18:09   #267  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
laplace is equivalent to "1 1 1 1 -8 1 1 1 1 8", while "1 1 1 1 -8 1 1 1 1" gets interpreted as "1 1 1 1 -8 1 1 1 1 16". The same applies to sobel ("0 -1 0 -1 0 1 0 1 0 2" and robert ("0 0 0 0 2 -1 0 -1 0 2").
__________________
Manao is offline   Reply With Quote
Old 6th September 2008, 18:23   #268  |  Link
Alain2
Registered User
 
Join Date: May 2005
Posts: 236
ok
Alain2 is offline   Reply With Quote
Old 22nd December 2008, 10:55   #269  |  Link
LaTo
LaTo INV.
 
LaTo's Avatar
 
Join Date: Jun 2007
Location: France
Posts: 701
Hi!

I have a little problem with the pi value... Maybe a bug!

In the documentation:
Quote:
V) Reverse polish notation.
[...]
The constant "pi" can be used.
But if I try a simple expression:
Code:
mt_lut("pi 2 / sin 255 *")
It return a black screen instead of a blank screen...

It would be great to fix this
LaTo is offline   Reply With Quote
Old 22nd December 2008, 20:30   #270  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
Fixed in 2.0a36
__________________
Manao is offline   Reply With Quote
Old 9th October 2009, 22:27   #271  |  Link
lilive
Registered User
 
Join Date: Jun 2009
Location: Toulouse - France
Posts: 12
Hi,
very much for this job, and to share it.
I'm using it to produce some movies for a little dance show.
I hope I will do somedays something usefull like that !
Bye,
Et le bonjour de Toulouse
__________________
---- just a french , please forgive my english ----
lilive is offline   Reply With Quote
Old 20th October 2009, 03:13   #272  |  Link
adamhj
Registered User
 
adamhj's Avatar
 
Join Date: Mar 2005
Location: China
Posts: 40
bug in 2.0a36 : it seems that mt_polish can not recognize variable "z" for mt_lutxyz
__________________
o(>_<)o
adamhj is offline   Reply With Quote
Old 3rd April 2010, 16:17   #273  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
REQUEST: mt_InFix

Any possibility that the MaskTools v2 developers could add a filter that translates reverse polish expressions to InFix notation - call it mt_Infix, if you will, or maybe make it an option in the mt_polish filter.

This would greatly assist non-programmers, such as myself, in deciphering and modifying the calculations/operations involved in scripted functions developed by others.

Thanks.
__________________
Nostalgia's not what it used to be

Last edited by WorBry; 3rd April 2010 at 16:24.
WorBry is offline   Reply With Quote
Old 3rd April 2010, 19:56   #274  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
adamhj, worbry : see my signature for the new version.
__________________
Manao is offline   Reply With Quote
Old 3rd April 2010, 20:52   #275  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
Quote:
Originally Posted by Manao View Post
adamhj, worbry : see my signature for the new version.
Wow, that was fast. Really excellent. Thanks alot.

Although self explanatory, I guess the documentation needs to be updated to include mt_InFix in the filter list.

Thanks again.
__________________
Nostalgia's not what it used to be
WorBry is offline   Reply With Quote
Old 9th April 2010, 14:38   #276  |  Link
Zep
Registered User
 
Join Date: Jul 2002
Posts: 587
I'm curious. what is the difference between the 25 and 26 dll's?


thx
Zep is offline   Reply With Quote
Old 9th April 2010, 14:56   #277  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
One is for avisynth 2.5, the other one for avisynth 2.6
__________________
Manao is offline   Reply With Quote
Old 10th April 2010, 11:48   #278  |  Link
Zep
Registered User
 
Join Date: Jul 2002
Posts: 587
Quote:
Originally Posted by Manao View Post
One is for avisynth 2.5, the other one for avisynth 2.6
ah thanks i thought that was the case so i used 25 but i wanted to make sure because i saw a lot of these scripts for denoising and what not and most state 26 is needed so i hoped there was nothing in 26 they truly needed that 25 didn't have.

better safe than sorry so i asked lol


thx!
Zep is offline   Reply With Quote
Old 10th April 2010, 13:07   #279  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Manao View Post
One is for avisynth 2.5, the other one for avisynth 2.6
It would be nice if this was made clearer in the documentation, as I see a lot of scripts posted that erroneously use mt_masktools26.dll with Avisynth 2.5.

In practice, what problems can arise from using the wrong version?
Gavino is offline   Reply With Quote
Old 10th April 2010, 14:24   #280  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
Quote:
In practice, what problems can arise from using the wrong version?
I have no idea. Somebody asked me once to release a 2.6 version, so I did. But I didn't test it, and neither did I test cross compatibilities. I'll try to add a note (which nobody will read...) and find a more explicit naming scheme for the next release.
__________________
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 14:42.


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