Ffmpeg
class Ffmpeg(runner: ProcessRunner = SystemProcessRunner, ffmpeg: String = "ffmpeg", ffprobe: String = "ffprobe")
Drives the ffmpeg and ffprobe programs on PATH: Roto never decodes video itself.
Frames are decoded upright (ffmpeg applies a phone video's display rotation), scaled to a working height with an area filter, and converted to 8-bit RGB. Scaling and conversion run with swscale's bitexact flag, which keeps them off CPU-specific code paths, so one ffmpeg version gives the same pixels on every machine.
Constructors
Link copied to clipboard
constructor(runner: ProcessRunner = SystemProcessRunner, ffmpeg: String = "ffmpeg", ffprobe: String = "ffprobe")