Skip to content

Simple movie recorder for Cinder using the Windows Media foundation.

Notifications You must be signed in to change notification settings

xumo/Cinder-WMFMovieWriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple movie recorder for Cinder using the Windows Media foundation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages