Video Gen Loader

The Image Gen Loader for clips: the same latent and grain, with detections tracking through the shot, resolving into a playing video.

Your video will appear here

In use

The Video Studio's clip while it generates, starting from the first keyframe, until the player takes over.

Lumen
CreateEditVideo
240 credits

Your video will appear here

0s
40 credits

Installation

Installs Image Gen Loader too: the layers are shared, so any of them composes into a video loader.

pnpm dlx shadcn@latest add https://mgp.paukraft.com/r/video-gen-loader.json

VideoGenLoader

PropTypeDefault
status"idle" | "queued" | "generating" | "ready" | "moderated" | "error"

Where the generation is. A "ready" clip that fails to load shows as "error".

—
progressnumber

0–1. Omit while the backend reports none.

—
srcstring

Final clip, revealed once status is "ready" and its first frame loads.

—
altstring

Describe the clip, e.g. with its prompt.

—
aspectRationumber | string

A number, CSS "16 / 9", or the API's "16:9".

1
sourcestring

Image worked from, e.g. the first keyframe of an image-to-video run.

—
error / onRetryReactNode / () => void

Failure message, and a retry action except when moderated.

—
actionsReactNode

Shown on the revealed clip, top right.

—

Parts

PropTypeDefault
VideoGenLoaderRootImageGenLoaderRoot props

The frame, with video announcements and playback state.

—
VideoGenLoaderVideo<video> props

The clip: muted, looping, paused off screen.

—
VideoGenLoaderControls<div> props

Play and sound toggles, bottom left.

—
VideoGenLoaderIdle / Erroras in Image Gen Loader

Worded for video.

—
useVideoGenLoader() => { video, playing, muted, currentTime, duration, … }

The clip and its playback, as useVideoPlayer, for your own controls.

—