Exporting Audio
If you export your video from Remotion, the audio is automatically included.
Additionally, this page shows you can export the audio only, or omit the audio, and how the export process works.
Audio Only
Exporting as mp3, aac and wav is supported:
Command Line
To render only the audio via CLI, specify an extension when exporting via CLI:
npx remotion render src/index.ts my-comp out/audio.mp3or use the --codec flag to automatically choose a good output file name:
npx remotion render src/index.ts my-comp --codec=mp3renderMedia()
To render only the audio via the server-side rendering APIs, use renderMedia() and set the codec to an audio codec.
render.jsawaitrenderMedia ({composition ,serveUrl :bundleLocation ,codec : 'mp3',outputLocation ,inputProps , });
renderMediaOnLambda()
To render only the audio via Lambda, use renderMediaOnLambda() and set the codec to an audio codec and imageFormat to none.
const {bucketName , renderId } = await renderMediaOnLambda ({
region : 'us-east-1',
functionName : 'remotion-render-bds9aab',
composition : 'MyVideo',
serveUrl : 'https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw',
inputProps : {},
codec : 'mp3',
imageFormat : 'none',
});renderMediaOnVercel()
To render only the audio via Vercel, use renderMediaOnVercel() and set the codec to an audio codec and imageFormat to none.
const {sandboxFilePath } = await renderMediaOnVercel ({
sandbox ,
compositionId : 'MyVideo',
inputProps : {},
codec : 'mp3',
imageFormat : 'none',
});Lambda CLI
To render via the Lambda CLI, use the npx remotion lambda render command and pass the --codec flag:
npx remotion lambda render --codec=mp3 https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw my-compExcluding audio
Command Line
Pass --muted to not export audio.
npx remotion render --mutedrenderMedia()
Pass muted: true to renderMedia() to mute a render.
render.jsawaitrenderMedia ({composition ,serveUrl :bundleLocation ,codec : 'h264',muted : true,outputLocation ,inputProps , });
renderMediaOnLambda()
Pass muted: true to renderMediaOnLambda() to mute the render.
const {bucketName , renderId } = await renderMediaOnLambda ({
region : 'us-east-1',
functionName : 'remotion-render-bds9aab',
composition : 'MyVideo',
serveUrl : 'https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw',
inputProps : {},
codec : 'h264',
muted : true,
});renderMediaOnVercel()
Pass muted: true to renderMediaOnVercel() to mute the render.
const {sandboxFilePath } = await renderMediaOnVercel ({
sandbox ,
compositionId : 'MyVideo',
inputProps : {},
codec : 'h264',
muted : true,
});Lambda CLI
Pass --muted to npx remotion lambda render to mute a render when using the Lambda Command Line.
npx remotion lambda render --muted https://remotionlambda-qg35eyp1s1.s3.eu-central-1.amazonaws.com/sites/bf2jrbfkw my-comp