@remotion/renderer 4.0.243 → 4.0.245
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/LICENSE.md +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/ensure-browser.d.ts +0 -6
- package/dist/ensure-browser.js +3 -5
- package/dist/extract-audio.d.ts +0 -9
- package/dist/extract-audio.js +3 -8
- package/dist/get-codec-name.d.ts +1 -1
- package/dist/get-compositions.d.ts +0 -7
- package/dist/get-compositions.js +3 -6
- package/dist/get-silent-parts.d.ts +0 -12
- package/dist/get-silent-parts.js +3 -11
- package/dist/index.d.ts +37 -37
- package/dist/make-cancel-signal.d.ts +0 -4
- package/dist/make-cancel-signal.js +1 -1
- package/dist/open-browser.d.ts +0 -4
- package/dist/open-browser.js +2 -2
- package/dist/options/index.d.ts +2 -2
- package/dist/options/metadata.d.ts +1 -1
- package/dist/options/webhook-custom-data.d.ts +1 -1
- package/dist/render-frames.d.ts +0 -6
- package/dist/render-frames.js +1 -3
- package/dist/render-media.d.ts +0 -7
- package/dist/render-media.js +3 -6
- package/dist/render-still.d.ts +0 -6
- package/dist/render-still.js +2 -4
- package/dist/select-composition.d.ts +0 -4
- package/dist/select-composition.js +2 -2
- package/dist/stitch-frames-to-video.d.ts +0 -6
- package/dist/stitch-frames-to-video.js +2 -4
- package/package.json +12 -12
package/LICENSE.md
CHANGED
package/dist/client.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ export declare const BrowserSafeApis: {
|
|
|
394
394
|
webhookCustomDataOption: {
|
|
395
395
|
name: string;
|
|
396
396
|
cliFlag: "webhook-custom-data";
|
|
397
|
-
description: (type: "
|
|
397
|
+
description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
398
398
|
ssrName: "customData";
|
|
399
399
|
docLink: string;
|
|
400
400
|
type: Record<string, unknown> | null;
|
|
@@ -807,7 +807,7 @@ export declare const BrowserSafeApis: {
|
|
|
807
807
|
metadataOption: {
|
|
808
808
|
name: string;
|
|
809
809
|
cliFlag: "metadata";
|
|
810
|
-
description: (mode: "
|
|
810
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
811
811
|
docLink: string;
|
|
812
812
|
type: import("./options/metadata").Metadata;
|
|
813
813
|
getValue: ({ commandLine }: {
|
package/dist/ensure-browser.d.ts
CHANGED
|
@@ -21,11 +21,5 @@ export type EnsureBrowserOptions = Partial<{
|
|
|
21
21
|
browserExecutable: BrowserExecutable;
|
|
22
22
|
} & ToOptions<typeof BrowserSafeApis.optionsMap.ensureBrowser>>;
|
|
23
23
|
export declare const internalEnsureBrowser: (options: InternalEnsureBrowserOptions) => Promise<BrowserStatus>;
|
|
24
|
-
/**
|
|
25
|
-
* Ensures a browser is locally installed so a Remotion render can be executed. This function manages the browser's download or validates existing browser paths.
|
|
26
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/ensure-browser)
|
|
27
|
-
* @param {EnsureBrowserOptions} [options] Configuration options which may include a `browserExecutable` path, `logLevel` settings, and `onBrowserDownload` function to manage download specifics and progression.
|
|
28
|
-
* @returns {Promise<void>} A promise that resolves when the browser is prepared with no explicit return value.
|
|
29
|
-
*/
|
|
30
24
|
export declare const ensureBrowser: (options?: EnsureBrowserOptions) => Promise<BrowserStatus>;
|
|
31
25
|
export {};
|
package/dist/ensure-browser.js
CHANGED
|
@@ -40,11 +40,9 @@ const getBrowserStatus = (browserExecutable) => {
|
|
|
40
40
|
}
|
|
41
41
|
return { type: 'no-browser' };
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
* Ensures a browser is locally installed so a Remotion render can be executed.
|
|
45
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/ensure-browser)
|
|
46
|
-
* @param {EnsureBrowserOptions} [options] Configuration options which may include a `browserExecutable` path, `logLevel` settings, and `onBrowserDownload` function to manage download specifics and progression.
|
|
47
|
-
* @returns {Promise<void>} A promise that resolves when the browser is prepared with no explicit return value.
|
|
43
|
+
/*
|
|
44
|
+
* @description Ensures a browser is locally installed so a Remotion render can be executed.
|
|
45
|
+
* @see [Documentation](https://www.remotion.dev/docs/renderer/ensure-browser)
|
|
48
46
|
*/
|
|
49
47
|
const ensureBrowser = (options) => {
|
|
50
48
|
var _a, _b, _c, _d;
|
package/dist/extract-audio.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import type { LogLevel } from './log-level';
|
|
2
|
-
/**
|
|
3
|
-
* @description Extracts the audio from a video source and saves it at the specified output path without changing the audio format.
|
|
4
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/extract-audio)
|
|
5
|
-
* @param options.videoSource The path to the video source from which the audio will be extracted.
|
|
6
|
-
* @param options.audioOutput The path where the extracted audio will be saved. Must use the correct file extension which matches the audio codec.
|
|
7
|
-
* @param options.logLevel The level of logging desired (optional).
|
|
8
|
-
* @param options.binariesDirectory The directory for binary dependencies (optional).
|
|
9
|
-
* @returns {Promise<void>} Resolves once the audio extraction is complete.
|
|
10
|
-
*/
|
|
11
2
|
export declare const extractAudio: (options: {
|
|
12
3
|
videoSource: string;
|
|
13
4
|
audioOutput: string;
|
package/dist/extract-audio.js
CHANGED
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractAudio = void 0;
|
|
4
4
|
const compositor_1 = require("./compositor/compositor");
|
|
5
|
-
|
|
6
|
-
* @description Extracts the audio from a video source and saves it
|
|
7
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/extract-audio)
|
|
8
|
-
* @param options.videoSource The path to the video source from which the audio will be extracted.
|
|
9
|
-
* @param options.audioOutput The path where the extracted audio will be saved. Must use the correct file extension which matches the audio codec.
|
|
10
|
-
* @param options.logLevel The level of logging desired (optional).
|
|
11
|
-
* @param options.binariesDirectory The directory for binary dependencies (optional).
|
|
12
|
-
* @returns {Promise<void>} Resolves once the audio extraction is complete.
|
|
5
|
+
/*
|
|
6
|
+
* @description Extracts the audio from a video source and saves it to the specified output path. It does not convert the audio to a different format.
|
|
7
|
+
* @see [Documentation](https://www.remotion.dev/docs/renderer/extract-audio)
|
|
13
8
|
*/
|
|
14
9
|
const extractAudio = async (options) => {
|
|
15
10
|
var _a, _b;
|
package/dist/get-codec-name.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const hasSpecifiedUnsupportedHardwareQualifySettings: ({ encoding
|
|
|
9
9
|
encodingMaxRate: string | null;
|
|
10
10
|
encodingBufferSize: string | null;
|
|
11
11
|
crf: unknown;
|
|
12
|
-
}) => "
|
|
12
|
+
}) => "encodingMaxRate" | "encodingBufferSize" | "crf" | null;
|
|
13
13
|
export declare const getCodecName: ({ codec, encodingMaxRate, encodingBufferSize, crf, hardwareAcceleration, logLevel, indent, }: {
|
|
14
14
|
codec: Codec;
|
|
15
15
|
hardwareAcceleration: HardwareAccelerationOption;
|
|
@@ -28,12 +28,5 @@ export type GetCompositionsOptions = RequiredInputPropsInV5 & {
|
|
|
28
28
|
port?: number | null;
|
|
29
29
|
} & Partial<ToOptions<typeof optionsMap.getCompositions>>;
|
|
30
30
|
export declare const internalGetCompositions: (args_0: InternalGetCompositionsOptions) => Promise<VideoConfig[]>;
|
|
31
|
-
/**
|
|
32
|
-
* @description Gets the compositions defined in a Remotion project based on a Webpack bundle.
|
|
33
|
-
* @see [Documentation](https://remotion.dev/docs/get-compositions)
|
|
34
|
-
* @param serveUrlOrWebpackUrl URL pointing to the Remotion Bundle.
|
|
35
|
-
* @param {GetCompositionsOptions} [config] Optional configurations for getting composition details.
|
|
36
|
-
* @returns {Promise<VideoConfig[]>} Returns a promise that resolves to an array of available compositions.
|
|
37
|
-
*/
|
|
38
31
|
export declare const getCompositions: (serveUrlOrWebpackUrl: string, config?: GetCompositionsOptions) => Promise<VideoConfig[]>;
|
|
39
32
|
export {};
|
package/dist/get-compositions.js
CHANGED
|
@@ -146,12 +146,9 @@ const internalGetCompositionsRaw = async ({ browserExecutable, chromiumOptions,
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
exports.internalGetCompositions = (0, wrap_with_error_handling_1.wrapWithErrorHandling)(internalGetCompositionsRaw);
|
|
149
|
-
|
|
150
|
-
* @description Gets
|
|
151
|
-
* @see [Documentation](https://remotion.dev/docs/get-compositions)
|
|
152
|
-
* @param serveUrlOrWebpackUrl URL pointing to the Remotion Bundle.
|
|
153
|
-
* @param {GetCompositionsOptions} [config] Optional configurations for getting composition details.
|
|
154
|
-
* @returns {Promise<VideoConfig[]>} Returns a promise that resolves to an array of available compositions.
|
|
149
|
+
/*
|
|
150
|
+
* @description Gets a list of compositions defined in a Remotion project based on a Remotion Bundle by evaluating the Remotion Root.
|
|
151
|
+
* @see [Documentation](https://www.remotion.dev/docs/renderer/get-compositions)
|
|
155
152
|
*/
|
|
156
153
|
const getCompositions = (serveUrlOrWebpackUrl, config) => {
|
|
157
154
|
if (!serveUrlOrWebpackUrl) {
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import type { GetSilentPartsResponse, SilentPart } from './compositor/payloads';
|
|
2
2
|
import type { LogLevel } from './log-level';
|
|
3
3
|
export type { SilentPart };
|
|
4
|
-
/**
|
|
5
|
-
* Analyzes the silent parts of a video or audio file and returns both the silent and audible segments.
|
|
6
|
-
* @description Uses thresholds defined for noise and duration to identify silent stretches in a media file.
|
|
7
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/get-silent-parts)
|
|
8
|
-
* @param {Object} params Configuration parameters for determining silent parts
|
|
9
|
-
* @param {string} params.src The path to the local video or audio file
|
|
10
|
-
* @param {number} [params.noiseThresholdInDecibels=-20] The decibel level below which sound is considered silent
|
|
11
|
-
* @param {number} [params.minDurationInSeconds=1] The minimum duration (in seconds) to consider a silence as significant
|
|
12
|
-
* @param {string|null} [params.binariesDirectory] Optional directory path for external binaries
|
|
13
|
-
* @param {LogLevel} [params.logLevel] The logging level to be used (debug, verbose, info, warn, error)
|
|
14
|
-
* @returns {Promise<GetSilentPartsResponse>} An object containing arrays of silent and audible parts, along with the overall duration
|
|
15
|
-
*/
|
|
16
4
|
export declare const getSilentParts: ({ src, noiseThresholdInDecibels: passedNoiseThresholdInDecibels, minDurationInSeconds: passedMinDuration, logLevel, binariesDirectory, }: {
|
|
17
5
|
src: string;
|
|
18
6
|
minDurationInSeconds?: number;
|
package/dist/get-silent-parts.js
CHANGED
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSilentParts = void 0;
|
|
4
4
|
const compositor_1 = require("./compositor/compositor");
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* @
|
|
8
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/get-silent-parts)
|
|
9
|
-
* @param {Object} params Configuration parameters for determining silent parts
|
|
10
|
-
* @param {string} params.src The path to the local video or audio file
|
|
11
|
-
* @param {number} [params.noiseThresholdInDecibels=-20] The decibel level below which sound is considered silent
|
|
12
|
-
* @param {number} [params.minDurationInSeconds=1] The minimum duration (in seconds) to consider a silence as significant
|
|
13
|
-
* @param {string|null} [params.binariesDirectory] Optional directory path for external binaries
|
|
14
|
-
* @param {LogLevel} [params.logLevel] The logging level to be used (debug, verbose, info, warn, error)
|
|
15
|
-
* @returns {Promise<GetSilentPartsResponse>} An object containing arrays of silent and audible parts, along with the overall duration
|
|
5
|
+
/*
|
|
6
|
+
* @description Gets the silent parts of a video or audio in Node.js. Useful for cutting out silence from a video.
|
|
7
|
+
* @see [Documentation](https://www.remotion.dev/docs/renderer/get-silent-parts)
|
|
16
8
|
*/
|
|
17
9
|
const getSilentParts = async ({ src, noiseThresholdInDecibels: passedNoiseThresholdInDecibels, minDurationInSeconds: passedMinDuration, logLevel, binariesDirectory, }) => {
|
|
18
10
|
const compositor = (0, compositor_1.startLongRunningCompositor)({
|
package/dist/index.d.ts
CHANGED
|
@@ -139,13 +139,13 @@ export declare const RenderInternals: {
|
|
|
139
139
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
140
140
|
DEFAULT_BROWSER: "chrome";
|
|
141
141
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
142
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
142
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
143
143
|
validateOpenGlRenderer: (option: unknown) => import("./options/gl").OpenGlRenderer | null;
|
|
144
144
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
145
145
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
146
146
|
validateJpegQuality: (q: unknown) => void;
|
|
147
147
|
DEFAULT_TIMEOUT: number;
|
|
148
|
-
DEFAULT_CODEC: "
|
|
148
|
+
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
149
149
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
150
150
|
isEqualOrBelowLogLevel: (currentLevel: import("./log-level").LogLevel, level: import("./log-level").LogLevel) => boolean;
|
|
151
151
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -184,10 +184,10 @@ export declare const RenderInternals: {
|
|
|
184
184
|
preferLossless: boolean;
|
|
185
185
|
}) => AudioCodec | null;
|
|
186
186
|
defaultFileExtensionMap: {
|
|
187
|
-
|
|
187
|
+
h264: {
|
|
188
188
|
default: import("./file-extensions").FileExtension;
|
|
189
189
|
forAudioCodec: {
|
|
190
|
-
|
|
190
|
+
mp3: {
|
|
191
191
|
possible: import("./file-extensions").FileExtension[];
|
|
192
192
|
default: import("./file-extensions").FileExtension;
|
|
193
193
|
};
|
|
@@ -195,94 +195,94 @@ export declare const RenderInternals: {
|
|
|
195
195
|
possible: import("./file-extensions").FileExtension[];
|
|
196
196
|
default: import("./file-extensions").FileExtension;
|
|
197
197
|
};
|
|
198
|
+
"pcm-16": {
|
|
199
|
+
possible: import("./file-extensions").FileExtension[];
|
|
200
|
+
default: import("./file-extensions").FileExtension;
|
|
201
|
+
};
|
|
198
202
|
};
|
|
199
203
|
};
|
|
200
|
-
|
|
204
|
+
h265: {
|
|
201
205
|
default: import("./file-extensions").FileExtension;
|
|
202
206
|
forAudioCodec: {
|
|
203
|
-
|
|
207
|
+
aac: {
|
|
204
208
|
possible: import("./file-extensions").FileExtension[];
|
|
205
209
|
default: import("./file-extensions").FileExtension;
|
|
206
210
|
};
|
|
207
|
-
|
|
211
|
+
"pcm-16": {
|
|
208
212
|
possible: import("./file-extensions").FileExtension[];
|
|
209
213
|
default: import("./file-extensions").FileExtension;
|
|
210
214
|
};
|
|
211
215
|
};
|
|
212
216
|
};
|
|
213
|
-
|
|
217
|
+
vp8: {
|
|
214
218
|
default: import("./file-extensions").FileExtension;
|
|
215
219
|
forAudioCodec: {
|
|
216
220
|
"pcm-16": {
|
|
217
221
|
possible: import("./file-extensions").FileExtension[];
|
|
218
222
|
default: import("./file-extensions").FileExtension;
|
|
219
223
|
};
|
|
224
|
+
opus: {
|
|
225
|
+
possible: import("./file-extensions").FileExtension[];
|
|
226
|
+
default: import("./file-extensions").FileExtension;
|
|
227
|
+
};
|
|
220
228
|
};
|
|
221
229
|
};
|
|
222
|
-
|
|
230
|
+
vp9: {
|
|
223
231
|
default: import("./file-extensions").FileExtension;
|
|
224
232
|
forAudioCodec: {
|
|
225
233
|
"pcm-16": {
|
|
226
234
|
possible: import("./file-extensions").FileExtension[];
|
|
227
235
|
default: import("./file-extensions").FileExtension;
|
|
228
236
|
};
|
|
229
|
-
|
|
230
|
-
possible: import("./file-extensions").FileExtension[];
|
|
231
|
-
default: import("./file-extensions").FileExtension;
|
|
232
|
-
};
|
|
233
|
-
mp3: {
|
|
237
|
+
opus: {
|
|
234
238
|
possible: import("./file-extensions").FileExtension[];
|
|
235
239
|
default: import("./file-extensions").FileExtension;
|
|
236
240
|
};
|
|
237
241
|
};
|
|
238
242
|
};
|
|
239
|
-
|
|
243
|
+
mp3: {
|
|
240
244
|
default: import("./file-extensions").FileExtension;
|
|
241
245
|
forAudioCodec: {
|
|
242
|
-
|
|
246
|
+
mp3: {
|
|
243
247
|
possible: import("./file-extensions").FileExtension[];
|
|
244
248
|
default: import("./file-extensions").FileExtension;
|
|
245
249
|
};
|
|
246
|
-
|
|
250
|
+
"pcm-16": {
|
|
247
251
|
possible: import("./file-extensions").FileExtension[];
|
|
248
252
|
default: import("./file-extensions").FileExtension;
|
|
249
253
|
};
|
|
250
254
|
};
|
|
251
255
|
};
|
|
252
|
-
|
|
256
|
+
aac: {
|
|
253
257
|
default: import("./file-extensions").FileExtension;
|
|
254
258
|
forAudioCodec: {
|
|
255
|
-
|
|
259
|
+
aac: {
|
|
256
260
|
possible: import("./file-extensions").FileExtension[];
|
|
257
261
|
default: import("./file-extensions").FileExtension;
|
|
258
262
|
};
|
|
259
|
-
|
|
263
|
+
"pcm-16": {
|
|
260
264
|
possible: import("./file-extensions").FileExtension[];
|
|
261
265
|
default: import("./file-extensions").FileExtension;
|
|
262
266
|
};
|
|
263
267
|
};
|
|
264
268
|
};
|
|
265
|
-
|
|
269
|
+
wav: {
|
|
266
270
|
default: import("./file-extensions").FileExtension;
|
|
267
271
|
forAudioCodec: {
|
|
268
272
|
"pcm-16": {
|
|
269
273
|
possible: import("./file-extensions").FileExtension[];
|
|
270
274
|
default: import("./file-extensions").FileExtension;
|
|
271
275
|
};
|
|
272
|
-
opus: {
|
|
273
|
-
possible: import("./file-extensions").FileExtension[];
|
|
274
|
-
default: import("./file-extensions").FileExtension;
|
|
275
|
-
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
prores: {
|
|
279
279
|
default: import("./file-extensions").FileExtension;
|
|
280
280
|
forAudioCodec: {
|
|
281
|
-
|
|
281
|
+
aac: {
|
|
282
282
|
possible: import("./file-extensions").FileExtension[];
|
|
283
283
|
default: import("./file-extensions").FileExtension;
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
"pcm-16": {
|
|
286
286
|
possible: import("./file-extensions").FileExtension[];
|
|
287
287
|
default: import("./file-extensions").FileExtension;
|
|
288
288
|
};
|
|
@@ -291,11 +291,11 @@ export declare const RenderInternals: {
|
|
|
291
291
|
"h264-mkv": {
|
|
292
292
|
default: import("./file-extensions").FileExtension;
|
|
293
293
|
forAudioCodec: {
|
|
294
|
-
|
|
294
|
+
mp3: {
|
|
295
295
|
possible: import("./file-extensions").FileExtension[];
|
|
296
296
|
default: import("./file-extensions").FileExtension;
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
"pcm-16": {
|
|
299
299
|
possible: import("./file-extensions").FileExtension[];
|
|
300
300
|
default: import("./file-extensions").FileExtension;
|
|
301
301
|
};
|
|
@@ -304,11 +304,11 @@ export declare const RenderInternals: {
|
|
|
304
304
|
"h264-ts": {
|
|
305
305
|
default: import("./file-extensions").FileExtension;
|
|
306
306
|
forAudioCodec: {
|
|
307
|
-
|
|
307
|
+
aac: {
|
|
308
308
|
possible: import("./file-extensions").FileExtension[];
|
|
309
309
|
default: import("./file-extensions").FileExtension;
|
|
310
310
|
};
|
|
311
|
-
|
|
311
|
+
"pcm-16": {
|
|
312
312
|
possible: import("./file-extensions").FileExtension[];
|
|
313
313
|
default: import("./file-extensions").FileExtension;
|
|
314
314
|
};
|
|
@@ -333,8 +333,8 @@ export declare const RenderInternals: {
|
|
|
333
333
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
334
334
|
readonly wav: readonly ["pcm-16"];
|
|
335
335
|
};
|
|
336
|
-
makeFileExtensionMap: () => Record<string, ("
|
|
337
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "
|
|
336
|
+
makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
337
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
338
338
|
getExecutablePath: ({ indent, logLevel, type, binariesDirectory, }: {
|
|
339
339
|
type: "compositor" | "ffmpeg" | "ffprobe";
|
|
340
340
|
indent: boolean;
|
|
@@ -352,8 +352,8 @@ export declare const RenderInternals: {
|
|
|
352
352
|
}) => execa.ExecaChildProcess<string>;
|
|
353
353
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
354
354
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
355
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
356
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
355
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
356
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
357
357
|
DEFAULT_JPEG_QUALITY: number;
|
|
358
358
|
chalk: {
|
|
359
359
|
enabled: () => boolean;
|
|
@@ -906,14 +906,14 @@ export declare const RenderInternals: {
|
|
|
906
906
|
hostsToTry: string[];
|
|
907
907
|
};
|
|
908
908
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
909
|
-
getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "
|
|
909
|
+
getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "mp3" | "aac" | "wav" | "opus";
|
|
910
910
|
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
911
911
|
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
912
912
|
setting: AudioCodec | null;
|
|
913
913
|
codec: import("./codec").Codec;
|
|
914
914
|
preferLossless: boolean;
|
|
915
915
|
separateAudioTo: string | null;
|
|
916
|
-
}) => "
|
|
916
|
+
}) => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
917
917
|
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
918
918
|
codec: import("./codec").Codec;
|
|
919
919
|
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
type Callback = () => void;
|
|
2
2
|
export type CancelSignal = (callback: Callback) => void;
|
|
3
|
-
/**
|
|
4
|
-
* @description Returns a signal and a cancel function that allows to you cancel a render triggered using renderMedia(), renderStill(), renderFrames() or stitchFramesToVideo().
|
|
5
|
-
* @see [Documentation](https://www.remotion.dev/docs/renderer/make-cancel-signal)
|
|
6
|
-
*/
|
|
7
3
|
export declare const makeCancelSignal: () => {
|
|
8
4
|
cancelSignal: CancelSignal;
|
|
9
5
|
cancel: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isUserCancelledRender = exports.cancelErrorMessages = exports.makeCancelSignal = void 0;
|
|
4
|
-
|
|
4
|
+
/*
|
|
5
5
|
* @description Returns a signal and a cancel function that allows to you cancel a render triggered using renderMedia(), renderStill(), renderFrames() or stitchFramesToVideo().
|
|
6
6
|
* @see [Documentation](https://www.remotion.dev/docs/renderer/make-cancel-signal)
|
|
7
7
|
*/
|
package/dist/open-browser.d.ts
CHANGED
|
@@ -42,9 +42,5 @@ export type OpenBrowserOptions = {
|
|
|
42
42
|
forceDeviceScaleFactor?: number;
|
|
43
43
|
} & LogOptions;
|
|
44
44
|
export declare const internalOpenBrowser: ({ browser, browserExecutable, chromiumOptions, forceDeviceScaleFactor, indent, viewport, logLevel, onBrowserDownload, }: InternalOpenBrowserOptions) => Promise<HeadlessBrowser>;
|
|
45
|
-
/**
|
|
46
|
-
* @description Opens a Chrome or Chromium browser instance.
|
|
47
|
-
* @see [Documentation](https://www.remotion.dev/docs/renderer/open-browser)
|
|
48
|
-
*/
|
|
49
45
|
export declare const openBrowser: (browser: Browser, options?: OpenBrowserOptions) => Promise<HeadlessBrowser>;
|
|
50
46
|
export {};
|
package/dist/open-browser.js
CHANGED
|
@@ -161,8 +161,8 @@ const internalOpenBrowser = async ({ browser, browserExecutable, chromiumOptions
|
|
|
161
161
|
return browserInstance;
|
|
162
162
|
};
|
|
163
163
|
exports.internalOpenBrowser = internalOpenBrowser;
|
|
164
|
-
|
|
165
|
-
* @description Opens a Chrome or Chromium browser instance.
|
|
164
|
+
/*
|
|
165
|
+
* @description Opens a Chrome or Chromium browser instance. By reusing an instance across various rendering and compositional API calls, significant time can be saved by avoiding the repeated opening and closing of browsers.
|
|
166
166
|
* @see [Documentation](https://www.remotion.dev/docs/renderer/open-browser)
|
|
167
167
|
*/
|
|
168
168
|
const openBrowser = (browser, options) => {
|
package/dist/options/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export declare const allOptions: {
|
|
|
171
171
|
webhookCustomDataOption: {
|
|
172
172
|
name: string;
|
|
173
173
|
cliFlag: "webhook-custom-data";
|
|
174
|
-
description: (type: "
|
|
174
|
+
description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
175
175
|
ssrName: "customData";
|
|
176
176
|
docLink: string;
|
|
177
177
|
type: Record<string, unknown> | null;
|
|
@@ -584,7 +584,7 @@ export declare const allOptions: {
|
|
|
584
584
|
metadataOption: {
|
|
585
585
|
name: string;
|
|
586
586
|
cliFlag: "metadata";
|
|
587
|
-
description: (mode: "
|
|
587
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
588
588
|
docLink: string;
|
|
589
589
|
type: import("./metadata").Metadata;
|
|
590
590
|
getValue: ({ commandLine }: {
|
|
@@ -2,7 +2,7 @@ export type Metadata = Record<string, string>;
|
|
|
2
2
|
export declare const metadataOption: {
|
|
3
3
|
name: string;
|
|
4
4
|
cliFlag: "metadata";
|
|
5
|
-
description: (mode: "
|
|
5
|
+
description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
docLink: string;
|
|
7
7
|
type: Metadata;
|
|
8
8
|
getValue: ({ commandLine }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const webhookCustomDataOption: {
|
|
2
2
|
name: string;
|
|
3
3
|
cliFlag: "webhook-custom-data";
|
|
4
|
-
description: (type: "
|
|
4
|
+
description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
ssrName: "customData";
|
|
6
6
|
docLink: string;
|
|
7
7
|
type: Record<string, unknown> | null;
|
package/dist/render-frames.d.ts
CHANGED
|
@@ -90,11 +90,5 @@ export type RenderFramesOptions = {
|
|
|
90
90
|
serveUrl: string;
|
|
91
91
|
} & Partial<ToOptions<typeof optionsMap.renderFrames>>;
|
|
92
92
|
export declare const internalRenderFrames: (args_0: InternalRenderFramesOptions) => Promise<RenderFramesOutput>;
|
|
93
|
-
/**
|
|
94
|
-
* @description Renders a series of images using Puppeteer and computes information for mixing audio.
|
|
95
|
-
* @see [Documentation](https://www.remotion.dev/docs/renderer/render-frames)
|
|
96
|
-
* @param {RenderFramesOptions} options Configuration options for rendering frames.
|
|
97
|
-
* @returns {Promise<RenderFramesOutput>} Information about the rendered frames and assets.
|
|
98
|
-
*/
|
|
99
93
|
export declare const renderFrames: (options: RenderFramesOptions) => Promise<RenderFramesOutput>;
|
|
100
94
|
export {};
|
package/dist/render-frames.js
CHANGED
|
@@ -550,11 +550,9 @@ const internalRenderFramesRaw = ({ browserExecutable, cancelSignal, chromiumOpti
|
|
|
550
550
|
});
|
|
551
551
|
};
|
|
552
552
|
exports.internalRenderFrames = (0, wrap_with_error_handling_1.wrapWithErrorHandling)(internalRenderFramesRaw);
|
|
553
|
-
|
|
553
|
+
/*
|
|
554
554
|
* @description Renders a series of images using Puppeteer and computes information for mixing audio.
|
|
555
555
|
* @see [Documentation](https://www.remotion.dev/docs/renderer/render-frames)
|
|
556
|
-
* @param {RenderFramesOptions} options Configuration options for rendering frames.
|
|
557
|
-
* @returns {Promise<RenderFramesOutput>} Information about the rendered frames and assets.
|
|
558
556
|
*/
|
|
559
557
|
const renderFrames = (options) => {
|
|
560
558
|
const { composition, inputProps, onFrameUpdate, onStart, outputDir, serveUrl, browserExecutable, cancelSignal, chromiumOptions, concurrency, dumpBrowserLogs, envVariables, everyNthFrame, frameRange, imageFormat, jpegQuality, muted, onBrowserLog, onDownload, onFrameBuffer, port, puppeteerInstance, scale, timeoutInMilliseconds, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, binariesDirectory, onBrowserDownload, onArtifact, } = options;
|
package/dist/render-media.d.ts
CHANGED
|
@@ -128,12 +128,5 @@ type RenderMediaResult = {
|
|
|
128
128
|
slowestFrames: SlowFrame[];
|
|
129
129
|
};
|
|
130
130
|
export declare const internalRenderMedia: (args_0: InternalRenderMediaOptions) => Promise<RenderMediaResult>;
|
|
131
|
-
/**
|
|
132
|
-
* Render a video from a composition. You can specify various options such as the codec, output location, input properties, and more.
|
|
133
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/render-media)
|
|
134
|
-
* @param {RenderMediaOptions} options Configuration options for rendering the media.
|
|
135
|
-
* @returns {Promise<RenderMediaResult>} A promise that resolves to the rendering result, including a buffer and information about the slowest frames.
|
|
136
|
-
*
|
|
137
|
-
*/
|
|
138
131
|
export declare const renderMedia: ({ proResProfile, x264Preset, crf, composition, inputProps, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, jpegQuality, concurrency, serveUrl, disallowParallelEncoding, everyNthFrame, imageFormat, numberOfGifLoops, dumpBrowserLogs, preferLossless, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, }: RenderMediaOptions) => Promise<RenderMediaResult>;
|
|
139
132
|
export {};
|
package/dist/render-media.js
CHANGED
|
@@ -501,12 +501,9 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
|
|
|
501
501
|
});
|
|
502
502
|
};
|
|
503
503
|
exports.internalRenderMedia = (0, wrap_with_error_handling_1.wrapWithErrorHandling)(internalRenderMediaRaw);
|
|
504
|
-
|
|
505
|
-
* Render a video
|
|
506
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/render-media)
|
|
507
|
-
* @param {RenderMediaOptions} options Configuration options for rendering the media.
|
|
508
|
-
* @returns {Promise<RenderMediaResult>} A promise that resolves to the rendering result, including a buffer and information about the slowest frames.
|
|
509
|
-
*
|
|
504
|
+
/*
|
|
505
|
+
* @description Render a video or an audio programmatically.
|
|
506
|
+
* @see [Documentation](https://www.remotion.dev/docs/renderer/render-media)
|
|
510
507
|
*/
|
|
511
508
|
const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, jpegQuality, concurrency, serveUrl, disallowParallelEncoding, everyNthFrame, imageFormat, numberOfGifLoops, dumpBrowserLogs, preferLossless, verbose, quality, logLevel: passedLogLevel, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, }) => {
|
|
512
509
|
var _a, _b;
|
package/dist/render-still.d.ts
CHANGED
|
@@ -69,11 +69,5 @@ type RenderStillReturnValue = {
|
|
|
69
69
|
buffer: Buffer | null;
|
|
70
70
|
};
|
|
71
71
|
export declare const internalRenderStill: (options: InternalRenderStillOptions) => Promise<RenderStillReturnValue>;
|
|
72
|
-
/**
|
|
73
|
-
* @description Renders a single frame to an image and writes it to the specified output location.
|
|
74
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/render-still)
|
|
75
|
-
* @param {RenderStillOptions} options Configuration options for rendering the still image
|
|
76
|
-
* @returns {Promise<RenderStillReturnValue>} A promise that resolves to an object with a buffer key containing the image data if no output path is defined, otherwise null.
|
|
77
|
-
*/
|
|
78
72
|
export declare const renderStill: (options: RenderStillOptions) => Promise<RenderStillReturnValue>;
|
|
79
73
|
export {};
|
package/dist/render-still.js
CHANGED
|
@@ -264,11 +264,9 @@ const internalRenderStillRaw = (options) => {
|
|
|
264
264
|
]);
|
|
265
265
|
};
|
|
266
266
|
exports.internalRenderStill = (0, wrap_with_error_handling_1.wrapWithErrorHandling)(internalRenderStillRaw);
|
|
267
|
-
|
|
267
|
+
/*
|
|
268
268
|
* @description Renders a single frame to an image and writes it to the specified output location.
|
|
269
|
-
* @see [Documentation](https://remotion.dev/docs/renderer/render-still)
|
|
270
|
-
* @param {RenderStillOptions} options Configuration options for rendering the still image
|
|
271
|
-
* @returns {Promise<RenderStillReturnValue>} A promise that resolves to an object with a buffer key containing the image data if no output path is defined, otherwise null.
|
|
269
|
+
* @see [Documentation](https://www.remotion.dev/docs/renderer/render-still)
|
|
272
270
|
*/
|
|
273
271
|
const renderStill = (options) => {
|
|
274
272
|
var _a, _b;
|
|
@@ -41,9 +41,5 @@ type InternalReturnType = {
|
|
|
41
41
|
};
|
|
42
42
|
export declare const internalSelectCompositionRaw: (options: InternalSelectCompositionsConfig) => Promise<InternalReturnType>;
|
|
43
43
|
export declare const internalSelectComposition: (options: InternalSelectCompositionsConfig) => Promise<InternalReturnType>;
|
|
44
|
-
/**
|
|
45
|
-
* @description Gets a composition defined in a Remotion project based on a Webpack bundle.
|
|
46
|
-
* @see [Documentation](https://www.remotion.dev/docs/renderer/select-composition)
|
|
47
|
-
*/
|
|
48
44
|
export declare const selectComposition: (options: SelectCompositionOptions) => Promise<VideoConfig>;
|
|
49
45
|
export {};
|
|
@@ -172,8 +172,8 @@ const internalSelectCompositionRaw = async (options) => {
|
|
|
172
172
|
};
|
|
173
173
|
exports.internalSelectCompositionRaw = internalSelectCompositionRaw;
|
|
174
174
|
exports.internalSelectComposition = (0, wrap_with_error_handling_1.wrapWithErrorHandling)(exports.internalSelectCompositionRaw);
|
|
175
|
-
|
|
176
|
-
* @description
|
|
175
|
+
/*
|
|
176
|
+
* @description Evaluates the list of compositions from a Remotion Bundle by evaluating the Remotion Root and evaluating `calculateMetadata()` on the specified composition.
|
|
177
177
|
* @see [Documentation](https://www.remotion.dev/docs/renderer/select-composition)
|
|
178
178
|
*/
|
|
179
179
|
const selectComposition = async (options) => {
|
|
@@ -73,11 +73,5 @@ export type StitchFramesToVideoOptions = {
|
|
|
73
73
|
metadata?: Record<string, string> | null;
|
|
74
74
|
} & Partial<ToOptions<typeof optionsMap.stitchFramesToVideo>>;
|
|
75
75
|
export declare const internalStitchFramesToVideo: (options: InternalStitchFramesToVideoOptions) => Promise<Buffer | null>;
|
|
76
|
-
/**
|
|
77
|
-
* Takes a series of images and audio information generated by renderFrames() and encodes it to a video.
|
|
78
|
-
* @see [Documentation](https://www.remotion.dev/docs/renderer/stitch-frames-to-video)
|
|
79
|
-
* @param {StitchFramesToVideoOptions} options The configuration options for stitching frames into a video
|
|
80
|
-
* @returns {Promise<Buffer | null>} A promise that resolves with the video buffer or null if the output was written to a file
|
|
81
|
-
*/
|
|
82
76
|
export declare const stitchFramesToVideo: ({ assetsInfo, force, fps, height, width, audioBitrate, audioCodec, cancelSignal, codec, crf, enforceAudioTrack, ffmpegOverride, muted, numberOfGifLoops, onDownload, onProgress, outputLocation, pixelFormat, proResProfile, verbose, videoBitrate, maxRate, bufferSize, x264Preset, colorSpace, binariesDirectory, separateAudioTo, metadata, hardwareAcceleration, }: StitchFramesToVideoOptions) => Promise<Buffer | null>;
|
|
83
77
|
export {};
|
|
@@ -303,11 +303,9 @@ const internalStitchFramesToVideo = (options) => {
|
|
|
303
303
|
]);
|
|
304
304
|
};
|
|
305
305
|
exports.internalStitchFramesToVideo = internalStitchFramesToVideo;
|
|
306
|
-
|
|
307
|
-
* Takes a series of images and audio information generated by renderFrames() and encodes it to a video.
|
|
306
|
+
/*
|
|
307
|
+
* @description Takes a series of images and audio information generated by renderFrames() and encodes it to a video.
|
|
308
308
|
* @see [Documentation](https://www.remotion.dev/docs/renderer/stitch-frames-to-video)
|
|
309
|
-
* @param {StitchFramesToVideoOptions} options The configuration options for stitching frames into a video
|
|
310
|
-
* @returns {Promise<Buffer | null>} A promise that resolves with the video buffer or null if the output was written to a file
|
|
311
309
|
*/
|
|
312
310
|
const stitchFramesToVideo = ({ assetsInfo, force, fps, height, width, audioBitrate, audioCodec, cancelSignal, codec, crf, enforceAudioTrack, ffmpegOverride, muted, numberOfGifLoops, onDownload, onProgress, outputLocation, pixelFormat, proResProfile, verbose, videoBitrate, maxRate, bufferSize, x264Preset, colorSpace, binariesDirectory, separateAudioTo, metadata, hardwareAcceleration, }) => {
|
|
313
311
|
return (0, exports.internalStitchFramesToVideo)({
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.245",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/streaming": "4.0.
|
|
21
|
+
"remotion": "4.0.245",
|
|
22
|
+
"@remotion/streaming": "4.0.245"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"react-dom": "19.0.0",
|
|
34
34
|
"@types/ws": "8.5.10",
|
|
35
35
|
"eslint": "9.14.0",
|
|
36
|
-
"@remotion/example-videos": "4.0.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
36
|
+
"@remotion/example-videos": "4.0.245",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.245"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
41
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
42
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
43
|
-
"@remotion/compositor-linux-
|
|
44
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.245",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.245",
|
|
42
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.245",
|
|
43
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.245",
|
|
44
|
+
"@remotion/compositor-linux-x64-musl": "4.0.245",
|
|
45
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.245",
|
|
46
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.245"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|