PixmapRecorder.this

Prepares a recorder for encoding a video file saved to the specified path.

This allows FFmpeg to seek through the output file and enables the creation of file formats otherwise not supported when using piped output.
  1. this(double frameRate, File output, string outputFormat, File log, string ffmpegExecutablePath)
  2. this(double frameRate, string outputPath, File log, string outputFormat, string ffmpegExecutablePath)
    class PixmapRecorder
    @safe
    this
    (
    double frameRate
    ,
    string outputPath
    ,
    File log = stderr
    ,
    string outputFormat = null
    ,
    string ffmpegExecutablePath = "ffmpeg"
    )

Parameters

frameRate double

Framerate of the video output; in frames per second.

outputPath string

File path to write the video output to. Existing files will be overwritten. FFmpeg will use this to autodetect the format when no outputFormat is provided.

log File

Target file for the stderr log output of FFmpeg. This is where error messages are written to, as well.

outputFormat string

Video (container) format to output. This value is passed to FFmpeg via the -f option. If null, the format is not provided and FFmpeg will try to autodetect the format from the filename of the outputPath.

ffmpegExecutablePath string

Path to the FFmpeg executable (e.g. ffmpeg, ffmpeg.exe or /usr/bin/ffmpeg).

Meta