Search code examples
flashffmpegflvvideo-processingchromakey

ChromaKey FLV Transparency


I have over 20000 FLV's at the moment. They currently have no alpha channel and are all CGI generated text on a black background.

My issue: I need to be able to remove the black background and make it transparent, so I can use these videos to layer over pictures in my flash project.

It needs to be an automated process, that can go through the whole dir of videos and remove the backgrounds

What I've tried?

I have spent the last three days pulling my hair out. Currently the option I see is to write a custom filter for ffmpeg.

The end goal:

Layer the flv videos over randomly generated videos in an adobe air application built in flex.


Solution

  • I just found this - including source. It's quite impressive and might be what you're looking for with just a few tweaks. I love'd playing with the live video filter.

    http://blog.onthewings.net/2009/12/10/chroma-key-and-thresholding-in-flash-pixel-bender-revised/

    Good luck!