@remotion/renderer 3.3.62 → 3.3.63
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/is-target-closed-err.d.ts +1 -0
- package/dist/browser/is-target-closed-err.js +9 -0
- package/dist/call-ffmpeg.d.ts +17 -0
- package/dist/call-ffmpeg.js +34 -0
- package/dist/convert-to-pcm.d.ts +1 -4
- package/dist/convert-to-pcm.js +3 -7
- package/dist/create-ffmpeg-complex-filter.d.ts +1 -4
- package/dist/determine-resize-params.d.ts +1 -4
- package/dist/extract-frame-from-video.d.ts +1 -0
- package/dist/get-frame-of-video-slow.d.ts +2 -4
- package/dist/index.d.ts +1 -0
- package/dist/last-frame-from-video-cache.d.ts +1 -0
- package/dist/provide-screenshot.d.ts +1 -0
- package/dist/puppeteer-screenshot.d.ts +1 -0
- package/dist/render-media.d.ts +1 -0
- package/dist/screenshot-dom-element.d.ts +1 -0
- package/dist/screenshot-task.d.ts +1 -0
- package/dist/take-frame-and-compose.d.ts +1 -0
- package/dist/try-to-extract-frame-of-video-fast.d.ts +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isTargetClosedErr: (error: Error | undefined) => boolean | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
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>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const convertToPcm: ({ ffmpegExecutable, input, outName, remotionRoot, }: {
|
|
3
|
-
ffmpegExecutable: FfmpegExecutable;
|
|
1
|
+
export declare const convertToPcm: ({ input, outName, }: {
|
|
4
2
|
input: string;
|
|
5
3
|
outName: string;
|
|
6
|
-
remotionRoot: string;
|
|
7
4
|
}) => Promise<void>;
|
package/dist/convert-to-pcm.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.convertToPcm = void 0;
|
|
7
|
-
const
|
|
8
|
-
const ffmpeg_flags_1 = require("./ffmpeg-flags");
|
|
4
|
+
const call_ffmpeg_1 = require("./call-ffmpeg");
|
|
9
5
|
const sample_rate_1 = require("./sample-rate");
|
|
10
|
-
const convertToPcm = async ({
|
|
11
|
-
await (0,
|
|
6
|
+
const convertToPcm = async ({ input, outName, }) => {
|
|
7
|
+
await (0, call_ffmpeg_1.callFf)('ffmpeg', [
|
|
12
8
|
'-i',
|
|
13
9
|
input,
|
|
14
10
|
'-c:a',
|
|
@@ -7,9 +7,6 @@ export declare const createFfmpegComplexFilter: ({ filters, downloadMap, ffmpegE
|
|
|
7
7
|
ffmpegExecutable: FfmpegExecutable;
|
|
8
8
|
remotionRoot: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
complexFilterFlag: [
|
|
11
|
-
string,
|
|
12
|
-
string
|
|
13
|
-
] | null;
|
|
10
|
+
complexFilterFlag: [string, string] | null;
|
|
14
11
|
cleanup: () => void;
|
|
15
12
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { OffthreadVideoImageFormat } from 'remotion';
|
|
2
3
|
import type { SpecialVCodecForTransparency } from './assets/download-map';
|
|
3
4
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
@@ -7,10 +8,7 @@ export declare const getFrameOfVideoSlow: ({ src, duration, ffmpegExecutable, im
|
|
|
7
8
|
duration: number;
|
|
8
9
|
imageFormat: OffthreadVideoImageFormat;
|
|
9
10
|
specialVCodecForTransparency: SpecialVCodecForTransparency;
|
|
10
|
-
needsResize: [
|
|
11
|
-
number,
|
|
12
|
-
number
|
|
13
|
-
] | null;
|
|
11
|
+
needsResize: [number, number] | null;
|
|
14
12
|
offset: number;
|
|
15
13
|
fps: number | null;
|
|
16
14
|
remotionRoot: string;
|
package/dist/index.d.ts
CHANGED
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.3.
|
|
3
|
+
"version": "3.3.63",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"execa": "5.1.1",
|
|
26
26
|
"extract-zip": "2.0.1",
|
|
27
|
-
"remotion": "3.3.
|
|
27
|
+
"remotion": "3.3.63",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.7.0"
|
|
30
30
|
},
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"vitest": "0.24.3"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"@remotion/compositor-darwin-arm64": "3.3.
|
|
53
|
-
"@remotion/compositor-darwin-x64": "3.3.
|
|
54
|
-
"@remotion/compositor-linux-arm64-gnu": "3.3.
|
|
55
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
56
|
-
"@remotion/compositor-linux-x64-gnu": "3.3.
|
|
57
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
58
|
-
"@remotion/compositor-win32-x64-msvc": "3.3.
|
|
52
|
+
"@remotion/compositor-darwin-arm64": "3.3.63",
|
|
53
|
+
"@remotion/compositor-darwin-x64": "3.3.63",
|
|
54
|
+
"@remotion/compositor-linux-arm64-gnu": "3.3.63",
|
|
55
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.63",
|
|
56
|
+
"@remotion/compositor-linux-x64-gnu": "3.3.63",
|
|
57
|
+
"@remotion/compositor-linux-x64-musl": "3.3.63",
|
|
58
|
+
"@remotion/compositor-win32-x64-msvc": "3.3.63"
|
|
59
59
|
},
|
|
60
60
|
"keywords": [
|
|
61
61
|
"remotion",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "d151c94785f1727bef8497e2af68e2add0a58807"
|
|
71
71
|
}
|