@remotion/serverless 4.0.447 → 4.0.448
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.
- package/dist/concat-videos.d.ts +2 -1
- package/dist/concat-videos.js +2 -1
- package/dist/handlers/launch.js +2 -0
- package/dist/handlers/renderer.js +2 -0
- package/dist/handlers/start.js +2 -1
- package/dist/handlers/still.js +1 -0
- package/dist/merge-chunks.d.ts +1 -0
- package/dist/merge-chunks.js +1 -0
- package/package.json +6 -6
package/dist/concat-videos.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CancelSignal, CombineChunksOnProgress, FrameRange } from '@remotion/renderer';
|
|
2
2
|
import type { CloudProvider } from '@remotion/serverless-client';
|
|
3
3
|
import type { InsideFunctionSpecifics } from './provider-implementation';
|
|
4
|
-
export declare const concatVideos: <Provider extends CloudProvider<string, Record<string, unknown>, Record<string, unknown>, string, object>>({ onProgress, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, metadata, insideFunctionSpecifics, everyNthFrame, frameRange, compositionDurationInFrames, }: {
|
|
4
|
+
export declare const concatVideos: <Provider extends CloudProvider<string, Record<string, unknown>, Record<string, unknown>, string, object>>({ onProgress, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, metadata, insideFunctionSpecifics, everyNthFrame, frameRange, compositionDurationInFrames, sampleRate, }: {
|
|
5
5
|
onProgress: CombineChunksOnProgress;
|
|
6
6
|
codec: "aac" | "gif" | "h264" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
7
7
|
fps: number;
|
|
@@ -20,6 +20,7 @@ export declare const concatVideos: <Provider extends CloudProvider<string, Recor
|
|
|
20
20
|
compositionDurationInFrames: number;
|
|
21
21
|
everyNthFrame: number;
|
|
22
22
|
frameRange: FrameRange | null;
|
|
23
|
+
sampleRate: number;
|
|
23
24
|
}) => Promise<{
|
|
24
25
|
outfile: string;
|
|
25
26
|
cleanupChunksProm: Promise<void>;
|
package/dist/concat-videos.js
CHANGED
|
@@ -8,7 +8,7 @@ const node_fs_1 = __importDefault(require("node:fs"));
|
|
|
8
8
|
const node_path_1 = require("node:path");
|
|
9
9
|
const renderer_1 = require("@remotion/renderer");
|
|
10
10
|
const serverless_client_1 = require("@remotion/serverless-client");
|
|
11
|
-
const concatVideos = async ({ onProgress, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, metadata, insideFunctionSpecifics, everyNthFrame, frameRange, compositionDurationInFrames, }) => {
|
|
11
|
+
const concatVideos = async ({ onProgress, codec, fps, numberOfGifLoops, files, outdir, audioCodec, audioBitrate, logLevel, framesPerLambda, binariesDirectory, cancelSignal, preferLossless, metadata, insideFunctionSpecifics, everyNthFrame, frameRange, compositionDurationInFrames, sampleRate, }) => {
|
|
12
12
|
const outfile = (0, node_path_1.join)(renderer_1.RenderInternals.tmpDir(serverless_client_1.REMOTION_CONCATENATED_TOKEN), `concat.${renderer_1.RenderInternals.getFileExtensionFromCodec(codec, audioCodec)}`);
|
|
13
13
|
const combine = insideFunctionSpecifics.timer('Combine chunks', logLevel);
|
|
14
14
|
const audioFiles = files.filter((f) => f.endsWith('audio'));
|
|
@@ -33,6 +33,7 @@ const concatVideos = async ({ onProgress, codec, fps, numberOfGifLoops, files, o
|
|
|
33
33
|
compositionDurationInFrames,
|
|
34
34
|
everyNthFrame,
|
|
35
35
|
frameRange,
|
|
36
|
+
sampleRate,
|
|
36
37
|
});
|
|
37
38
|
combine.end();
|
|
38
39
|
const cleanupChunksProm = node_fs_1.default.promises.rm(outdir, {
|
package/dist/handlers/launch.js
CHANGED
|
@@ -215,6 +215,7 @@ const innerLaunchHandler = async ({ params, options, overallProgress, registerCl
|
|
|
215
215
|
metadata: params.metadata,
|
|
216
216
|
offthreadVideoThreads: params.offthreadVideoThreads,
|
|
217
217
|
mediaCacheSizeInBytes: params.mediaCacheSizeInBytes,
|
|
218
|
+
sampleRate: params.sampleRate,
|
|
218
219
|
};
|
|
219
220
|
return payload;
|
|
220
221
|
});
|
|
@@ -397,6 +398,7 @@ const innerLaunchHandler = async ({ params, options, overallProgress, registerCl
|
|
|
397
398
|
frameRange: params.frameRange,
|
|
398
399
|
storageClass: params.storageClass,
|
|
399
400
|
requestHandler: null,
|
|
401
|
+
sampleRate: params.sampleRate,
|
|
400
402
|
});
|
|
401
403
|
return postRenderData;
|
|
402
404
|
};
|
|
@@ -142,6 +142,7 @@ const renderHandler = async ({ params, options, logs, onStream, providerSpecific
|
|
|
142
142
|
defaultPixelFormat: null,
|
|
143
143
|
defaultProResProfile: null,
|
|
144
144
|
defaultVideoImageFormat: null,
|
|
145
|
+
defaultSampleRate: null,
|
|
145
146
|
},
|
|
146
147
|
imageFormat: params.imageFormat,
|
|
147
148
|
serializedInputPropsWithCustomSchema,
|
|
@@ -233,6 +234,7 @@ const renderHandler = async ({ params, options, logs, onStream, providerSpecific
|
|
|
233
234
|
// Not doing telemetry for the individual chunks
|
|
234
235
|
licenseKey: null,
|
|
235
236
|
isProduction: false,
|
|
237
|
+
sampleRate: params.sampleRate,
|
|
236
238
|
})
|
|
237
239
|
.then(({ slowestFrames }) => {
|
|
238
240
|
renderer_1.RenderInternals.Log.verbose({ indent: false, logLevel: params.logLevel }, `Slowest frames:`);
|
package/dist/handlers/start.js
CHANGED
|
@@ -5,7 +5,7 @@ const serverless_client_1 = require("@remotion/serverless-client");
|
|
|
5
5
|
const overall_render_progress_1 = require("../overall-render-progress");
|
|
6
6
|
const check_version_mismatch_1 = require("./check-version-mismatch");
|
|
7
7
|
const startHandler = async ({ params, options, providerSpecifics, insideFunctionSpecifics, }) => {
|
|
8
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9
9
|
if (params.type !== serverless_client_1.ServerlessRoutines.start) {
|
|
10
10
|
throw new TypeError('Expected type start');
|
|
11
11
|
}
|
|
@@ -97,6 +97,7 @@ const startHandler = async ({ params, options, providerSpecifics, insideFunction
|
|
|
97
97
|
storageClass: params.storageClass,
|
|
98
98
|
mediaCacheSizeInBytes: params.mediaCacheSizeInBytes,
|
|
99
99
|
isProduction: (_g = params.isProduction) !== null && _g !== void 0 ? _g : true,
|
|
100
|
+
sampleRate: (_h = params.sampleRate) !== null && _h !== void 0 ? _h : 48000,
|
|
100
101
|
};
|
|
101
102
|
await providerSpecifics.callFunctionAsync({
|
|
102
103
|
functionName: insideFunctionSpecifics.getCurrentFunctionName(),
|
package/dist/handlers/still.js
CHANGED
|
@@ -91,6 +91,7 @@ const innerStillHandler = async ({ params, expectedBucketOwner, renderId, onStre
|
|
|
91
91
|
offthreadVideoCacheSizeInBytes: params.offthreadVideoCacheSizeInBytes,
|
|
92
92
|
binariesDirectory: null,
|
|
93
93
|
forceIPv4: false,
|
|
94
|
+
sampleRate: 48000,
|
|
94
95
|
}, {
|
|
95
96
|
onDownload: () => undefined,
|
|
96
97
|
});
|
package/dist/merge-chunks.d.ts
CHANGED
|
@@ -38,4 +38,5 @@ export declare const mergeChunksAndFinishRender: <Provider extends CloudProvider
|
|
|
38
38
|
frameRange: FrameRange | null;
|
|
39
39
|
storageClass: Provider["storageClass"] | null;
|
|
40
40
|
requestHandler: Provider["requestHandler"] | null;
|
|
41
|
+
sampleRate: number;
|
|
41
42
|
}) => Promise<PostRenderData<Provider>>;
|
package/dist/merge-chunks.js
CHANGED
|
@@ -39,6 +39,7 @@ const mergeChunksAndFinishRender = async (options) => {
|
|
|
39
39
|
compositionDurationInFrames: options.numberOfFrames,
|
|
40
40
|
everyNthFrame: options.everyNthFrame,
|
|
41
41
|
frameRange: options.frameRange,
|
|
42
|
+
sampleRate: options.sampleRate,
|
|
42
43
|
});
|
|
43
44
|
const encodingStop = Date.now();
|
|
44
45
|
options.overallProgress.setTimeToCombine(encodingStop - encodingStart);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/serverless"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/serverless",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.448",
|
|
7
7
|
"description": "A runtime for distributed rendering",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@remotion/renderer": "4.0.
|
|
28
|
-
"@remotion/bundler": "4.0.
|
|
29
|
-
"@remotion/licensing": "4.0.
|
|
30
|
-
"@remotion/serverless-client": "4.0.
|
|
27
|
+
"@remotion/renderer": "4.0.448",
|
|
28
|
+
"@remotion/bundler": "4.0.448",
|
|
29
|
+
"@remotion/licensing": "4.0.448",
|
|
30
|
+
"@remotion/serverless-client": "4.0.448"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
33
|
+
"@remotion/eslint-config-internal": "4.0.448",
|
|
34
34
|
"eslint": "9.19.0",
|
|
35
35
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
36
36
|
},
|