🎥 Make videos programmatically with React
remove dumpbrowserlogs from payload
Jonny Burgera99a0add23cd
diff --git a/packages/lambda-go/models.go b/packages/lambda-go/models.goindex fa3946b2af..6a5662e159 100644--- a/packages/lambda-go/models.go+++ b/packages/lambda-go/models.go@@ -33,7 +33,6 @@ type RemotionOptions struct {ForceWidth interface{} `json:"forceWidth"`BucketName interface{} `json:"bucketName"`AudioCodec interface{} `json:"audioCodec"`- DumpBrowserLogs bool `json:"dumpBrowserLogs"`ForceBucketName string `json:"forceBucketName"`Gl string `json:"gl"`}@@ -72,7 +71,6 @@ type renderInternalOptions struct {ForceWidth interface{} `json:"forceWidth"`BucketName interface{} `json:"bucketName"`AudioCodec interface{} `json:"audioCodec"`- DumpBrowserLogs bool `json:"dumpBrowserLogs"`ForceBucketName string `json:"forceBucketName,omitempty"`Gl *string `json:"gl,omitempty"`diff --git a/packages/lambda-php/src/RenderParams.php b/packages/lambda-php/src/RenderParams.phpindex d0002d4d60..0cf2b20cfe 100644--- a/packages/lambda-php/src/RenderParams.php+++ b/packages/lambda-php/src/RenderParams.php@@ -43,7 +43,6 @@ class RenderParamsprivate $forceHeight = null;private $forceWidth = null;private $audioCodec = null;- private $dumpBrowserLogs = false;private $rendererFunctionName = null;private $proResProfile = null;private $pixelFormat = null;@@ -77,7 +76,6 @@ class RenderParams? int $forceHeight = null,? int $forceWidth = null,? string $audioCodec = null,- ? bool $dumpBrowserLogs = false,? int $framesPerLambda = null,? string $rendererFunctionName = null,? string $proResProfile = null,@@ -111,7 +109,6 @@ class RenderParams$this->forceHeight = $forceHeight;$this->forceWidth = $forceWidth;$this->audioCodec = $audioCodec;- $this->dumpBrowserLogs = $dumpBrowserLogs;$this->framesPerLambda = $framesPerLambda;$this->rendererFunctionName = $rendererFunctionName;$this->proResProfile = $proResProfile;@@ -151,7 +148,6 @@ class RenderParams'forceWidth' => $this->getForceWidth(),'bucketName' => $this->getBucketName(),'audioCodec' => $this->getAudioCodec(),- 'dumpBrowserLogs' => $this->getDumpBrowserLogs(),'type' => 'start'];@@ -178,26 +174,6 @@ class RenderParamsreturn $parameters;}- /**- * Get the value of dumpBrowserLogs- */- public function getDumpBrowserLogs()- {- return $this->dumpBrowserLogs;- }-- /**- * Set the value of dumpBrowserLogs- *- * @return self- */- public function setDumpBrowserLogs($dumpBrowserLogs)- {- $this->dumpBrowserLogs = $dumpBrowserLogs;-- return $this;- }-/*** Get the value of inputProps*/diff --git a/packages/lambda/src/api/get-compositions-on-lambda.ts b/packages/lambda/src/api/get-compositions-on-lambda.tsindex 01443853be..cd7f5325f0 100644--- a/packages/lambda/src/api/get-compositions-on-lambda.ts+++ b/packages/lambda/src/api/get-compositions-on-lambda.ts@@ -1,4 +1,4 @@-import type {ChromiumOptions, LogLevel} from '@remotion/renderer';+import {RenderInternals, type ChromiumOptions, type LogLevel} from '@remotion/renderer';import type {AnyCompMetadata} from 'remotion';import {VERSION} from 'remotion/version';import type {AwsRegion} from '../client';@@ -65,11 +65,10 @@ export const getCompositionsOnLambda = async ({serveUrl,envVariables,inputProps: serializedInputProps,- logLevel: logLevel ?? 'info',+ logLevel: dumpBrowserLogs ? 'verbose' : logLevel ?? RenderInternals.getLogLevel(),timeoutInMilliseconds: timeoutInMilliseconds ?? 30000,version: VERSION,bucketName: bucketName ?? null,- dumpBrowserLogs: dumpBrowserLogs ?? false,},region,});diff --git a/packages/lambda/src/api/make-lambda-payload.ts b/packages/lambda/src/api/make-lambda-payload.tsindex 04f6924336..ba299a582f 100644--- a/packages/lambda/src/api/make-lambda-payload.ts+++ b/packages/lambda/src/api/make-lambda-payload.ts@@ -8,6 +8,7 @@ import {validateLambdaCodec} from '../shared/validate-lambda-codec';import {validateServeUrl} from '../shared/validate-serveurl';import type {GetRenderInput} from './get-render-progress';import type {RenderMediaOnLambdaInput} from './render-media-on-lambda';+import {RenderInternals} from '@remotion/renderer';export const makeLambdaRenderMediaPayload = async ({rendererFunctionName,@@ -82,7 +83,9 @@ export const makeLambdaRenderMediaPayload = async ({jpegQuality,maxRetries: maxRetries ?? 1,privacy: privacy ?? 'public',- logLevel: logLevel ?? 'info',+ logLevel: dumpBrowserLogs+ ? 'verbose'+ : logLevel ?? RenderInternals.getLogLevel(),frameRange: frameRange ?? null,outName: outName ?? null,timeoutInMilliseconds: timeoutInMilliseconds ?? 30000,@@ -102,7 +105,6 @@ export const makeLambdaRenderMediaPayload = async ({forceWidth: forceWidth ?? null,bucketName: bucketName ?? null,audioCodec: audioCodec ?? null,- dumpBrowserLogs: dumpBrowserLogs ?? false,type: LambdaRoutines.start,};};diff --git a/packages/lambda/src/api/render-still-on-lambda.ts b/packages/lambda/src/api/render-still-on-lambda.tsindex 068c0a50ef..2b9111420f 100644--- a/packages/lambda/src/api/render-still-on-lambda.ts+++ b/packages/lambda/src/api/render-still-on-lambda.ts@@ -1,7 +1,8 @@-import type {- ChromiumOptions,- LogLevel,- StillImageFormat,+import {+ RenderInternals,+ type ChromiumOptions,+ type LogLevel,+ type StillImageFormat,} from '@remotion/renderer';import {VERSION} from 'remotion/version';import type {AwsRegion} from '../pricing/aws-regions';@@ -121,7 +122,7 @@ export const renderStillOnLambda = async ({frame: frame ?? 0,privacy,attempt: 1,- logLevel: logLevel ?? 'info',+ logLevel: dumpBrowserLogs ? 'verbose' : logLevel ?? RenderInternals.getLogLevel(),outName: outName ?? null,timeoutInMilliseconds: timeoutInMilliseconds ?? 30000,chromiumOptions: chromiumOptions ?? {},@@ -131,7 +132,6 @@ export const renderStillOnLambda = async ({forceHeight: forceHeight ?? null,forceWidth: forceWidth ?? null,bucketName: forceBucketName ?? null,- dumpBrowserLogs: dumpBrowserLogs ?? false,},region,});diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.tsindex dadf58cca5..fa22c1eca7 100644--- a/packages/lambda/src/functions/launch.ts+++ b/packages/lambda/src/functions/launch.ts@@ -278,7 +278,6 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {launchFunctionConfig: {version: VERSION,},- dumpBrowserLogs: params.dumpBrowserLogs,};return payload;});diff --git a/packages/lambda/src/functions/start.ts b/packages/lambda/src/functions/start.tsindex d7259572bb..82212e0216 100644--- a/packages/lambda/src/functions/start.ts+++ b/packages/lambda/src/functions/start.ts@@ -93,7 +93,6 @@ export const startHandler = async (params: LambdaPayload, options: Options) => {forceWidth: params.forceWidth,rendererFunctionName: params.rendererFunctionName,audioCodec: params.audioCodec,- dumpBrowserLogs: params.dumpBrowserLogs,};await getLambdaClient(getCurrentRegionInFunction()).send(diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.tsindex 4e414c0e3c..5328b3099a 100644--- a/packages/lambda/src/shared/constants.ts+++ b/packages/lambda/src/shared/constants.ts@@ -249,7 +249,6 @@ export type LambdaStartPayload = {forceHeight: number | null;forceWidth: number | null;bucketName: string | null;- dumpBrowserLogs: boolean;};export type LambdaStatusPayload = {@@ -301,7 +300,6 @@ export type LambdaPayloads = {webhook: WebhookOption;forceHeight: number | null;forceWidth: number | null;- dumpBrowserLogs: boolean;};status: LambdaStatusPayload;renderer: {@@ -339,7 +337,6 @@ export type LambdaPayloads = {launchFunctionConfig: {version: string;};- dumpBrowserLogs: boolean;};still: {type: LambdaRoutines.still;@@ -363,7 +360,6 @@ export type LambdaPayloads = {forceHeight: number | null;forceWidth: number | null;bucketName: string | null;- dumpBrowserLogs: boolean;};compositions: {type: LambdaRoutines.compositions;@@ -375,7 +371,6 @@ export type LambdaPayloads = {timeoutInMilliseconds: number;serveUrl: string;bucketName: string | null;- dumpBrowserLogs: boolean;};};diff --git a/packages/lambda/src/test/integration/renders/gif.test.ts b/packages/lambda/src/test/integration/renders/gif.test.tsindex f10c392f73..32920c92c4 100644--- a/packages/lambda/src/test/integration/renders/gif.test.ts+++ b/packages/lambda/src/test/integration/renders/gif.test.ts@@ -73,7 +73,6 @@ test('Should make a distributed GIF', async () => {rendererFunctionName: null,bucketName: null,audioCodec: null,- dumpBrowserLogs: false,},extraContext)) as StreamedResponse;diff --git a/packages/lambda/src/test/integration/renders/old-version.test.ts b/packages/lambda/src/test/integration/renders/old-version.test.tsindex a993cf8e8c..4152924c4a 100644--- a/packages/lambda/src/test/integration/renders/old-version.test.ts+++ b/packages/lambda/src/test/integration/renders/old-version.test.ts@@ -66,7 +66,6 @@ test('Should fail when using an incompatible version', () => {rendererFunctionName: null,bucketName: null,audioCodec: null,- dumpBrowserLogs: false,},extraContext)diff --git a/packages/lambda/src/test/integration/renders/other-bucket.test.ts b/packages/lambda/src/test/integration/renders/other-bucket.test.tsindex 63030d60a8..0b0ed6174a 100644--- a/packages/lambda/src/test/integration/renders/other-bucket.test.ts+++ b/packages/lambda/src/test/integration/renders/other-bucket.test.ts@@ -76,7 +76,6 @@ test('Should be able to render to another bucket', async () => {rendererFunctionName: null,bucketName: null,audioCodec: null,- dumpBrowserLogs: false,},extraContext)) as StreamedResponse;diff --git a/packages/lambda/src/test/integration/renders/silent-audio.test.ts b/packages/lambda/src/test/integration/renders/silent-audio.test.tsindex 63ed34c26a..11e334f610 100644--- a/packages/lambda/src/test/integration/renders/silent-audio.test.ts+++ b/packages/lambda/src/test/integration/renders/silent-audio.test.ts@@ -73,7 +73,6 @@ test('Should add silent audio if there is no audio', async () => {rendererFunctionName: null,bucketName: null,audioCodec: null,- dumpBrowserLogs: false,},extraContext)) as StreamedResponse;diff --git a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts b/packages/lambda/src/test/integration/renders/transparent-webm.test.tsindex 2fc7d395d0..320fb343a9 100644--- a/packages/lambda/src/test/integration/renders/transparent-webm.test.ts+++ b/packages/lambda/src/test/integration/renders/transparent-webm.test.ts@@ -76,7 +76,6 @@ test('Should make a transparent video', async () => {rendererFunctionName: null,bucketName: null,audioCodec: null,- dumpBrowserLogs: false,},extraContext)) as StreamedResponse;diff --git a/packages/lambda/src/test/integration/webhooks.test.ts b/packages/lambda/src/test/integration/webhooks.test.tsindex 37c16b1a87..c46dd9ed21 100644--- a/packages/lambda/src/test/integration/webhooks.test.ts+++ b/packages/lambda/src/test/integration/webhooks.test.ts@@ -112,7 +112,6 @@ describe('Webhooks', () => {rendererFunctionName: null,bucketName: null,audioCodec: null,- dumpBrowserLogs: false,},extraContext);@@ -196,7 +195,6 @@ describe('Webhooks', () => {forceWidth: null,rendererFunctionName: null,audioCodec: null,- dumpBrowserLogs: false,},{...extraContext,