Skip to main content

Video and Audio

Use <Video> and <Audio> from @remotion/media to add media to your composition. Both components support the same controls for timing, playback speed, volume and pitch.

Put video.mp4 and music.mp3 in your public folder to play a video with background music:

MyComposition.tsx
import {Audio, Video} from '@remotion/media'; import {AbsoluteFill, staticFile} from 'remotion'; export const MyComposition = () => ( <AbsoluteFill> <Video src={staticFile('video.mp4')} /> <Audio src={staticFile('music.mp3')} volume={0.2} loop /> </AbsoluteFill> );

The video's own audio is included. Add muted to <Video> to hear only the background music.

Shared controls​

Video techniques​

Audio techniques​

Formats and compatibility​

API reference​