struct mola::VideoRecorder::Params
Overview
#include <VideoRecorder.h> struct Params { // fields std::string output; int fps = 30; int width = 1920; int height = 1080; std::string ffmpeg_options = "-c:v libx264 -preset veryfast -crf 16 -pix_fmt yuv420p"; Logger logger; };
Fields
std::string output
Video file, overwritten if it exists (e.g. “.mkv”: still playable if the recording is cut short).
std::string ffmpeg_options = "-c:v libx264 -preset veryfast -crf 16 -pix_fmt yuv420p"
ffmpeg output options (codec, quality, filters).
Logger logger
Where messages go (default: stdout/stderr).