Enforce Audio Track
JavaScript API
Defaults to false. If true, include a silent audio track when the render contains no audio. If false, omit the audio track when no audio is present. Audio-only exports and separateAudioTo still produce an audio file, even when silent.
Set this to true for chunks that will later be concatenated, because other chunks may contain audio. muted: true takes precedence.
Command line
Defaults to false. If true, include a silent audio track when the render contains no audio. If false, omit the audio track when no audio is present. Audio-only exports and --separate-audio-to still produce an audio file, even when silent.
Pass --enforce-audio-track for chunks that will later be concatenated, because other chunks may contain audio. --muted takes precedence.
CLI flag
--enforce-audio-trackThe following CLI commands accept this option:
APIs that have this option
The following APIs accept this option:
Config file
remotion.config.tsConfig .setEnforceAudioTrack (true);