remotion-markup
Structure Remotion scenes with markup patterns for layout, typography, and reusable video UI.
Install
npx skills add https://github.com/remotion-dev/skills --skill remotion-markup- metadata
- tags: calculateMetadata, duration, dimensions, props, dynamic
Using calculateMetadata
Use calculateMetadata on a <Composition> to dynamically set duration, dimensions, and transform props before rendering.
Use it when metadata depends on input props, fetched data, or asset metadata.
For static dimensions, duration, FPS, and initial props, inline the values on <Composition> instead.
Setting duration based on a video
Use the getVideoDuration (get-video-duration.md in the remotion-multimedia skill) and getVideoDimensions (get-video-dimensions.md in the remotion-multimedia skill) skills to get the video duration and dimensions:
Matching dimensions of a video
Use the getVideoDimensions (get-video-dimensions.md in the remotion-multimedia skill) skill to get the video dimensions:
Setting duration based on multiple videos
Setting a default outName
Set the default output filename based on props:
Transforming props
Fetch data or transform props before rendering:
The abortSignal cancels stale requests when props change in the Studio.
Return value
All fields are optional. Returned values override the <Composition> props:
durationInFrames: Number of frameswidth: Composition width in pixelsheight: Composition height in pixelsfps: Frames per secondprops: Transformed props passed to the componentdefaultOutName: Default output filenamedefaultCodec: Default codec for rendering