🎥 Make videos programmatically with React
new format
Jonny Burgerae5e4d78cffb
diff --git a/packages/renderer/src/stitch-frames-to-video.ts b/packages/renderer/src/stitch-frames-to-video.tsindex fc736989cc..908c1dc6f0 100644--- a/packages/renderer/src/stitch-frames-to-video.ts+++ b/packages/renderer/src/stitch-frames-to-video.ts@@ -239,9 +239,11 @@ export const spawnFfmpeg = async ();}+ // Explanation: https://github.com/remotion-dev/remotion/issues/1647const resolvedAudioCodec = options.internalOptions?.preferLossless- ? getDefaultAudioCodec(codec, true)- : options.audioCodec ?? getDefaultAudioCodec(codec, false);+ ? getDefaultAudioCodec({codec, preferLossless: true})+ : options.audioCodec ??+ getDefaultAudioCodec({codec, preferLossless: false});if (options.verbose) {console.log(