← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
class ClipImporter(ffmpeg: Ffmpeg, repository: ProfileRepository, profileId: String)

Saves a trimmed video, or a photo with a photo of the empty wall, as a clip of the profile profileId: the files join the profile's sources, the clip joins profile.json, and its frames are extracted at the working height, so a bad range or a file ffmpeg cannot decode shows up now rather than at the first render.

Link copied to clipboard
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.

Link copied to clipboard

Brings a video or a photo into a profile's sources/ folder, which holds the originals Roto never modifies. The file is copied, whole or not at all; the original stays where it was. A file already in the folder, or an identical copy of one, is not copied again; a different file of the same name gets a numbered name, so nothing there is ever replaced.

Link copied to clipboard
class Trim(info: VideoInfo)

The rules of trimming one video, whatever draws the handles: they land on frame starts, the range never leaves the video, and it always holds at least one frame, so the start cannot pass the end.