@remotion/renderer 4.0.216 → 4.0.218
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/Cargo.lock +2 -2
- package/Cargo.toml +1 -1
- package/dist/can-use-parallel-encoding.js +2 -2
- package/dist/client.d.ts +0 -1
- package/dist/client.js +0 -1
- package/dist/combine-videos.js +2 -1
- package/dist/crf.js +3 -3
- package/dist/index.d.ts +3 -4
- package/dist/index.js +0 -1
- package/dist/is-audio-codec.d.ts +2 -0
- package/dist/is-audio-codec.js +7 -0
- package/dist/options/audio-codec.d.ts +0 -1
- package/dist/options/audio-codec.js +1 -5
- package/dist/options/gl.d.ts +1 -1
- package/dist/options/metadata.js +1 -1
- package/dist/pure.d.ts +6 -0
- package/dist/pure.js +6 -0
- package/dist/render-media.js +2 -2
- package/ensure-browser.mjs +11 -11
- package/package.json +10 -10
- package/dist/browser/is-target-closed-err.d.ts +0 -1
- package/dist/browser/is-target-closed-err.js +0 -9
- package/dist/is-delay-render-error-with.retry.d.ts +0 -2
- package/dist/is-delay-render-error-with.retry.js +0 -37
package/Cargo.lock
CHANGED
|
@@ -278,7 +278,7 @@ dependencies = [
|
|
|
278
278
|
[[package]]
|
|
279
279
|
name = "ffmpeg-next"
|
|
280
280
|
version = "7.1.0"
|
|
281
|
-
source = "git+https://github.com/remotion-dev/rust-ffmpeg?rev=
|
|
281
|
+
source = "git+https://github.com/remotion-dev/rust-ffmpeg?rev=b3878a087fc5be3985974cec9627072bc94b8f52#b3878a087fc5be3985974cec9627072bc94b8f52"
|
|
282
282
|
dependencies = [
|
|
283
283
|
"bitflags 2.6.0",
|
|
284
284
|
"ffmpeg-sys-next",
|
|
@@ -288,7 +288,7 @@ dependencies = [
|
|
|
288
288
|
[[package]]
|
|
289
289
|
name = "ffmpeg-sys-next"
|
|
290
290
|
version = "7.1.0"
|
|
291
|
-
source = "git+https://github.com/remotion-dev/rust-ffmpeg-sys?rev=
|
|
291
|
+
source = "git+https://github.com/remotion-dev/rust-ffmpeg-sys?rev=72427665dde18f5af6770800b4719ec6e73d06f6#72427665dde18f5af6770800b4719ec6e73d06f6"
|
|
292
292
|
dependencies = [
|
|
293
293
|
"bindgen",
|
|
294
294
|
"cc",
|
package/Cargo.toml
CHANGED
|
@@ -19,7 +19,7 @@ image = "0.24.7"
|
|
|
19
19
|
arboard = "3.2.0"
|
|
20
20
|
sysinfo = "0.30.7"
|
|
21
21
|
mp4 = {git = "https://github.com/jonnyburger/mp4-rust", rev = "92ba375738cc2f05a4d754e1f968cf2e97d06641"}
|
|
22
|
-
ffmpeg-next = {git = "https://github.com/remotion-dev/rust-ffmpeg", rev ="
|
|
22
|
+
ffmpeg-next = {git = "https://github.com/remotion-dev/rust-ffmpeg", rev ="b3878a087fc5be3985974cec9627072bc94b8f52"}
|
|
23
23
|
|
|
24
24
|
[[bin]]
|
|
25
25
|
name = "remotion"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.canUseParallelEncoding = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_audio_codec_1 = require("./is-audio-codec");
|
|
5
5
|
const canUseParallelEncoding = (codec) => {
|
|
6
|
-
if ((0,
|
|
6
|
+
if ((0, is_audio_codec_1.isAudioCodec)(codec)) {
|
|
7
7
|
return false;
|
|
8
8
|
}
|
|
9
9
|
return codec === 'h264' || codec === 'h264-mkv' || codec === 'h265';
|
package/dist/client.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const BrowserSafeApis: {
|
|
|
5
5
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
6
|
getDefaultCrfForCodec: (codec: import("./codec").Codec) => number;
|
|
7
7
|
getValidCrfRanges: (codec: import("./codec").Codec) => [number, number];
|
|
8
|
-
isAudioCodec: (codec: import("./codec").Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
9
8
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
10
9
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
11
10
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
package/dist/client.js
CHANGED
|
@@ -26,7 +26,6 @@ exports.BrowserSafeApis = {
|
|
|
26
26
|
validAudioCodecs: audio_codec_1.validAudioCodecs,
|
|
27
27
|
getDefaultCrfForCodec: crf_1.getDefaultCrfForCodec,
|
|
28
28
|
getValidCrfRanges: crf_1.getValidCrfRanges,
|
|
29
|
-
isAudioCodec: audio_codec_1.isAudioCodec,
|
|
30
29
|
proResProfileOptions: prores_profile_1.proResProfileOptions,
|
|
31
30
|
x264PresetOptions: x264_preset_1.x264PresetOptions,
|
|
32
31
|
validPixelFormats: pixel_format_1.validPixelFormats,
|
package/dist/combine-videos.js
CHANGED
|
@@ -8,6 +8,7 @@ const combine_audio_1 = require("./combine-audio");
|
|
|
8
8
|
const combine_video_streams_1 = require("./combine-video-streams");
|
|
9
9
|
const combine_video_streams_seamlessly_1 = require("./combine-video-streams-seamlessly");
|
|
10
10
|
const get_extension_from_codec_1 = require("./get-extension-from-codec");
|
|
11
|
+
const is_audio_codec_1 = require("./is-audio-codec");
|
|
11
12
|
const logger_1 = require("./logger");
|
|
12
13
|
const mux_video_and_audio_1 = require("./mux-video-and-audio");
|
|
13
14
|
const audio_codec_1 = require("./options/audio-codec");
|
|
@@ -27,7 +28,7 @@ const codecSupportsFastStart = {
|
|
|
27
28
|
};
|
|
28
29
|
const combineChunks = async ({ files, filelistDir, output, onProgress, numberOfFrames, codec, fps, numberOfGifLoops, resolvedAudioCodec, audioBitrate, indent, logLevel, chunkDurationInSeconds, binariesDirectory, cancelSignal, seamlessAudio, seamlessVideo, muted, metadata, }) => {
|
|
29
30
|
const shouldCreateAudio = resolvedAudioCodec !== null && !muted;
|
|
30
|
-
const shouldCreateVideo = !(0,
|
|
31
|
+
const shouldCreateVideo = !(0, is_audio_codec_1.isAudioCodec)(codec);
|
|
31
32
|
const videoOutput = shouldCreateVideo
|
|
32
33
|
? (0, node_path_1.join)(filelistDir, `video.${(0, get_extension_from_codec_1.getFileExtensionFromCodec)(codec, resolvedAudioCodec)}`)
|
|
33
34
|
: null;
|
package/dist/crf.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateQualitySettings = exports.getValidCrfRanges = exports.getDefaultCrfForCodec = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_audio_codec_1 = require("./is-audio-codec");
|
|
5
5
|
const defaultCrfMap = {
|
|
6
6
|
h264: 18,
|
|
7
7
|
h265: 23,
|
|
@@ -60,7 +60,7 @@ const validateQualitySettings = ({ codec, crf, videoBitrate, encodingMaxRate, en
|
|
|
60
60
|
console.warn('ProRes does not support videoBitrate. Ignoring.');
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
|
-
if ((0,
|
|
63
|
+
if ((0, is_audio_codec_1.isAudioCodec)(codec)) {
|
|
64
64
|
console.warn(`${codec} does not support videoBitrate. Ignoring.`);
|
|
65
65
|
return [];
|
|
66
66
|
}
|
|
@@ -88,7 +88,7 @@ const validateQualitySettings = ({ codec, crf, videoBitrate, encodingMaxRate, en
|
|
|
88
88
|
console.warn('ProRes does not support the "crf" option. Ignoring.');
|
|
89
89
|
return [];
|
|
90
90
|
}
|
|
91
|
-
if ((0,
|
|
91
|
+
if ((0, is_audio_codec_1.isAudioCodec)(codec)) {
|
|
92
92
|
console.warn(`${codec} does not support the "crf" option. Ignoring.`);
|
|
93
93
|
return [];
|
|
94
94
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -139,14 +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
148
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
149
|
-
isAudioCodec: (codec: import("./codec").Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
150
149
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
151
150
|
isEqualOrBelowLogLevel: (currentLevel: import("./log-level").LogLevel, level: import("./log-level").LogLevel) => boolean;
|
|
152
151
|
isValidLogLevel: (level: string) => boolean;
|
|
@@ -353,8 +352,8 @@ export declare const RenderInternals: {
|
|
|
353
352
|
}) => execa.ExecaChildProcess<string>;
|
|
354
353
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
355
354
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
356
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
357
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
355
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
356
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
358
357
|
DEFAULT_JPEG_QUALITY: number;
|
|
359
358
|
chalk: {
|
|
360
359
|
enabled: () => boolean;
|
package/dist/index.js
CHANGED
|
@@ -159,7 +159,6 @@ exports.RenderInternals = {
|
|
|
159
159
|
validateJpegQuality: jpeg_quality_1.validateJpegQuality,
|
|
160
160
|
DEFAULT_TIMEOUT: TimeoutSettings_1.DEFAULT_TIMEOUT,
|
|
161
161
|
DEFAULT_CODEC: codec_1.DEFAULT_CODEC,
|
|
162
|
-
isAudioCodec: audio_codec_1.isAudioCodec,
|
|
163
162
|
logLevels: log_level_1.logLevels,
|
|
164
163
|
isEqualOrBelowLogLevel: log_level_1.isEqualOrBelowLogLevel,
|
|
165
164
|
isValidLogLevel: log_level_1.isValidLogLevel,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Codec } from '../codec';
|
|
2
2
|
export declare const validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
3
3
|
export type AudioCodec = (typeof validAudioCodecs)[number];
|
|
4
|
-
export declare const isAudioCodec: (codec: Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
5
4
|
export declare const supportedAudioCodecs: {
|
|
6
5
|
readonly h264: readonly ["aac", "pcm-16", "mp3"];
|
|
7
6
|
readonly 'h264-mkv': readonly ["pcm-16", "mp3"];
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.audioCodecOption = exports.getDefaultAudioCodec = exports.resolveAudioCodec = exports.getExtensionFromAudioCodec = exports.defaultAudioCodecs = exports.mapAudioCodecToFfmpegAudioCodecName = exports.supportedAudioCodecs = exports.
|
|
3
|
+
exports.audioCodecOption = exports.getDefaultAudioCodec = exports.resolveAudioCodec = exports.getExtensionFromAudioCodec = exports.defaultAudioCodecs = exports.mapAudioCodecToFfmpegAudioCodecName = exports.supportedAudioCodecs = exports.validAudioCodecs = void 0;
|
|
4
4
|
const separate_audio_1 = require("./separate-audio");
|
|
5
5
|
exports.validAudioCodecs = ['pcm-16', 'aac', 'mp3', 'opus'];
|
|
6
|
-
const isAudioCodec = (codec) => {
|
|
7
|
-
return codec === 'mp3' || codec === 'aac' || codec === 'wav';
|
|
8
|
-
};
|
|
9
|
-
exports.isAudioCodec = isAudioCodec;
|
|
10
6
|
exports.supportedAudioCodecs = {
|
|
11
7
|
h264: ['aac', 'pcm-16', 'mp3'],
|
|
12
8
|
'h264-mkv': ['pcm-16', 'mp3'],
|
package/dist/options/gl.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
2
2
|
export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
|
|
3
3
|
export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
|
|
4
|
-
export declare const getChromiumOpenGlRenderer: () => "
|
|
4
|
+
export declare const getChromiumOpenGlRenderer: () => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
|
|
5
5
|
export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
|
|
6
6
|
export declare const glOption: {
|
|
7
7
|
cliFlag: "gl";
|
package/dist/options/metadata.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.metadataOption = {
|
|
|
18
18
|
getValue: ({ commandLine }) => {
|
|
19
19
|
if (commandLine[cliFlag] !== undefined) {
|
|
20
20
|
const val = commandLine[cliFlag];
|
|
21
|
-
const array = typeof val === 'string' ? [] : val;
|
|
21
|
+
const array = typeof val === 'string' ? [val] : val;
|
|
22
22
|
const keyValues = array.map((a) => {
|
|
23
23
|
if (!a.includes('=')) {
|
|
24
24
|
throw new Error(`"metadata" must be in the format of key=value, but got ${a}`);
|
package/dist/pure.d.ts
CHANGED
|
@@ -8,4 +8,10 @@ export declare const NoReactAPIs: {
|
|
|
8
8
|
preferLossless: boolean;
|
|
9
9
|
separateAudioTo: string | null;
|
|
10
10
|
}) => void;
|
|
11
|
+
getFramesToRender: (frameRange: [number, number], everyNthFrame: number) => number[];
|
|
12
|
+
codecSupportsMedia: (codec: import("./codec").Codec) => {
|
|
13
|
+
video: boolean;
|
|
14
|
+
audio: boolean;
|
|
15
|
+
};
|
|
16
|
+
isAudioCodec: (codec: import("./codec").Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
11
17
|
};
|
package/dist/pure.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NoReactAPIs = void 0;
|
|
4
|
+
const codec_supports_media_1 = require("./codec-supports-media");
|
|
5
|
+
const get_duration_from_frame_range_1 = require("./get-duration-from-frame-range");
|
|
4
6
|
const get_extension_from_codec_1 = require("./get-extension-from-codec");
|
|
5
7
|
const get_extension_of_filename_1 = require("./get-extension-of-filename");
|
|
8
|
+
const is_audio_codec_1 = require("./is-audio-codec");
|
|
6
9
|
const validate_output_filename_1 = require("./validate-output-filename");
|
|
7
10
|
exports.NoReactAPIs = {
|
|
8
11
|
getExtensionOfFilename: get_extension_of_filename_1.getExtensionOfFilename,
|
|
9
12
|
getFileExtensionFromCodec: get_extension_from_codec_1.getFileExtensionFromCodec,
|
|
10
13
|
validateOutputFilename: validate_output_filename_1.validateOutputFilename,
|
|
14
|
+
getFramesToRender: get_duration_from_frame_range_1.getFramesToRender,
|
|
15
|
+
codecSupportsMedia: codec_supports_media_1.codecSupportsMedia,
|
|
16
|
+
isAudioCodec: is_audio_codec_1.isAudioCodec,
|
|
11
17
|
};
|
package/dist/render-media.js
CHANGED
|
@@ -23,10 +23,10 @@ const get_extension_from_codec_1 = require("./get-extension-from-codec");
|
|
|
23
23
|
const get_extension_of_filename_1 = require("./get-extension-of-filename");
|
|
24
24
|
const get_frame_to_render_1 = require("./get-frame-to-render");
|
|
25
25
|
const image_format_1 = require("./image-format");
|
|
26
|
+
const is_audio_codec_1 = require("./is-audio-codec");
|
|
26
27
|
const jpeg_quality_1 = require("./jpeg-quality");
|
|
27
28
|
const logger_1 = require("./logger");
|
|
28
29
|
const make_cancel_signal_1 = require("./make-cancel-signal");
|
|
29
|
-
const audio_codec_1 = require("./options/audio-codec");
|
|
30
30
|
const color_space_1 = require("./options/color-space");
|
|
31
31
|
const x264_preset_1 = require("./options/x264-preset");
|
|
32
32
|
const overwrite_1 = require("./overwrite");
|
|
@@ -159,7 +159,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
|
|
|
159
159
|
tag: 'renderMedia()',
|
|
160
160
|
}, 'Parallel encoding is disabled.');
|
|
161
161
|
}
|
|
162
|
-
const imageFormat = (0,
|
|
162
|
+
const imageFormat = (0, is_audio_codec_1.isAudioCodec)(codec)
|
|
163
163
|
? 'none'
|
|
164
164
|
: provisionalImageFormat;
|
|
165
165
|
(0, image_format_1.validateSelectedPixelFormatAndImageFormatCombination)(pixelFormat, imageFormat);
|
package/ensure-browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createRequire} from "node:module";
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __getProtoOf = Object.getPrototypeOf;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -2548,10 +2548,10 @@ var import_extract_zip = __toESM(require_extract_zip(), 1);
|
|
|
2548
2548
|
import * as fs3 from "node:fs";
|
|
2549
2549
|
import * as os from "node:os";
|
|
2550
2550
|
import * as path3 from "node:path";
|
|
2551
|
-
import {promisify} from "node:util";
|
|
2551
|
+
import { promisify } from "node:util";
|
|
2552
2552
|
|
|
2553
2553
|
// src/assets/download-file.ts
|
|
2554
|
-
import {createWriteStream} from "node:fs";
|
|
2554
|
+
import { createWriteStream } from "node:fs";
|
|
2555
2555
|
|
|
2556
2556
|
// src/ensure-output-directory.ts
|
|
2557
2557
|
import fs from "node:fs";
|
|
@@ -2954,7 +2954,7 @@ var downloadFile = async (options, retries = 2, attempt = 1) => {
|
|
|
2954
2954
|
};
|
|
2955
2955
|
|
|
2956
2956
|
// src/compositor/make-file-executable.ts
|
|
2957
|
-
import {accessSync, chmodSync, constants, statSync} from "node:fs";
|
|
2957
|
+
import { accessSync, chmodSync, constants, statSync } from "node:fs";
|
|
2958
2958
|
var hasPermissions = (p) => {
|
|
2959
2959
|
if (process.platform !== "linux" && process.platform !== "darwin") {
|
|
2960
2960
|
try {
|
|
@@ -3024,12 +3024,12 @@ var getDownloadsCacheDir = () => {
|
|
|
3024
3024
|
// src/browser/BrowserFetcher.ts
|
|
3025
3025
|
function getChromeDownloadUrl({
|
|
3026
3026
|
platform: platform2,
|
|
3027
|
-
version
|
|
3027
|
+
version
|
|
3028
3028
|
}) {
|
|
3029
3029
|
if (platform2 === "linux-arm64") {
|
|
3030
|
-
return `https://playwright.azureedge.net/builds/chromium/${
|
|
3030
|
+
return `https://playwright.azureedge.net/builds/chromium/${version ?? PLAYWRIGHT_VERSION}/chromium-linux-arm64.zip`;
|
|
3031
3031
|
}
|
|
3032
|
-
return `https://storage.googleapis.com/chrome-for-testing-public/${
|
|
3032
|
+
return `https://storage.googleapis.com/chrome-for-testing-public/${version ?? TESTED_VERSION}/${platform2}/chrome-headless-shell-${platform2}.zip`;
|
|
3033
3033
|
}
|
|
3034
3034
|
function existsAsync(filePath) {
|
|
3035
3035
|
return new Promise((resolve2) => {
|
|
@@ -3063,10 +3063,10 @@ var downloadBrowser = async ({
|
|
|
3063
3063
|
logLevel,
|
|
3064
3064
|
indent,
|
|
3065
3065
|
onProgress,
|
|
3066
|
-
version
|
|
3066
|
+
version
|
|
3067
3067
|
}) => {
|
|
3068
3068
|
const platform2 = getPlatform();
|
|
3069
|
-
const downloadURL = getChromeDownloadUrl({ platform: platform2, version
|
|
3069
|
+
const downloadURL = getChromeDownloadUrl({ platform: platform2, version });
|
|
3070
3070
|
const fileName = downloadURL.split("/").pop();
|
|
3071
3071
|
if (!fileName) {
|
|
3072
3072
|
throw new Error(`A malformed download URL was found: ${downloadURL}.`);
|
|
@@ -3196,8 +3196,8 @@ var internalEnsureBrowser = async ({
|
|
|
3196
3196
|
}) => {
|
|
3197
3197
|
const status = getBrowserStatus(browserExecutable);
|
|
3198
3198
|
if (status.type === "no-browser") {
|
|
3199
|
-
const { onProgress, version
|
|
3200
|
-
await downloadBrowser({ indent, logLevel, onProgress, version
|
|
3199
|
+
const { onProgress, version } = onBrowserDownload();
|
|
3200
|
+
await downloadBrowser({ indent, logLevel, onProgress, version });
|
|
3201
3201
|
}
|
|
3202
3202
|
const newStatus = getBrowserStatus(browserExecutable);
|
|
3203
3203
|
return newStatus;
|
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.218",
|
|
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.218",
|
|
22
|
+
"@remotion/streaming": "4.0.218"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@types/ws": "8.5.10"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@remotion/compositor-darwin-
|
|
38
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
39
|
-
"@remotion/compositor-darwin-
|
|
40
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
41
|
-
"@remotion/compositor-
|
|
42
|
-
"@remotion/compositor-
|
|
43
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
37
|
+
"@remotion/compositor-darwin-arm64": "4.0.218",
|
|
38
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.218",
|
|
39
|
+
"@remotion/compositor-darwin-x64": "4.0.218",
|
|
40
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.218",
|
|
41
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.218",
|
|
42
|
+
"@remotion/compositor-linux-x64-musl": "4.0.218",
|
|
43
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.218"
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"remotion",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isTargetClosedErr: (error: Error | undefined) => boolean | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTargetClosedErr = void 0;
|
|
4
|
-
const isTargetClosedErr = (error) => {
|
|
5
|
-
var _a, _b;
|
|
6
|
-
return (((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes('Target closed')) ||
|
|
7
|
-
((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('Session closed')));
|
|
8
|
-
};
|
|
9
|
-
exports.isTargetClosedErr = isTargetClosedErr;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRetriesLeftFromError = exports.isDelayRenderErrorWithRetry = void 0;
|
|
4
|
-
const no_react_1 = require("remotion/no-react");
|
|
5
|
-
const isDelayRenderErrorWithRetry = (error) => {
|
|
6
|
-
var _a;
|
|
7
|
-
if (!error) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
const shouldRetryError = (_a = error.stack) === null || _a === void 0 ? void 0 : _a.includes(no_react_1.NoReactInternals.DELAY_RENDER_RETRY_TOKEN);
|
|
11
|
-
return shouldRetryError;
|
|
12
|
-
};
|
|
13
|
-
exports.isDelayRenderErrorWithRetry = isDelayRenderErrorWithRetry;
|
|
14
|
-
const getRetriesLeftFromError = (error) => {
|
|
15
|
-
if (!error) {
|
|
16
|
-
throw new Error('Expected stack');
|
|
17
|
-
}
|
|
18
|
-
const { stack } = error;
|
|
19
|
-
if (!stack) {
|
|
20
|
-
throw new Error('Expected stack: ' + JSON.stringify(error));
|
|
21
|
-
}
|
|
22
|
-
const beforeIndex = stack.indexOf(no_react_1.NoReactInternals.DELAY_RENDER_ATTEMPT_TOKEN);
|
|
23
|
-
if (beforeIndex === -1) {
|
|
24
|
-
throw new Error('Expected to find attempt token in stack');
|
|
25
|
-
}
|
|
26
|
-
const afterIndex = stack.indexOf(no_react_1.NoReactInternals.DELAY_RENDER_RETRY_TOKEN);
|
|
27
|
-
if (afterIndex === -1) {
|
|
28
|
-
throw new Error('Expected to find retry token in stack');
|
|
29
|
-
}
|
|
30
|
-
const inbetween = stack.substring(beforeIndex + no_react_1.NoReactInternals.DELAY_RENDER_ATTEMPT_TOKEN.length, afterIndex);
|
|
31
|
-
const parsed = Number(inbetween);
|
|
32
|
-
if (Number.isNaN(parsed)) {
|
|
33
|
-
throw new Error(`Expected to find a number in the stack ${stack}`);
|
|
34
|
-
}
|
|
35
|
-
return parsed;
|
|
36
|
-
};
|
|
37
|
-
exports.getRetriesLeftFromError = getRetriesLeftFromError;
|