We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Realtime Video masking
Page Index Toggle Pages: 1
Realtime Video masking (Read 587 times)
Realtime Video masking
Mar 2nd, 2009, 12:06am
 
Is it possible to use processing to filter video background in real-time ?

The effect I am trying to achieve is have a quiktime movie with animated characters but the background entirely in a solid colour (white, green,red,etc.)

Can you now load another video or even a graphic and fill the background with the other video or graphic in real-time.

I can achieve this using Photo-editing software one frame at a time where I manually remove the background with a background erase tool and then paste the image as the layer beneath.

Is this possible with processing, in real-time using video and another video or video and images ?

Any help would be really appreciated.
Re: Realtime Video masking
Reply #1 - Mar 3rd, 2009, 4:06am
 
The short answer is yes.  You might run into framerate issues related to:

1.  Removing the background--this depends on your removal algorithm.
2.  Reading two movies from disk at once, but maybe you can cache it in RAM.
3.  CPU load from decoding two movies at once.  Most modern video cards ought to decode on the GPU though.

If these are issues, you can try using smaller resolution movies.
Re: Realtime Video masking
Reply #2 - Mar 6th, 2009, 7:55am
 
Due to your request, if there wasn't before, there is now.

Warning: shameless plug ahead!

http://jmfvideo.googlepages.com

It uses JMF rather than the usual video library.
If you have any questions, let me know.
Page Index Toggle Pages: 1