Crazy Pulsating Color Filter
February 23, 2006 8:30 PM
Subscribe
This idea for a visual effect has occured to me, and I want to implement it, just to see what it's like. I know Perl and C/C++, but I am heavily biased towards a *nix environment. Description of video transformation inside...
Basically what I want to do is vary the saturation of the primary colors in video frames based on the amplitude of music that would accompany it. So for instance, while the soundtrack was silent the video frames would have no saturation. Let's say I split the audo frequency in midrange, bass, and high end corresponding to yellow, red, and blue respectively. So every time the kick drum is hit, the red saturation peaks for a moment.
How can I implement this? My first thought is to somehow generate average amplitudes of the audio at a sample rate equal to the video frame rate. Then split the video into individual frames and use something like the GD libraries to tweak each frame indivdually.
But that seems like re-inventing the wheel several times over. Is there some existing software that could be extended to do this?
posted by phrontist to technology (7 comments total)
1 user marked this as a favorite
posted by xil at 8:34 PM on February 23, 2006