remotion-dev/remotion





The issue has been solved
`npx remotion lambda render` does not derive the codec from the file extension #1248
JonnyBurger posted onGitHub
š This issue is part of our Hacktoberfest campaign! š Read more about Hacktoberfest here š This issue is currently assigned to @uragirii!
Problem
npx remotion lambda render --out-name=hi.mp3
or npx remotion lambda render ... out.mp3
should assume MP3 codec.
Acceptance criteria:
- Should handle
npx remotion lambda render [serve-url] [comp-name] --out-name=out.mp3
(higher priority) - Should handle
npx remotion lambda render [serve-url] [comp-name] out.mp3
- Should error when a conflicting setting is used
npx remotion lambda render [serve-url] [comp-name] --out-name=out.mp3 --codec=gif
, reuse code frompackages/renderer/src/validate-output-filename.ts
- Ideally: Add this validation to
renderMediaOnLambda()
as well to catch the same error when using Node.JS APIs
- Ideally: Add this validation to
- Should derive
.png
/.jpeg
codec when usingnpx remotion lambda still
(same logic as here: https://github.com/remotion-dev/remotion/blob/33668831b0335fcf1ff5580e53046dad97ff6273/packages/cli/src/still.ts#L42)- Ideally: Add this validation to
renderMediaOnLambda()
as well to catch the same error when using Node.JS APIs
- Ideally: Add this validation to