makepad/libs/flow/recipes/templates/image-to-video.splash

25 lines
669 B
Text

use mod.flow.*
/** Motion and camera direction for the source image. */
let prompt = Input{ type: @text default: "a slow push forward with drifting mist" at: vec2(40, 80) }
/** The first frame of the clip. */
let image = Input{ type: @image at: vec2(40, 240) }
let video = Video{
prompt: prompt.text()
image: image.image()
frames: 39
steps: 30
audio: true
at: vec2(360, 160)
}
/** The animated source image. */
let movie = Output{ type: @video value: video.video() at: vec2(680, 160) }
Flow{
label: "Image to video"
brief: "Animates a supplied keyframe according to a short motion direction."
prompt, image, video, movie
}