← back to roto on ba3a.dev

FilmstripBuilder

class FilmstripBuilder(ffmpeg: Ffmpeg, cache: StageCache)

The filmstrip stage: evenly spread thumbnails of a whole video, for trimming it. Cached under the source's content, the count, the height and the ffmpeg version, so opening a video again decodes nothing.

Constructors

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

Types

Link copied to clipboard
object Companion

The stage name, defaults and the thumbnail layout.

Functions

Link copied to clipboard
fun strip(source: Path, durationMs: Long, count: Int = FRAMES, height: Int = THUMBNAIL_HEIGHT): StageOutput<List<Raster>>

count thumbnails of source, which lasts durationMs, each height pixels tall.