@remotion/renderer 3.2.22 → 3.2.24
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/browser/BrowserFetcher.js +12 -10
- package/dist/extract-frame-from-video.d.ts +1 -0
- package/dist/get-extension-from-codec.d.ts +1 -1
- package/dist/guess-extension-for-media.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/last-frame-from-video-cache.d.ts +1 -0
- package/dist/render-media.d.ts +1 -0
- package/package.json +3 -3
- package/dist/ffmpeg-args-hook.d.ts +0 -4
- package/dist/ffmpeg-args-hook.js +0 -2
- package/dist/make-assets-download-dir.d.ts +0 -1
- package/dist/make-assets-download-dir.js +0 -13
- package/dist/validate-ffmpeg-args-hook.d.ts +0 -2
- package/dist/validate-ffmpeg-args-hook.js +0 -12
- package/dist/validate-ffmpeg-override-fn.d.ts +0 -2
- package/dist/validate-ffmpeg-override-fn.js +0 -12
|
@@ -60,10 +60,10 @@ const http = __importStar(require("http"));
|
|
|
60
60
|
const https = __importStar(require("https"));
|
|
61
61
|
const os = __importStar(require("os"));
|
|
62
62
|
const path = __importStar(require("path"));
|
|
63
|
-
const
|
|
63
|
+
const util_1 = __importDefault(require("util"));
|
|
64
64
|
const extract_zip_1 = __importDefault(require("extract-zip"));
|
|
65
65
|
const URL = __importStar(require("url"));
|
|
66
|
-
const
|
|
66
|
+
const util_2 = require("util");
|
|
67
67
|
const assert_1 = require("./assert");
|
|
68
68
|
const delete_directory_1 = require("../delete-directory");
|
|
69
69
|
const get_download_destination_1 = require("./get-download-destination");
|
|
@@ -106,7 +106,7 @@ function archiveName(product, platform, revision) {
|
|
|
106
106
|
case 'win64':
|
|
107
107
|
// Windows archive name changed at r591479.
|
|
108
108
|
return parseInt(revision, 10) > 591479
|
|
109
|
-
? '
|
|
109
|
+
? 'Thorium_107.0.5271.0\\BIN'
|
|
110
110
|
: 'chrome-win32';
|
|
111
111
|
default:
|
|
112
112
|
throw new Error('unknown browser');
|
|
@@ -118,8 +118,10 @@ function archiveName(product, platform, revision) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
function _downloadURL(product, platform, host, revision) {
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
if (platform === 'win64' || platform === 'win32') {
|
|
122
|
+
return 'https://remotionchromium-binaries.s3.eu-central-1.amazonaws.com/thorium-107.zip';
|
|
123
|
+
}
|
|
124
|
+
return util_1.default.format(downloadURLs[product][platform], host, revision, archiveName(product, platform, revision));
|
|
123
125
|
}
|
|
124
126
|
function handleArm64() {
|
|
125
127
|
let exists = fs.existsSync('/usr/bin/chromium-browser');
|
|
@@ -136,10 +138,10 @@ function handleArm64() {
|
|
|
136
138
|
'\n\n sudo apt install chromium-browser\n');
|
|
137
139
|
throw new Error();
|
|
138
140
|
}
|
|
139
|
-
const readdirAsync = (0,
|
|
140
|
-
const mkdirAsync = (0,
|
|
141
|
-
const unlinkAsync = (0,
|
|
142
|
-
const chmodAsync = (0,
|
|
141
|
+
const readdirAsync = (0, util_2.promisify)(fs.readdir.bind(fs));
|
|
142
|
+
const mkdirAsync = (0, util_2.promisify)(fs.mkdir.bind(fs));
|
|
143
|
+
const unlinkAsync = (0, util_2.promisify)(fs.unlink.bind(fs));
|
|
144
|
+
const chmodAsync = (0, util_2.promisify)(fs.chmod.bind(fs));
|
|
143
145
|
function existsAsync(filePath) {
|
|
144
146
|
return new Promise((resolve) => {
|
|
145
147
|
fs.access(filePath, (err) => {
|
|
@@ -325,7 +327,7 @@ class BrowserFetcher {
|
|
|
325
327
|
executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'chrome');
|
|
326
328
|
}
|
|
327
329
|
else if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'win32' || __classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'win64') {
|
|
328
|
-
executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), '
|
|
330
|
+
executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'thorium.exe');
|
|
329
331
|
}
|
|
330
332
|
else {
|
|
331
333
|
throw new Error('Unsupported platform: ' + __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
|
-
export declare const getFileExtensionFromCodec: (codec: Codec, type: 'chunk' | 'final') => "mp3" | "aac" | "wav" | "gif" | "
|
|
2
|
+
export declare const getFileExtensionFromCodec: (codec: Codec, type: 'chunk' | 'final') => "mp3" | "aac" | "wav" | "gif" | "webm" | "mp4" | "mov" | "mkv";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const guessExtensionForVideo: (src: string) => Promise<"mp3" | "wav" | "
|
|
1
|
+
export declare const guessExtensionForVideo: (src: string) => Promise<"mp3" | "wav" | "webm" | "mp4">;
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare const RenderInternals: {
|
|
|
69
69
|
task: Promise<Buffer | null>;
|
|
70
70
|
getLogs: () => string;
|
|
71
71
|
}>;
|
|
72
|
-
getFileExtensionFromCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", type: "chunk" | "final") => "mp3" | "aac" | "wav" | "gif" | "
|
|
72
|
+
getFileExtensionFromCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", type: "chunk" | "final") => "mp3" | "aac" | "wav" | "gif" | "webm" | "mp4" | "mov" | "mkv";
|
|
73
73
|
tmpDir: (str: string) => string;
|
|
74
74
|
deleteDirectory: (directory: string) => Promise<void>;
|
|
75
75
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -124,8 +124,8 @@ export declare const RenderInternals: {
|
|
|
124
124
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
125
125
|
DEFAULT_BROWSER: import("./browser").Browser;
|
|
126
126
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
127
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
128
|
-
validateOpenGlRenderer: (option: "
|
|
127
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | null;
|
|
128
|
+
validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | null) => "angle" | "swangle" | "egl" | "swiftshader" | null;
|
|
129
129
|
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
130
130
|
validateSelectedCrfAndCodecCombination: (crf: unknown, codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
|
|
131
131
|
validImageFormats: readonly ["png", "jpeg", "none"];
|
|
@@ -137,12 +137,12 @@ export declare const RenderInternals: {
|
|
|
137
137
|
DEFAULT_TIMEOUT: number;
|
|
138
138
|
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => [number, number];
|
|
139
139
|
validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
|
|
140
|
-
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", actualProResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" |
|
|
141
|
-
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "
|
|
140
|
+
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", actualProResProfile: "proxy" | "4444-xq" | "4444" | "hq" | "standard" | "light" | undefined) => void;
|
|
141
|
+
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "jpeg" | "png" | "none") => "none" | "valid";
|
|
142
142
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
143
143
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
144
144
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
145
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
145
|
+
isEqualOrBelowLogLevel: (currentLevel: "error" | "verbose" | "info" | "warn", level: "error" | "verbose" | "info" | "warn") => boolean;
|
|
146
146
|
isValidLogLevel: (level: string) => boolean;
|
|
147
147
|
validateEveryNthFrame: (everyNthFrame: unknown) => void;
|
|
148
148
|
perf: typeof perf;
|
package/dist/render-media.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.24",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"execa": "5.1.1",
|
|
24
24
|
"extract-zip": "2.0.1",
|
|
25
|
-
"remotion": "3.2.
|
|
25
|
+
"remotion": "3.2.24",
|
|
26
26
|
"source-map": "^0.8.0-beta.0",
|
|
27
27
|
"ws": "8.7.0"
|
|
28
28
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1f11ef8d122eadb6d6f6aa0570ffc4936d43a886"
|
|
61
61
|
}
|
package/dist/ffmpeg-args-hook.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const makeAssetsDownloadTmpDir: () => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeAssetsDownloadTmpDir = void 0;
|
|
4
|
-
const tmp_dir_1 = require("./tmp-dir");
|
|
5
|
-
let dir = null;
|
|
6
|
-
const makeAssetsDownloadTmpDir = () => {
|
|
7
|
-
if (dir) {
|
|
8
|
-
return dir;
|
|
9
|
-
}
|
|
10
|
-
dir = (0, tmp_dir_1.tmpDir)('remotion-assets-dir');
|
|
11
|
-
return dir;
|
|
12
|
-
};
|
|
13
|
-
exports.makeAssetsDownloadTmpDir = makeAssetsDownloadTmpDir;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateFfmpegArgsHook = void 0;
|
|
4
|
-
const validateFfmpegArgsHook = (ffmpegArgsHook) => {
|
|
5
|
-
if (typeof ffmpegArgsHook === 'undefined') {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
if (ffmpegArgsHook && typeof ffmpegArgsHook !== 'function') {
|
|
9
|
-
throw new TypeError(`Argument passed for "ffmpegArgsHook" is not a function: ${ffmpegArgsHook}`);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.validateFfmpegArgsHook = validateFfmpegArgsHook;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateFfmpegOverride = void 0;
|
|
4
|
-
const validateFfmpegOverride = (ffmpegArgsHook) => {
|
|
5
|
-
if (typeof ffmpegArgsHook === 'undefined') {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
if (ffmpegArgsHook && typeof ffmpegArgsHook !== 'function') {
|
|
9
|
-
throw new TypeError(`Argument passed for "ffmpegArgsHook" is not a function: ${ffmpegArgsHook}`);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.validateFfmpegOverride = validateFfmpegOverride;
|