openFrameworks addon for recording video with FFmpeg
Forks
Forks pushed to more recently than tyhenry/ofxFFmpeg itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
Branches ahead of master
These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.
README
ofxFFmpeg
A simplified
ffmpeg video recorder. Spawns ffmpeg in a subprocress and pipes video frames to it at a constant framerate.Code is a rewrite of
ofxFfmpegRecorder.Features
- Record video by adding
ofPixels
Todo
- Add audio support (currently only video recording is supported)
How to Use
- See the example.
Dependencies
- openFrameworks 0.10+
ffmpeg
ofxFFmpeg will call ffmpeg from your PATH. You may alternatively specify the full path to a local ffmpeg binary in ofxFFmpeg::RecorderSettings. ffmpeg binaries are included in the libs directory for portability. On macOS and Linux, you may have to give executing permission to ffmpeg binary. by chmod +x your_ffmpeg_path
ofxAddons