← back to roto on ba3a.dev

ClipImporter

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.

A clip already filmed for that action and facing is recut or reshot, keeping its settings.

Constructors

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

Types

Link copied to clipboard
data class Slot(val action: String, val facing: String)

The action and facing a clip is filed under, from the project's lists.

Functions

Link copied to clipboard
fun save(file: Path, slot: ClipImporter.Slot, trim: TimeRange): Clip

Saves the video file trimmed to trim as the clip for slot, recutting one already there.

Link copied to clipboard
fun saveStill(file: Path, wall: Path, slot: ClipImporter.Slot): Clip

Saves the photo file as a still against the photo of the empty wall, which must line up with it.

Link copied to clipboard

The photo of the empty wall brought into the sources as clip's plate, which must line up with it.