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: audio, media, trim, volume, speed, loop, pitch, mute, sound, sfx
Using audio in Remotion
Prerequisites
First, the @remotion/media package needs to be installed. If it is not installed, use the following command:
Importing Audio
Use <Audio> from @remotion/media to add audio to your composition.
Remote URLs are also supported:
By default, audio plays from the start, at full volume and full length.
Multiple audio tracks can be layered by adding multiple <Audio> components.
Trimming
Use trimBefore to skip the beginning of the audio and durationInFrames to end it early. Values are in frames.
The audio still starts playing at the beginning of the composition - only the specified portion is played.
Delaying
Set from directly on <Audio> to delay when it starts:
The audio will start playing after 1 second.
Volume
Set a static volume (0 to 1):
Use useCurrentFrame() and interpolate() for keyframed volume:
With Studio interactivity enabled, these keyframes can be edited and are shown as a volume curve in the timeline.
Muting
Use muted to silence the audio. It can be set dynamically:
Speed
Use playbackRate to change the playback speed:
Reverse playback is not supported.
Looping
Use loop to loop the audio indefinitely:
Put name, from, loop, and volume directly on <Audio>.
Pitch
Use toneFrequency to adjust the pitch without affecting speed. Values range from 0.01 to 2:
Pitch shifting only works during server-side rendering, not in the Remotion Studio preview or in the <Player />.