← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
class Ffmpeg(runner: ProcessRunner = SystemProcessRunner, ffmpeg: String = "ffmpeg", ffprobe: String = "ffprobe")

Drives the ffmpeg and ffprobe programs on PATH: Roto never decodes video itself.

Link copied to clipboard
class FrameExtractor(ffmpeg: Ffmpeg, cache: StageCache)

The first pipeline stage: a range of a source video, or a photo, as frames at a working height. The frames are cached under the source's content, the range and frame rate if any, the height and the ffmpeg version, so trimming again or upgrading ffmpeg extracts again and nothing else does.

Link copied to clipboard
data class FrameRate(val numerator: Int, val denominator: Int)

Frames per second as the exact fraction numerator / denominator — 30000/1001 for NTSC-rate phone video — so frame times are computed without floating-point drift.

Link copied to clipboard
data class VideoInfo(val width: Int, val height: Int, val durationMs: Long, val frameRate: FrameRate, val rotation: Int)

What ffprobe reports about a video's first video stream.

Link copied to clipboard
class VideoToolException(message: String, cause: Throwable? = null) : IOException

ffmpeg or ffprobe could not be started, failed, or produced output Roto cannot use.