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
.
- Record video by adding
ofPixels
- Add audio support (currently only video recording is supported)
- See the example.
-
openFrameworks 0.10+
-
ffmpeg
By defaultofxFFmpeg
will callffmpeg
from your PATH.
You may alternatively specify the full path to a localffmpeg
binary inofxFFmpeg::RecorderSettings
.
ffmpeg
binaries are included in thelibs
directory for portability.
On macOS and Linux, you may have to give executing permission toffmpeg
binary.
bychmod +x your_ffmpeg_path