@remotion/renderer 3.3.25 → 3.3.27
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/compositor/payload.d.ts +39 -0
- package/dist/compositor/payload.js +2 -0
- package/dist/create-ffmpeg-complex-filter.d.ts +1 -4
- package/dist/extract-frame-from-video.d.ts +1 -0
- package/dist/ffmpeg-flags.js +3 -1
- package/dist/get-extension-from-codec.d.ts +1 -1
- package/dist/get-frame-of-video-slow.d.ts +2 -4
- package/dist/guess-extension-for-media.d.ts +1 -1
- package/dist/index.d.ts +5 -4
- 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 +12 -12
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare type Layer = {
|
|
2
|
+
type: 'PngImage';
|
|
3
|
+
params: {
|
|
4
|
+
src: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
type: 'JpgImage';
|
|
12
|
+
params: {
|
|
13
|
+
src: string;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: 'Solid';
|
|
21
|
+
params: {
|
|
22
|
+
fill: [number, number, number, number];
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare type CliInput = {
|
|
30
|
+
v: number;
|
|
31
|
+
output: string;
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
layers: Layer[];
|
|
35
|
+
};
|
|
36
|
+
export declare type ErrorPayload = {
|
|
37
|
+
error: string;
|
|
38
|
+
backtrace: string;
|
|
39
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { DownloadMap } from './assets/download-map';
|
|
2
2
|
export declare const createFfmpegComplexFilter: (filters: number, downloadMap: DownloadMap) => Promise<{
|
|
3
|
-
complexFilterFlag: [
|
|
4
|
-
string,
|
|
5
|
-
string
|
|
6
|
-
] | null;
|
|
3
|
+
complexFilterFlag: [string, string] | null;
|
|
7
4
|
cleanup: () => void;
|
|
8
5
|
}>;
|
package/dist/ffmpeg-flags.js
CHANGED
|
@@ -32,7 +32,9 @@ const randomFfmpegRuntimeId = String(Math.random()).replace('0.', '');
|
|
|
32
32
|
const ffmpegInNodeModules = (remotionRoot, binary) => {
|
|
33
33
|
const folderName = getFfmpegFolderName(remotionRoot);
|
|
34
34
|
if (!fs_1.default.existsSync(folderName)) {
|
|
35
|
-
fs_1.default.mkdirSync(folderName
|
|
35
|
+
fs_1.default.mkdirSync(folderName, {
|
|
36
|
+
recursive: true,
|
|
37
|
+
});
|
|
36
38
|
}
|
|
37
39
|
// Check if a version of FFMPEG is already installed.
|
|
38
40
|
// To qualify, it must have the expected file size
|
|
@@ -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,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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import execa from 'execa';
|
|
2
3
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
3
4
|
import { mimeContentType, mimeLookup } from './mime-types';
|
|
@@ -60,7 +61,7 @@ export declare const RenderInternals: {
|
|
|
60
61
|
scale: number;
|
|
61
62
|
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
62
63
|
}) => void;
|
|
63
|
-
getFileExtensionFromCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", type: "chunk" | "final") => "mp3" | "aac" | "wav" | "gif" | "
|
|
64
|
+
getFileExtensionFromCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", type: "chunk" | "final") => "mp3" | "aac" | "wav" | "gif" | "webm" | "mp4" | "mov" | "mkv";
|
|
64
65
|
tmpDir: (str: string) => string;
|
|
65
66
|
deleteDirectory: (directory: string) => Promise<void>;
|
|
66
67
|
isServeUrl: (potentialUrl: string) => boolean;
|
|
@@ -114,8 +115,8 @@ export declare const RenderInternals: {
|
|
|
114
115
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
115
116
|
DEFAULT_BROWSER: import("./browser").Browser;
|
|
116
117
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
117
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
118
|
-
validateOpenGlRenderer: (option: "
|
|
118
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | null;
|
|
119
|
+
validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | null) => "angle" | "swangle" | "egl" | "swiftshader" | null;
|
|
119
120
|
validImageFormats: readonly ["png", "jpeg", "none"];
|
|
120
121
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
121
122
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -125,7 +126,7 @@ export declare const RenderInternals: {
|
|
|
125
126
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
126
127
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
127
128
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
128
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
129
|
+
isEqualOrBelowLogLevel: (currentLevel: "error" | "verbose" | "info" | "warn", level: "error" | "verbose" | "info" | "warn") => boolean;
|
|
129
130
|
isValidLogLevel: (level: string) => boolean;
|
|
130
131
|
perf: typeof perf;
|
|
131
132
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
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.27",
|
|
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.27",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.7.0"
|
|
30
30
|
},
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@testing-library/react": "13.3.0",
|
|
39
39
|
"@types/node": "^16.7.5",
|
|
40
40
|
"@types/progress": "2.0.5",
|
|
41
|
-
"@types/react": "18.0.
|
|
42
|
-
"@types/react-dom": "18.0.
|
|
41
|
+
"@types/react": "18.0.26",
|
|
42
|
+
"@types/react-dom": "18.0.10",
|
|
43
43
|
"eslint": "8.25.0",
|
|
44
44
|
"prettier": "^2.7.1",
|
|
45
45
|
"prettier-plugin-organize-imports": "^2.3.4",
|
|
@@ -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.27",
|
|
53
|
+
"@remotion/compositor-darwin-x64": "3.3.27",
|
|
54
|
+
"@remotion/compositor-linux-arm64-gnu": "3.3.27",
|
|
55
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.27",
|
|
56
|
+
"@remotion/compositor-linux-x64-gnu": "3.3.27",
|
|
57
|
+
"@remotion/compositor-linux-x64-musl": "3.3.27",
|
|
58
|
+
"@remotion/compositor-win32-x64-msvc": "3.3.27"
|
|
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": "5dfc0dfa0df9592a358127a9aea9219244e6807a"
|
|
71
71
|
}
|