Very interesting, Tomis. I will study what you did and see how it works!

Thanks!
Elvin

On Mar 27, 2006, at 3:07 PM, Tomis E. wrote:

You know I've been thinking about adding a "Color Screen" effect to my open source program ImagePlay < http://imageplay.sourceforge.net > . I added basic support for movie layers in the last version, you can run a bunch of effects (blur, invert, contrast, etc) on the movie as it
plays. The source code could prove useful to you.

The process of converting the movie image into a REALbasic picture object is very CPU intensive,
though rather easy to code. Essentially you just:
* open the movie as an editable movie
* make the height of the controller 16 or so pixels high so the user can only see the control bar * grab the image via EditableMovieObject.Picture, do your processing, and then display it to the
user

As for the actual effect. You'll want to use the picture object's RGBsurface object for the best speed. You simply iterate over each pixel, determine if it's in the color range you want, and set the mask pixel accordingly. See the effect "Replace Color" in ImagePlay for an idea of how fast
this will be.

During live playback I use a timer to grab the frames. If you want to process the movie and export it frame-for-frame though, that's a bit more complex. You'll have to use a QTVideoTrack and QTTrack.FindNextSample for the capture, and then have a second editablemovie object that you write
out the processed frames to.

Feel free to email me off-list if you get stuck!

Thank you,
~ Tomis

--- " Elvin S. Rodríguez " <[EMAIL PROTECTED]> wrote:

I've seen discussion on alpha channels and picts, however, I'm trying
to write software that will allow me to work with video and a green
screen. I would like to juxtapose a graphic or another video as a
background to a live video (or another video file). Can someone give
me any ideas of how I could do this in RB? Is this even possible? I'm
willing to read, so if you have any references, I would appreciate them.

Thanks in advance,
Elvin R.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to