Skip to content

🎥 Make videos programmatically with React

derive codec from file extension for `remotion lambda`

Apoorv Kansalb06ddbfc88fb
diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.ts
index f349c43c58..5471e788bb 100644
--- a/packages/cli/src/get-cli-options.ts
+++ b/packages/cli/src/get-cli-options.ts
@@ -34,9 +34,9 @@ const getFinalCodec = async (options: {isLambda: boolean}) => {
const codec = getFinalOutputCodec({
codec: userCodec,
- fileExtension: options.isLambda
- ? null
- : RenderInternals.getExtensionOfFilename(getUserPassedOutputLocation()),
+ fileExtension: RenderInternals.getExtensionOfFilename(
+ getUserPassedOutputLocation()
+ ),
emitWarning: true,
});
const ffmpegExecutable = ConfigInternals.getCustomFfmpegExecutable();