🎥 Make videos programmatically with React
extra params
Jonny Burger77f94dda5751
diff --git a/packages/docs/docs/lambda/cli/render.md b/packages/docs/docs/lambda/cli/render.mdindex 012887c6f8..046774ff58 100644--- a/packages/docs/docs/lambda/cli/render.md+++ b/packages/docs/docs/lambda/cli/render.md@@ -122,7 +122,11 @@ The `framesPerLambda` parameter cannot result in more than 200 functions being s### `--image-format`-[`jpeg` or `png` - JPEG is faster, but doesn't support transparency.](/docs/config#setimageformat) The default image format is `jpeg` since v1.1.+[`jpeg` or `png` - JPEG is faster, but doesn't support transparency.](/docs/config#setimageformat) The default image format is `jpeg`.++### `--scale`++Scales the output frames by the factor you pass in. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of `1.5`. Vector elements like fonts and HTML markups will be rendered with extra details.### `--env-file`diff --git a/packages/docs/docs/lambda/cli/still.md b/packages/docs/docs/lambda/cli/still.mdindex 8f1451f002..535d70da33 100644--- a/packages/docs/docs/lambda/cli/still.md+++ b/packages/docs/docs/lambda/cli/still.md@@ -57,6 +57,10 @@ The [AWS region](/docs/lambda/region-selection) to select. Both project and func[React Props to pass to the root component of your video.](/docs/parametrized-rendering#passing-input-props-in-the-cli) Must be a serialized JSON string (`--props='{"hello": "world"}'`) or a path to a JSON file (`./path/to/props.json`).+### `--scale`++Scales the output frames by the factor you pass in. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of `1.5`. Vector elements like fonts and HTML markups will be rendered with extra details.+### `--log`Log level to be used inside the Lambda function. Also, if you set it to `verbose`, a link to CloudWatch will be printed where you can inspect logs.diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex 25cf83e5f5..4d424af3b3 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -64,6 +64,7 @@ export const renderCommand = async (args: string[]) => {proResProfile,puppeteerTimeout,quality,+ scale,} = await CliInternals.getCliOptions({type: 'series',isLambda: true,@@ -78,6 +79,7 @@ export const renderCommand = async (args: string[]) => {const privacy = parsedLambdaCli.privacy ?? DEFAULT_OUTPUT_PRIVACY;validatePrivacy(privacy);+const res = await renderMediaOnLambda({functionName,serveUrl,@@ -100,6 +102,7 @@ export const renderCommand = async (args: string[]) => {outName: parsedLambdaCli['out-name'],timeoutInMilliseconds: puppeteerTimeout,chromiumOptions,+ scale,});const totalSteps = outName ? 5 : 4;diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex a277a0f91b..987705d50d 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -57,6 +57,7 @@ export const stillCommand = async (args: string[]) => {puppeteerTimeout,quality,stillFrame,+ scale,} = await CliInternals.getCliOptions({type: 'still',isLambda: true,@@ -86,6 +87,7 @@ export const stillCommand = async (args: string[]) => {outName: parsedLambdaCli['out-name'],chromiumOptions,timeoutInMilliseconds: puppeteerTimeout,+ scale,});Log.verbose(