@remotion/renderer 4.0.41 → 4.0.42
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/client.d.ts +56 -48
- package/dist/client.js +2 -0
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +9 -6
- package/dist/open-browser.d.ts +1 -0
- package/dist/open-browser.js +3 -1
- package/dist/options/enable-multiprocess-on-linux.d.ts +9 -0
- package/dist/options/enable-multiprocess-on-linux.js +12 -0
- package/dist/prespawn-ffmpeg.js +1 -0
- package/dist/render-media.js +1 -0
- package/dist/stitch-frames-to-video.js +1 -0
- package/dist/validate-even-dimensions-with-codec.d.ts +2 -1
- package/dist/validate-even-dimensions-with-codec.js +4 -1
- package/dist/validate-output-filename.d.ts +1 -1
- package/package.json +9 -9
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const BrowserSafeApis: {
|
|
3
|
-
getFileExtensionFromCodec: <T extends "
|
|
3
|
+
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
4
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
5
5
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
|
-
getDefaultCrfForCodec: (codec: "
|
|
7
|
-
getValidCrfRanges: (codec: "
|
|
8
|
-
isAudioCodec: (codec: "
|
|
6
|
+
getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
9
9
|
proResProfileOptions: readonly ["4444-xq", "4444", "hq", "standard", "light", "proxy"];
|
|
10
10
|
x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
|
|
11
11
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
@@ -23,10 +23,10 @@ export declare const BrowserSafeApis: {
|
|
|
23
23
|
readonly wav: readonly ["pcm-16"];
|
|
24
24
|
};
|
|
25
25
|
defaultFileExtensionMap: {
|
|
26
|
-
|
|
26
|
+
h264: {
|
|
27
27
|
default: import("./file-extensions").FileExtension;
|
|
28
28
|
forAudioCodec: {
|
|
29
|
-
|
|
29
|
+
mp3: {
|
|
30
30
|
possible: import("./file-extensions").FileExtension[];
|
|
31
31
|
default: import("./file-extensions").FileExtension;
|
|
32
32
|
};
|
|
@@ -34,72 +34,72 @@ export declare const BrowserSafeApis: {
|
|
|
34
34
|
possible: import("./file-extensions").FileExtension[];
|
|
35
35
|
default: import("./file-extensions").FileExtension;
|
|
36
36
|
};
|
|
37
|
+
"pcm-16": {
|
|
38
|
+
possible: import("./file-extensions").FileExtension[];
|
|
39
|
+
default: import("./file-extensions").FileExtension;
|
|
40
|
+
};
|
|
37
41
|
};
|
|
38
42
|
};
|
|
39
|
-
|
|
43
|
+
h265: {
|
|
40
44
|
default: import("./file-extensions").FileExtension;
|
|
41
45
|
forAudioCodec: {
|
|
42
|
-
|
|
46
|
+
aac: {
|
|
43
47
|
possible: import("./file-extensions").FileExtension[];
|
|
44
48
|
default: import("./file-extensions").FileExtension;
|
|
45
49
|
};
|
|
46
|
-
|
|
50
|
+
"pcm-16": {
|
|
47
51
|
possible: import("./file-extensions").FileExtension[];
|
|
48
52
|
default: import("./file-extensions").FileExtension;
|
|
49
53
|
};
|
|
50
54
|
};
|
|
51
55
|
};
|
|
52
|
-
|
|
56
|
+
vp8: {
|
|
53
57
|
default: import("./file-extensions").FileExtension;
|
|
54
58
|
forAudioCodec: {
|
|
55
59
|
"pcm-16": {
|
|
56
60
|
possible: import("./file-extensions").FileExtension[];
|
|
57
61
|
default: import("./file-extensions").FileExtension;
|
|
58
62
|
};
|
|
59
|
-
|
|
60
|
-
possible: import("./file-extensions").FileExtension[];
|
|
61
|
-
default: import("./file-extensions").FileExtension;
|
|
62
|
-
};
|
|
63
|
-
mp3: {
|
|
63
|
+
opus: {
|
|
64
64
|
possible: import("./file-extensions").FileExtension[];
|
|
65
65
|
default: import("./file-extensions").FileExtension;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
|
|
69
|
+
vp9: {
|
|
70
70
|
default: import("./file-extensions").FileExtension;
|
|
71
71
|
forAudioCodec: {
|
|
72
72
|
"pcm-16": {
|
|
73
73
|
possible: import("./file-extensions").FileExtension[];
|
|
74
74
|
default: import("./file-extensions").FileExtension;
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
opus: {
|
|
77
77
|
possible: import("./file-extensions").FileExtension[];
|
|
78
78
|
default: import("./file-extensions").FileExtension;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
mp3: {
|
|
83
83
|
default: import("./file-extensions").FileExtension;
|
|
84
84
|
forAudioCodec: {
|
|
85
|
-
|
|
85
|
+
mp3: {
|
|
86
86
|
possible: import("./file-extensions").FileExtension[];
|
|
87
87
|
default: import("./file-extensions").FileExtension;
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
"pcm-16": {
|
|
90
90
|
possible: import("./file-extensions").FileExtension[];
|
|
91
91
|
default: import("./file-extensions").FileExtension;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
aac: {
|
|
96
96
|
default: import("./file-extensions").FileExtension;
|
|
97
97
|
forAudioCodec: {
|
|
98
|
-
|
|
98
|
+
aac: {
|
|
99
99
|
possible: import("./file-extensions").FileExtension[];
|
|
100
100
|
default: import("./file-extensions").FileExtension;
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
"pcm-16": {
|
|
103
103
|
possible: import("./file-extensions").FileExtension[];
|
|
104
104
|
default: import("./file-extensions").FileExtension;
|
|
105
105
|
};
|
|
@@ -117,11 +117,11 @@ export declare const BrowserSafeApis: {
|
|
|
117
117
|
prores: {
|
|
118
118
|
default: import("./file-extensions").FileExtension;
|
|
119
119
|
forAudioCodec: {
|
|
120
|
-
|
|
120
|
+
aac: {
|
|
121
121
|
possible: import("./file-extensions").FileExtension[];
|
|
122
122
|
default: import("./file-extensions").FileExtension;
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
"pcm-16": {
|
|
125
125
|
possible: import("./file-extensions").FileExtension[];
|
|
126
126
|
default: import("./file-extensions").FileExtension;
|
|
127
127
|
};
|
|
@@ -130,11 +130,11 @@ export declare const BrowserSafeApis: {
|
|
|
130
130
|
"h264-mkv": {
|
|
131
131
|
default: import("./file-extensions").FileExtension;
|
|
132
132
|
forAudioCodec: {
|
|
133
|
-
|
|
133
|
+
mp3: {
|
|
134
134
|
possible: import("./file-extensions").FileExtension[];
|
|
135
135
|
default: import("./file-extensions").FileExtension;
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
"pcm-16": {
|
|
138
138
|
possible: import("./file-extensions").FileExtension[];
|
|
139
139
|
default: import("./file-extensions").FileExtension;
|
|
140
140
|
};
|
|
@@ -146,21 +146,13 @@ export declare const BrowserSafeApis: {
|
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
148
|
defaultAudioCodecs: {
|
|
149
|
-
aac: {
|
|
150
|
-
compressed: "pcm-16" | "aac" | null;
|
|
151
|
-
lossless: "pcm-16" | "aac" | null;
|
|
152
|
-
};
|
|
153
|
-
mp3: {
|
|
154
|
-
compressed: "pcm-16" | "mp3" | null;
|
|
155
|
-
lossless: "pcm-16" | "mp3" | null;
|
|
156
|
-
};
|
|
157
149
|
h264: {
|
|
158
|
-
compressed: "
|
|
159
|
-
lossless: "
|
|
150
|
+
compressed: "mp3" | "aac" | "pcm-16" | null;
|
|
151
|
+
lossless: "mp3" | "aac" | "pcm-16" | null;
|
|
160
152
|
};
|
|
161
153
|
h265: {
|
|
162
|
-
compressed: "
|
|
163
|
-
lossless: "
|
|
154
|
+
compressed: "aac" | "pcm-16" | null;
|
|
155
|
+
lossless: "aac" | "pcm-16" | null;
|
|
164
156
|
};
|
|
165
157
|
vp8: {
|
|
166
158
|
compressed: "pcm-16" | "opus" | null;
|
|
@@ -170,27 +162,35 @@ export declare const BrowserSafeApis: {
|
|
|
170
162
|
compressed: "pcm-16" | "opus" | null;
|
|
171
163
|
lossless: "pcm-16" | "opus" | null;
|
|
172
164
|
};
|
|
165
|
+
mp3: {
|
|
166
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
167
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
168
|
+
};
|
|
169
|
+
aac: {
|
|
170
|
+
compressed: "aac" | "pcm-16" | null;
|
|
171
|
+
lossless: "aac" | "pcm-16" | null;
|
|
172
|
+
};
|
|
173
173
|
wav: {
|
|
174
174
|
compressed: "pcm-16" | null;
|
|
175
175
|
lossless: "pcm-16" | null;
|
|
176
176
|
};
|
|
177
177
|
prores: {
|
|
178
|
-
compressed: "
|
|
179
|
-
lossless: "
|
|
178
|
+
compressed: "aac" | "pcm-16" | null;
|
|
179
|
+
lossless: "aac" | "pcm-16" | null;
|
|
180
180
|
};
|
|
181
181
|
"h264-mkv": {
|
|
182
|
-
compressed: "
|
|
183
|
-
lossless: "
|
|
182
|
+
compressed: "mp3" | "pcm-16" | null;
|
|
183
|
+
lossless: "mp3" | "pcm-16" | null;
|
|
184
184
|
};
|
|
185
185
|
gif: {
|
|
186
186
|
compressed: null;
|
|
187
187
|
lossless: null;
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "
|
|
191
|
-
validateOutputFilename: <T_1 extends "
|
|
190
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
|
|
191
|
+
validateOutputFilename: <T_1 extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
192
192
|
codec: T_1;
|
|
193
|
-
audioCodec: "
|
|
193
|
+
audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
194
194
|
extension: string;
|
|
195
195
|
preferLossless: boolean;
|
|
196
196
|
}) => void;
|
|
@@ -299,6 +299,14 @@ export declare const BrowserSafeApis: {
|
|
|
299
299
|
docLink: string;
|
|
300
300
|
type: boolean | null;
|
|
301
301
|
};
|
|
302
|
+
enableMultiprocessOnLinuxOption: {
|
|
303
|
+
name: string;
|
|
304
|
+
cliFlag: "enable-multiprocess-on-linux";
|
|
305
|
+
description: () => JSX.Element;
|
|
306
|
+
ssrName: string;
|
|
307
|
+
docLink: string;
|
|
308
|
+
type: boolean;
|
|
309
|
+
};
|
|
302
310
|
};
|
|
303
311
|
validColorSpaces: readonly ["default", "bt709"];
|
|
304
312
|
optionsMap: {
|
|
@@ -383,6 +391,6 @@ export declare const BrowserSafeApis: {
|
|
|
383
391
|
type: number | null;
|
|
384
392
|
}];
|
|
385
393
|
};
|
|
386
|
-
codecSupportsCrf: (codec: "
|
|
387
|
-
codecSupportsVideoBitrate: (codec: "
|
|
394
|
+
codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
395
|
+
codecSupportsVideoBitrate: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
|
|
388
396
|
};
|
package/dist/client.js
CHANGED
|
@@ -12,6 +12,7 @@ const audio_bitrate_1 = require("./options/audio-bitrate");
|
|
|
12
12
|
const color_space_1 = require("./options/color-space");
|
|
13
13
|
const crf_2 = require("./options/crf");
|
|
14
14
|
const delete_after_1 = require("./options/delete-after");
|
|
15
|
+
const enable_multiprocess_on_linux_1 = require("./options/enable-multiprocess-on-linux");
|
|
15
16
|
const enforce_audio_1 = require("./options/enforce-audio");
|
|
16
17
|
const folder_expiry_1 = require("./options/folder-expiry");
|
|
17
18
|
const jpeg_quality_1 = require("./options/jpeg-quality");
|
|
@@ -56,6 +57,7 @@ exports.BrowserSafeApis = {
|
|
|
56
57
|
colorSpaceOption: color_space_1.colorSpaceOption,
|
|
57
58
|
deleteAfterOption: delete_after_1.deleteAfterOption,
|
|
58
59
|
folderExpiryOption: folder_expiry_1.folderExpiryOption,
|
|
60
|
+
enableMultiprocessOnLinuxOption: enable_multiprocess_on_linux_1.enableMultiprocessOnLinuxOption,
|
|
59
61
|
},
|
|
60
62
|
validColorSpaces: color_space_1.validColorSpaces,
|
|
61
63
|
optionsMap: options_map_1.optionsMap,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AudioCodec } from './audio-codec';
|
|
2
2
|
import type { Codec } from './codec';
|
|
3
3
|
import type { FileExtension } from './file-extensions';
|
|
4
|
-
export declare const getFileExtensionFromCodec: <T extends "
|
|
5
|
-
export declare const makeFileExtensionMap: () => Record<string, ("
|
|
4
|
+
export declare const getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
|
|
5
|
+
export declare const makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
|
|
6
6
|
export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
import execa from 'execa';
|
|
2
4
|
import { HeadlessBrowser } from './browser/Browser';
|
|
3
5
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
@@ -54,11 +56,12 @@ export declare const RenderInternals: {
|
|
|
54
56
|
close: () => Promise<void>;
|
|
55
57
|
compositor: import("./compositor/compositor").Compositor;
|
|
56
58
|
}>;
|
|
57
|
-
validateEvenDimensionsWithCodec: ({ width, height, codec, scale, }: {
|
|
59
|
+
validateEvenDimensionsWithCodec: ({ width, height, codec, scale, wantsImageSequence, }: {
|
|
58
60
|
width: number;
|
|
59
61
|
height: number;
|
|
60
62
|
scale: number;
|
|
61
63
|
codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
64
|
+
wantsImageSequence: boolean;
|
|
62
65
|
}) => void;
|
|
63
66
|
getFileExtensionFromCodec: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">(codec: T, audioCodec: "mp3" | "aac" | "pcm-16" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
64
67
|
tmpDir: (str: string) => string;
|
|
@@ -121,8 +124,8 @@ export declare const RenderInternals: {
|
|
|
121
124
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
122
125
|
DEFAULT_BROWSER: "chrome";
|
|
123
126
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
124
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
125
|
-
validateOpenGlRenderer: (option: "
|
|
127
|
+
DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | null;
|
|
128
|
+
validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | null;
|
|
126
129
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
127
130
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
128
131
|
validateJpegQuality: (q: number | undefined) => void;
|
|
@@ -310,8 +313,8 @@ export declare const RenderInternals: {
|
|
|
310
313
|
};
|
|
311
314
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
312
315
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
313
|
-
DEFAULT_STILL_IMAGE_FORMAT: "
|
|
314
|
-
DEFAULT_VIDEO_IMAGE_FORMAT: "
|
|
316
|
+
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
|
|
317
|
+
DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
|
|
315
318
|
DEFAULT_JPEG_QUALITY: number;
|
|
316
319
|
chalk: {
|
|
317
320
|
enabled: () => boolean;
|
|
@@ -424,7 +427,7 @@ export declare const RenderInternals: {
|
|
|
424
427
|
frame: number;
|
|
425
428
|
serializedInputPropsWithCustomSchema: string;
|
|
426
429
|
serializedResolvedPropsWithCustomSchema: string;
|
|
427
|
-
imageFormat: "
|
|
430
|
+
imageFormat: "jpeg" | "png" | "webp" | "pdf";
|
|
428
431
|
jpegQuality: number;
|
|
429
432
|
puppeteerInstance: HeadlessBrowser | null;
|
|
430
433
|
envVariables: Record<string, string>;
|
package/dist/open-browser.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type ChromiumOptions = {
|
|
|
10
10
|
gl?: OpenGlRenderer | null;
|
|
11
11
|
headless?: boolean;
|
|
12
12
|
userAgent?: string | null;
|
|
13
|
+
enableMultiProcessOnLinux?: boolean;
|
|
13
14
|
};
|
|
14
15
|
export declare const killAllBrowsers: () => Promise<void>;
|
|
15
16
|
type InternalOpenBrowserOptions = {
|
package/dist/open-browser.js
CHANGED
|
@@ -94,7 +94,9 @@ const internalOpenBrowser = async ({ browser, browserExecutable, chromiumOptions
|
|
|
94
94
|
'--disable-setuid-sandbox',
|
|
95
95
|
...customGlRenderer,
|
|
96
96
|
'--disable-background-media-suspend',
|
|
97
|
-
process.platform === 'linux' &&
|
|
97
|
+
process.platform === 'linux' &&
|
|
98
|
+
chromiumOptions.gl !== 'vulkan' &&
|
|
99
|
+
!chromiumOptions.enableMultiProcessOnLinux
|
|
98
100
|
? '--single-process'
|
|
99
101
|
: null,
|
|
100
102
|
'--allow-running-insecure-content',
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.enableMultiprocessOnLinuxOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
exports.enableMultiprocessOnLinuxOption = {
|
|
6
|
+
name: 'Enable Multiprocess on Linux',
|
|
7
|
+
cliFlag: 'enable-multiprocess-on-linux',
|
|
8
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Removes the ", (0, jsx_runtime_1.jsx)("code", { children: '--single-process' }), " flag that gets passed to Chromium on Linux by default. This will make the render faster because multiple processes can be used, but may cause issues with some Linux distributions or if window server libraries are missing."] })),
|
|
9
|
+
ssrName: 'chromiumOptions.enableMultiprocessOnLinux',
|
|
10
|
+
docLink: 'https://www.remotion.dev/docs/chromium-flags',
|
|
11
|
+
type: false,
|
|
12
|
+
};
|
package/dist/prespawn-ffmpeg.js
CHANGED
|
@@ -21,6 +21,7 @@ const prespawnFfmpeg = (options) => {
|
|
|
21
21
|
height: options.height,
|
|
22
22
|
codec,
|
|
23
23
|
scale: 1,
|
|
24
|
+
wantsImageSequence: false,
|
|
24
25
|
});
|
|
25
26
|
const pixelFormat = (_b = options.pixelFormat) !== null && _b !== void 0 ? _b : pixel_format_1.DEFAULT_PIXEL_FORMAT;
|
|
26
27
|
const proResProfileName = (0, get_prores_profile_name_1.getProResProfileName)(codec, options.proResProfile);
|
package/dist/render-media.js
CHANGED
|
@@ -146,6 +146,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
|
|
|
146
146
|
height: composition.height,
|
|
147
147
|
scale,
|
|
148
148
|
width: composition.width,
|
|
149
|
+
wantsImageSequence: false,
|
|
149
150
|
});
|
|
150
151
|
const realFrameRange = (0, get_frame_to_render_1.getRealFrameRange)(composition.durationInFrames, frameRange);
|
|
151
152
|
const callUpdate = () => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
|
-
export declare const validateEvenDimensionsWithCodec: ({ width, height, codec, scale, }: {
|
|
2
|
+
export declare const validateEvenDimensionsWithCodec: ({ width, height, codec, scale, wantsImageSequence, }: {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
scale: number;
|
|
6
6
|
codec: Codec;
|
|
7
|
+
wantsImageSequence: boolean;
|
|
7
8
|
}) => void;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateEvenDimensionsWithCodec = void 0;
|
|
4
4
|
const truthy_1 = require("./truthy");
|
|
5
|
-
const validateEvenDimensionsWithCodec = ({ width, height, codec, scale, }) => {
|
|
5
|
+
const validateEvenDimensionsWithCodec = ({ width, height, codec, scale, wantsImageSequence, }) => {
|
|
6
|
+
if (wantsImageSequence) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
6
9
|
if (codec !== 'h264-mkv' && codec !== 'h264' && codec !== 'h265') {
|
|
7
10
|
return;
|
|
8
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AudioCodec } from './audio-codec';
|
|
2
|
-
export declare const validateOutputFilename: <T extends "
|
|
2
|
+
export declare const validateOutputFilename: <T extends "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">({ codec, audioCodec, extension, preferLossless, }: {
|
|
3
3
|
codec: T;
|
|
4
4
|
audioCodec: AudioCodec | null;
|
|
5
5
|
extension: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.42",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.7.0",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.42"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"vitest": "0.31.1"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
44
|
-
"@remotion/compositor-
|
|
45
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
46
|
-
"@remotion/compositor-linux-
|
|
47
|
-
"@remotion/compositor-
|
|
48
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.42",
|
|
44
|
+
"@remotion/compositor-darwin-x64": "4.0.42",
|
|
45
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.42",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.42",
|
|
47
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.42",
|
|
48
|
+
"@remotion/compositor-linux-x64-musl": "4.0.42",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.42"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|