Skip to content
Simple movie recorder for Cinder using the Windows Media foundation.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples/SimpleWriter
src/wmf
.gitignore
README.md
cinderblock.png
cinderblock.xml

README.md

Cinder-WMFMovieWriter

Simple movie recorder for Cinder using the Windows Media foundation.

This clocks was made by hacking Tutorial: Using the Sink Writer to Encode Video. IT is not meant to be seen as a professional library nor will I be giving any kind of support.

For now it just writes h264 and WMV3 files, but you can modified it to suit your needs.

The class has two different method for adding frames, ones expects a Surface a s a parameter and the other a reference to a Texture.

void addFrame( Surface imageSource, float duration = -1.0f);
void addFrame( gl::TextureRef textureSource, float duration = -1.0f);

The WMF expects a unsigned char * array, so a surface is the perfect choice but if the data of a surface is passed, the color red a blue are swaped. The fastest solution found was to render to a FBO and swap the color in a shader.

You can’t perform that action at this time.