On Mon, Sep 14, 2009 at 4:40 PM, Andres Ferrari <span dir="ltr">&lt;<a href="mailto:anfex@yahoo.com">anfex@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
hello, i am trying to use pix_mask with 2 movies.<br>
<br>
the movies were encoded in RGBA colorspace (codec planarRGB) for .mov files.<br>
<br>
but when I open the video the pd console show that is not possible use pix_mask with 2 YUV movies...<br></blockquote><div><br>YUV has no alpha channel.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
maybe this objects works only with still images in jpg??<br></blockquote><div><br>It works with movies in RGBA colorspace.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

maybe I need other codecs for my movies??<br></blockquote><div><br>The &#39;None&#39; codec will give uncompressed RGBA.  Or try Photo-JPEG at 100% quality (any other quality level is YUV).<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

maybe I have to create the movie with his own alpha channel??<br></blockquote><div><br>The best way to use alpha channels is pre-render them in an off line app like Photoshop or After Effects.  The alpha channel can hold any values, and they don&#39;t have to be related to the image at all (alpha has no set meaning in image processing).  pix_alpha just does a very simple average of R G and B which might not give you the results you want.  You could do an extreme setting for pix_contrast/saturation before it to remove all color (saturation 0) and create black or white pixels with a very high contrast value.  This would give a mask like the dancer.jpg used in the example patches based on the brightness of the pixels.<br>
</div><div><br><br></div></div><br>