@remotion/renderer 3.3.78 → 3.3.79
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/package.json +9 -9
- package/dist/browser/is-target-closed-err.d.ts +0 -1
- package/dist/browser/is-target-closed-err.js +0 -9
- package/dist/call-ffmpeg.d.ts +0 -17
- package/dist/call-ffmpeg.js +0 -34
- package/dist/convert-to-pcm.d.ts +0 -7
- package/dist/convert-to-pcm.js +0 -21
- package/dist/options/index.d.ts +0 -7
- package/dist/options/index.js +0 -2
- package/dist/options/option.d.ts +0 -7
- package/dist/options/option.js +0 -2
- package/dist/options/scale.d.ts +0 -2
- package/dist/options/scale.js +0 -10
- package/dist/validate-frame.d.ts +0 -1
- package/dist/validate-frame.js +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.79",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"execa": "5.1.1",
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
|
-
"remotion": "3.3.
|
|
19
|
+
"remotion": "3.3.79",
|
|
20
20
|
"source-map": "^0.8.0-beta.0",
|
|
21
21
|
"ws": "8.7.0"
|
|
22
22
|
},
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"vitest": "0.24.3"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@remotion/compositor-darwin-arm64": "3.3.
|
|
45
|
-
"@remotion/compositor-darwin-x64": "3.3.
|
|
46
|
-
"@remotion/compositor-linux-arm64-gnu": "3.3.
|
|
47
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
48
|
-
"@remotion/compositor-linux-x64-gnu": "3.3.
|
|
49
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
50
|
-
"@remotion/compositor-win32-x64-msvc": "3.3.
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "3.3.79",
|
|
45
|
+
"@remotion/compositor-darwin-x64": "3.3.79",
|
|
46
|
+
"@remotion/compositor-linux-arm64-gnu": "3.3.79",
|
|
47
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.79",
|
|
48
|
+
"@remotion/compositor-linux-x64-gnu": "3.3.79",
|
|
49
|
+
"@remotion/compositor-linux-x64-musl": "3.3.79",
|
|
50
|
+
"@remotion/compositor-win32-x64-msvc": "3.3.79"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"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;
|
package/dist/call-ffmpeg.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import execa from 'execa';
|
|
2
|
-
export declare const callFfExtraOptions: () => {
|
|
3
|
-
env: {
|
|
4
|
-
DYLD_LIBRARY_PATH: string;
|
|
5
|
-
PATH?: undefined;
|
|
6
|
-
LD_LIBRARY_PATH?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
PATH: string;
|
|
9
|
-
DYLD_LIBRARY_PATH?: undefined;
|
|
10
|
-
LD_LIBRARY_PATH?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
LD_LIBRARY_PATH: string;
|
|
13
|
-
DYLD_LIBRARY_PATH?: undefined;
|
|
14
|
-
PATH?: undefined;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const callFf: (bin: 'ffmpeg' | 'ffprobe', args: (string | null)[], options?: execa.Options<string>) => execa.ExecaChildProcess<string>;
|
package/dist/call-ffmpeg.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.callFf = exports.callFfExtraOptions = void 0;
|
|
7
|
-
const execa_1 = __importDefault(require("execa"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const get_executable_path_1 = require("./compositor/get-executable-path");
|
|
10
|
-
const truthy_1 = require("./truthy");
|
|
11
|
-
const callFfExtraOptions = () => {
|
|
12
|
-
const lib = path_1.default.join((0, get_executable_path_1.getExecutablePath)('ffmpeg-cwd'), 'remotion', 'lib');
|
|
13
|
-
return {
|
|
14
|
-
env: process.platform === 'darwin'
|
|
15
|
-
? {
|
|
16
|
-
DYLD_LIBRARY_PATH: lib,
|
|
17
|
-
}
|
|
18
|
-
: process.platform === 'win32'
|
|
19
|
-
? {
|
|
20
|
-
PATH: `${process.env.PATH};${lib}`,
|
|
21
|
-
}
|
|
22
|
-
: {
|
|
23
|
-
LD_LIBRARY_PATH: lib,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
exports.callFfExtraOptions = callFfExtraOptions;
|
|
28
|
-
const callFf = (bin, args, options) => {
|
|
29
|
-
return (0, execa_1.default)((0, get_executable_path_1.getExecutablePath)(bin), args.filter(truthy_1.truthy), {
|
|
30
|
-
...(0, exports.callFfExtraOptions)(),
|
|
31
|
-
...options,
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
exports.callFf = callFf;
|
package/dist/convert-to-pcm.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
2
|
-
export declare const convertToPcm: ({ ffmpegExecutable, input, outName, remotionRoot, }: {
|
|
3
|
-
ffmpegExecutable: FfmpegExecutable;
|
|
4
|
-
input: string;
|
|
5
|
-
outName: string;
|
|
6
|
-
remotionRoot: string;
|
|
7
|
-
}) => Promise<void>;
|
package/dist/convert-to-pcm.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.convertToPcm = void 0;
|
|
7
|
-
const execa_1 = __importDefault(require("execa"));
|
|
8
|
-
const ffmpeg_flags_1 = require("./ffmpeg-flags");
|
|
9
|
-
const sample_rate_1 = require("./sample-rate");
|
|
10
|
-
const convertToPcm = async ({ ffmpegExecutable, input, outName, remotionRoot, }) => {
|
|
11
|
-
await (0, execa_1.default)(await (0, ffmpeg_flags_1.getExecutableBinary)(ffmpegExecutable, remotionRoot, 'ffmpeg'), [
|
|
12
|
-
'-i',
|
|
13
|
-
input,
|
|
14
|
-
'-c:a',
|
|
15
|
-
'pcm_s16le',
|
|
16
|
-
'-ar',
|
|
17
|
-
String(sample_rate_1.DEFAULT_SAMPLE_RATE),
|
|
18
|
-
outName,
|
|
19
|
-
]);
|
|
20
|
-
};
|
|
21
|
-
exports.convertToPcm = convertToPcm;
|
package/dist/options/index.d.ts
DELETED
package/dist/options/index.js
DELETED
package/dist/options/option.d.ts
DELETED
package/dist/options/option.js
DELETED
package/dist/options/scale.d.ts
DELETED
package/dist/options/scale.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scaleOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
exports.scaleOption = {
|
|
6
|
-
name: 'Scale',
|
|
7
|
-
cliFlag: '--scale',
|
|
8
|
-
description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Scales the output by a factor. For example, a 1280x720px frame will become a 1920x1080px frame with a scale factor of ", (0, jsx_runtime_1.jsx)("code", { children: "1.5" }), ". Vector elements like fonts and HTML markups will be rendered with extra details."] })),
|
|
9
|
-
ssrName: 'scale',
|
|
10
|
-
};
|
package/dist/validate-frame.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validateFrame: (frame: number, durationInFrames: number) => void;
|
package/dist/validate-frame.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateFrame = void 0;
|
|
4
|
-
const validateFrame = (frame, durationInFrames) => {
|
|
5
|
-
if (typeof frame === 'undefined') {
|
|
6
|
-
throw new TypeError(`Argument missing for parameter "frame"`);
|
|
7
|
-
}
|
|
8
|
-
if (typeof frame !== 'number') {
|
|
9
|
-
throw new TypeError(`Argument passed for "frame" is not a number: ${frame}`);
|
|
10
|
-
}
|
|
11
|
-
if (!Number.isFinite(frame)) {
|
|
12
|
-
throw new RangeError(`Frame ${frame} is not finite`);
|
|
13
|
-
}
|
|
14
|
-
if (frame % 1 !== 0) {
|
|
15
|
-
throw new RangeError(`Argument for frame must be an integer, but got ${frame}`);
|
|
16
|
-
}
|
|
17
|
-
if (frame < 0 && frame < -durationInFrames) {
|
|
18
|
-
throw new RangeError(`Cannot use frame ${frame}: Duration of composition is ${durationInFrames}, therefore the lowest frame that can be rendered is ${-durationInFrames}`);
|
|
19
|
-
}
|
|
20
|
-
if (frame > durationInFrames - 1) {
|
|
21
|
-
throw new RangeError(`Cannot use frame ${frame}: Duration of composition is ${durationInFrames}, therefore the highest frame that can be rendered is ${durationInFrames - 1}`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.validateFrame = validateFrame;
|