@remotion/lambda 4.0.231 → 4.0.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,10 +40,10 @@ const makeLambdaRenderMediaPayload = async ({ rendererFunctionName, frameRange,
40
40
  inputProps: serialized,
41
41
  codec: actualCodec,
42
42
  imageFormat,
43
- crf,
43
+ crf: crf !== null && crf !== void 0 ? crf : null,
44
44
  envVariables,
45
- pixelFormat,
46
- proResProfile,
45
+ pixelFormat: pixelFormat !== null && pixelFormat !== void 0 ? pixelFormat : null,
46
+ proResProfile: proResProfile !== null && proResProfile !== void 0 ? proResProfile : null,
47
47
  x264Preset,
48
48
  jpegQuality,
49
49
  maxRetries,
@@ -42,7 +42,14 @@ const innerHandler = async ({ params, responseWriter, context, providerSpecifics
42
42
  }
43
43
  try {
44
44
  await new Promise((resolve, reject) => {
45
- const onStream = (payload) => {
45
+ const onStream = async (payload) => {
46
+ if (!params.streamed) {
47
+ if (payload.type !== 'still-rendered') {
48
+ throw new Error('Expected still-rendered');
49
+ }
50
+ await responseWriter.write(Buffer.from(JSON.stringify(payload.payload)));
51
+ return;
52
+ }
46
53
  const message = (0, client_1.makeStreamPayload)({
47
54
  message: payload,
48
55
  });
@@ -124,7 +124,7 @@ const renderHandler = async ({ params, options, logs, onStream, providerSpecific
124
124
  });
125
125
  };
126
126
  await new Promise((resolve, reject) => {
127
- var _a, _b, _c, _d;
127
+ var _a, _b, _c, _d, _e;
128
128
  renderer_1.RenderInternals.internalRenderMedia({
129
129
  repro: false,
130
130
  composition: {
@@ -180,7 +180,7 @@ const renderHandler = async ({ params, options, logs, onStream, providerSpecific
180
180
  codec: chunkCodec,
181
181
  crf: (_c = params.crf) !== null && _c !== void 0 ? _c : null,
182
182
  pixelFormat: (_d = params.pixelFormat) !== null && _d !== void 0 ? _d : renderer_1.RenderInternals.DEFAULT_PIXEL_FORMAT,
183
- proResProfile: params.proResProfile,
183
+ proResProfile: (_e = params.proResProfile) !== null && _e !== void 0 ? _e : undefined,
184
184
  x264Preset: params.x264Preset,
185
185
  onDownload: (0, on_downloads_logger_1.onDownloadsHelper)(params.logLevel),
186
186
  overwrite: false,
@@ -8,7 +8,7 @@ const aws_clients_1 = require("../shared/aws-clients");
8
8
  const lifecycle_1 = require("./helpers/lifecycle");
9
9
  const overall_render_progress_1 = require("./helpers/overall-render-progress");
10
10
  const startHandler = async (params, options, providerSpecifics) => {
11
- var _a;
11
+ var _a, _b, _c, _d;
12
12
  if (params.type !== client_1.ServerlessRoutines.start) {
13
13
  throw new TypeError('Expected type start');
14
14
  }
@@ -53,10 +53,10 @@ const startHandler = async (params, options, providerSpecifics) => {
53
53
  renderId: options.renderId,
54
54
  codec: params.codec,
55
55
  imageFormat: params.imageFormat,
56
- crf: params.crf,
56
+ crf: (_b = params.crf) !== null && _b !== void 0 ? _b : null,
57
57
  envVariables: params.envVariables,
58
- pixelFormat: params.pixelFormat,
59
- proResProfile: params.proResProfile,
58
+ pixelFormat: (_c = params.pixelFormat) !== null && _c !== void 0 ? _c : null,
59
+ proResProfile: (_d = params.proResProfile) !== null && _d !== void 0 ? _d : null,
60
60
  x264Preset: params.x264Preset,
61
61
  jpegQuality: params.jpegQuality,
62
62
  maxRetries: params.maxRetries,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/lambda"
4
4
  },
5
5
  "name": "@remotion/lambda",
6
- "version": "4.0.231",
6
+ "version": "4.0.233",
7
7
  "description": "Render Remotion videos on AWS Lambda",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -22,13 +22,13 @@
22
22
  "@aws-sdk/s3-request-presigner": "3.645.0",
23
23
  "mime-types": "2.1.34",
24
24
  "zod": "3.22.3",
25
- "@remotion/bundler": "4.0.231",
26
- "@remotion/cli": "4.0.231",
27
- "@remotion/studio-server": "4.0.231",
28
- "@remotion/renderer": "4.0.231",
29
- "@remotion/serverless": "4.0.231",
30
- "remotion": "4.0.231",
31
- "@remotion/streaming": "4.0.231"
25
+ "@remotion/bundler": "4.0.233",
26
+ "@remotion/renderer": "4.0.233",
27
+ "@remotion/studio-server": "4.0.233",
28
+ "@remotion/cli": "4.0.233",
29
+ "@remotion/serverless": "4.0.233",
30
+ "remotion": "4.0.233",
31
+ "@remotion/streaming": "4.0.233"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/mime-types": "2.1.1",
@@ -38,12 +38,12 @@
38
38
  "vitest": "0.31.1",
39
39
  "zip-lib": "^0.7.2",
40
40
  "eslint": "9.14.0",
41
- "@remotion/eslint-config-internal": "4.0.231",
42
- "@remotion/compositor-linux-arm64-gnu": "4.0.231",
43
- "@remotion/bundler": "4.0.231"
41
+ "@remotion/bundler": "4.0.233",
42
+ "@remotion/compositor-linux-arm64-gnu": "4.0.233",
43
+ "@remotion/eslint-config-internal": "4.0.233"
44
44
  },
45
45
  "peerDependencies": {
46
- "@remotion/bundler": "4.0.231"
46
+ "@remotion/bundler": "4.0.233"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
Binary file