@remotion/renderer 4.0.124 → 4.0.125
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/call-ffmpeg.d.ts +1 -0
- package/dist/can-concatenate-seamlessly.d.ts +3 -0
- package/dist/can-concatenate-seamlessly.js +7 -0
- package/dist/check-apple-silicon.d.ts +3 -1
- package/dist/check-apple-silicon.js +32 -2
- package/dist/client.d.ts +70 -70
- package/dist/create-combined-video.d.ts +2 -3
- package/dist/create-combined-video.js +1 -7
- package/dist/get-compositions.js +1 -0
- package/dist/get-extension-from-audio-codec.d.ts +2 -2
- package/dist/get-extension-from-codec.d.ts +2 -2
- package/dist/index.d.ts +45 -42
- package/dist/options/audio-codec.d.ts +5 -5
- package/dist/options/index.d.ts +8 -8
- package/dist/options/options-map.d.ts +8 -8
- package/dist/options/separate-audio-to.d.ts +18 -0
- package/dist/options/separate-audio-to.js +31 -0
- package/dist/options/video-codec.d.ts +1 -1
- package/dist/port-config.d.ts +2 -6
- package/dist/port-config.js +7 -4
- package/dist/prepare-server.d.ts +2 -1
- package/dist/prepare-server.js +3 -1
- package/dist/pure.d.ts +3 -3
- package/dist/render-frames.js +1 -0
- package/dist/render-media.js +1 -0
- package/dist/render-still.js +1 -0
- package/dist/select-composition.js +1 -0
- package/dist/serve-static.d.ts +1 -0
- package/dist/serve-static.js +1 -1
- package/dist/should-seamless.d.ts +3 -0
- package/dist/should-seamless.js +7 -0
- package/dist/supported-audio-codecs.d.ts +13 -0
- package/dist/supported-audio-codecs.js +16 -0
- package/dist/take-frame-and-compose.d.ts +0 -1
- package/dist/validate-output-filename.d.ts +1 -1
- package/dist/x264-preset.d.ts +0 -15
- package/dist/x264-preset.js +1 -26
- package/package.json +9 -9
- package/dist/does-have-m2-bug.d.ts +0 -3
- package/dist/does-have-m2-bug.js +0 -12
- package/dist/options/prores-profile.d.ts +0 -0
- package/dist/options/prores-profile.js +0 -1
package/dist/call-ffmpeg.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.canConcatSeamlessly = void 0;
|
|
4
|
+
const canConcatSeamlessly = (audioCodec, codec) => {
|
|
5
|
+
return audioCodec === 'aac' && codec === 'h264';
|
|
6
|
+
};
|
|
7
|
+
exports.canConcatSeamlessly = canConcatSeamlessly;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LogLevel } from './log-level';
|
|
2
|
+
export declare const gLibCErrorMessage: (libCString: string) => string | null;
|
|
3
|
+
export declare const checkNodeVersionAndWarnAboutRosetta: (logLevel: LogLevel, indent: boolean) => void;
|
|
@@ -1,12 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkNodeVersionAndWarnAboutRosetta = void 0;
|
|
4
|
-
const
|
|
3
|
+
exports.checkNodeVersionAndWarnAboutRosetta = exports.gLibCErrorMessage = void 0;
|
|
4
|
+
const logger_1 = require("./logger");
|
|
5
|
+
const gLibCErrorMessage = (libCString) => {
|
|
6
|
+
const split = libCString.split('.');
|
|
7
|
+
if (split.length !== 2) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
if (split[0] === '2' && Number(split[1]) >= 35) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
if (Number(split[0]) > 2) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return `Rendering videos requires glibc 2.35 or higher. Your system has glibc ${libCString}.`;
|
|
17
|
+
};
|
|
18
|
+
exports.gLibCErrorMessage = gLibCErrorMessage;
|
|
19
|
+
const checkLibCRequirement = (logLevel, indent) => {
|
|
20
|
+
const { report } = process;
|
|
21
|
+
if (report) {
|
|
22
|
+
// @ts-expect-error no types
|
|
23
|
+
const { glibcVersionRuntime } = report.getReport().header;
|
|
24
|
+
if (!glibcVersionRuntime) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const error = (0, exports.gLibCErrorMessage)(glibcVersionRuntime);
|
|
28
|
+
if (error) {
|
|
29
|
+
logger_1.Log.warn({ logLevel, indent }, error);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const checkNodeVersionAndWarnAboutRosetta = (logLevel, indent) => {
|
|
5
34
|
const version = process.version.replace('v', '').split('.');
|
|
6
35
|
const majorVersion = Number(version[0]);
|
|
7
36
|
const requiredNodeVersion = 16;
|
|
8
37
|
if (majorVersion < 16) {
|
|
9
38
|
throw new Error(`Remotion requires at least Node ${requiredNodeVersion}. You currently have ${process.version}. Update your node version to ${requiredNodeVersion} to use Remotion.`);
|
|
10
39
|
}
|
|
40
|
+
checkLibCRequirement(logLevel, indent);
|
|
11
41
|
};
|
|
12
42
|
exports.checkNodeVersionAndWarnAboutRosetta = checkNodeVersionAndWarnAboutRosetta;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { AvailableOptions, TypeOfOption } from './options';
|
|
2
2
|
export declare const BrowserSafeApis: {
|
|
3
|
-
getFileExtensionFromCodec: <T extends "
|
|
3
|
+
getFileExtensionFromCodec: <T extends "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: "pcm-16" | "aac" | "mp3" | "opus" | null) => import("./file-extensions").FileExtension;
|
|
4
4
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
5
5
|
validAudioCodecs: readonly ["pcm-16", "aac", "mp3", "opus"];
|
|
6
|
-
getDefaultCrfForCodec: (codec: "
|
|
7
|
-
getValidCrfRanges: (codec: "
|
|
8
|
-
isAudioCodec: (codec: "
|
|
6
|
+
getDefaultCrfForCodec: (codec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => number;
|
|
7
|
+
getValidCrfRanges: (codec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => [number, number];
|
|
8
|
+
isAudioCodec: (codec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null | 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"];
|
|
12
12
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
13
|
-
validPixelFormatsForCodec: (codec: "
|
|
13
|
+
validPixelFormatsForCodec: (codec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
|
|
14
14
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
15
15
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
16
16
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -29,10 +29,10 @@ export declare const BrowserSafeApis: {
|
|
|
29
29
|
readonly wav: readonly ["pcm-16"];
|
|
30
30
|
};
|
|
31
31
|
defaultFileExtensionMap: {
|
|
32
|
-
|
|
32
|
+
aac: {
|
|
33
33
|
default: import("./file-extensions").FileExtension;
|
|
34
34
|
forAudioCodec: {
|
|
35
|
-
|
|
35
|
+
"pcm-16": {
|
|
36
36
|
possible: import("./file-extensions").FileExtension[];
|
|
37
37
|
default: import("./file-extensions").FileExtension;
|
|
38
38
|
};
|
|
@@ -40,72 +40,72 @@ export declare const BrowserSafeApis: {
|
|
|
40
40
|
possible: import("./file-extensions").FileExtension[];
|
|
41
41
|
default: import("./file-extensions").FileExtension;
|
|
42
42
|
};
|
|
43
|
-
"pcm-16": {
|
|
44
|
-
possible: import("./file-extensions").FileExtension[];
|
|
45
|
-
default: import("./file-extensions").FileExtension;
|
|
46
|
-
};
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
|
-
|
|
45
|
+
mp3: {
|
|
50
46
|
default: import("./file-extensions").FileExtension;
|
|
51
47
|
forAudioCodec: {
|
|
52
|
-
|
|
48
|
+
"pcm-16": {
|
|
53
49
|
possible: import("./file-extensions").FileExtension[];
|
|
54
50
|
default: import("./file-extensions").FileExtension;
|
|
55
51
|
};
|
|
56
|
-
|
|
52
|
+
mp3: {
|
|
57
53
|
possible: import("./file-extensions").FileExtension[];
|
|
58
54
|
default: import("./file-extensions").FileExtension;
|
|
59
55
|
};
|
|
60
56
|
};
|
|
61
57
|
};
|
|
62
|
-
|
|
58
|
+
h264: {
|
|
63
59
|
default: import("./file-extensions").FileExtension;
|
|
64
60
|
forAudioCodec: {
|
|
65
61
|
"pcm-16": {
|
|
66
62
|
possible: import("./file-extensions").FileExtension[];
|
|
67
63
|
default: import("./file-extensions").FileExtension;
|
|
68
64
|
};
|
|
69
|
-
|
|
65
|
+
aac: {
|
|
66
|
+
possible: import("./file-extensions").FileExtension[];
|
|
67
|
+
default: import("./file-extensions").FileExtension;
|
|
68
|
+
};
|
|
69
|
+
mp3: {
|
|
70
70
|
possible: import("./file-extensions").FileExtension[];
|
|
71
71
|
default: import("./file-extensions").FileExtension;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
|
|
75
|
+
h265: {
|
|
76
76
|
default: import("./file-extensions").FileExtension;
|
|
77
77
|
forAudioCodec: {
|
|
78
78
|
"pcm-16": {
|
|
79
79
|
possible: import("./file-extensions").FileExtension[];
|
|
80
80
|
default: import("./file-extensions").FileExtension;
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
aac: {
|
|
83
83
|
possible: import("./file-extensions").FileExtension[];
|
|
84
84
|
default: import("./file-extensions").FileExtension;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
vp8: {
|
|
89
89
|
default: import("./file-extensions").FileExtension;
|
|
90
90
|
forAudioCodec: {
|
|
91
|
-
|
|
91
|
+
"pcm-16": {
|
|
92
92
|
possible: import("./file-extensions").FileExtension[];
|
|
93
93
|
default: import("./file-extensions").FileExtension;
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
opus: {
|
|
96
96
|
possible: import("./file-extensions").FileExtension[];
|
|
97
97
|
default: import("./file-extensions").FileExtension;
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
vp9: {
|
|
102
102
|
default: import("./file-extensions").FileExtension;
|
|
103
103
|
forAudioCodec: {
|
|
104
|
-
|
|
104
|
+
"pcm-16": {
|
|
105
105
|
possible: import("./file-extensions").FileExtension[];
|
|
106
106
|
default: import("./file-extensions").FileExtension;
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
opus: {
|
|
109
109
|
possible: import("./file-extensions").FileExtension[];
|
|
110
110
|
default: import("./file-extensions").FileExtension;
|
|
111
111
|
};
|
|
@@ -123,11 +123,11 @@ export declare const BrowserSafeApis: {
|
|
|
123
123
|
prores: {
|
|
124
124
|
default: import("./file-extensions").FileExtension;
|
|
125
125
|
forAudioCodec: {
|
|
126
|
-
|
|
126
|
+
"pcm-16": {
|
|
127
127
|
possible: import("./file-extensions").FileExtension[];
|
|
128
128
|
default: import("./file-extensions").FileExtension;
|
|
129
129
|
};
|
|
130
|
-
|
|
130
|
+
aac: {
|
|
131
131
|
possible: import("./file-extensions").FileExtension[];
|
|
132
132
|
default: import("./file-extensions").FileExtension;
|
|
133
133
|
};
|
|
@@ -136,11 +136,11 @@ export declare const BrowserSafeApis: {
|
|
|
136
136
|
"h264-mkv": {
|
|
137
137
|
default: import("./file-extensions").FileExtension;
|
|
138
138
|
forAudioCodec: {
|
|
139
|
-
|
|
139
|
+
"pcm-16": {
|
|
140
140
|
possible: import("./file-extensions").FileExtension[];
|
|
141
141
|
default: import("./file-extensions").FileExtension;
|
|
142
142
|
};
|
|
143
|
-
|
|
143
|
+
mp3: {
|
|
144
144
|
possible: import("./file-extensions").FileExtension[];
|
|
145
145
|
default: import("./file-extensions").FileExtension;
|
|
146
146
|
};
|
|
@@ -149,11 +149,11 @@ export declare const BrowserSafeApis: {
|
|
|
149
149
|
"h264-ts": {
|
|
150
150
|
default: import("./file-extensions").FileExtension;
|
|
151
151
|
forAudioCodec: {
|
|
152
|
-
|
|
152
|
+
"pcm-16": {
|
|
153
153
|
possible: import("./file-extensions").FileExtension[];
|
|
154
154
|
default: import("./file-extensions").FileExtension;
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
aac: {
|
|
157
157
|
possible: import("./file-extensions").FileExtension[];
|
|
158
158
|
default: import("./file-extensions").FileExtension;
|
|
159
159
|
};
|
|
@@ -165,13 +165,21 @@ export declare const BrowserSafeApis: {
|
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
defaultAudioCodecs: {
|
|
168
|
+
aac: {
|
|
169
|
+
compressed: "pcm-16" | "aac" | null;
|
|
170
|
+
lossless: "pcm-16" | "aac" | null;
|
|
171
|
+
};
|
|
172
|
+
mp3: {
|
|
173
|
+
compressed: "pcm-16" | "mp3" | null;
|
|
174
|
+
lossless: "pcm-16" | "mp3" | null;
|
|
175
|
+
};
|
|
168
176
|
h264: {
|
|
169
|
-
compressed: "
|
|
170
|
-
lossless: "
|
|
177
|
+
compressed: "pcm-16" | "aac" | "mp3" | null;
|
|
178
|
+
lossless: "pcm-16" | "aac" | "mp3" | null;
|
|
171
179
|
};
|
|
172
180
|
h265: {
|
|
173
|
-
compressed: "
|
|
174
|
-
lossless: "
|
|
181
|
+
compressed: "pcm-16" | "aac" | null;
|
|
182
|
+
lossless: "pcm-16" | "aac" | null;
|
|
175
183
|
};
|
|
176
184
|
vp8: {
|
|
177
185
|
compressed: "pcm-16" | "opus" | null;
|
|
@@ -181,39 +189,31 @@ export declare const BrowserSafeApis: {
|
|
|
181
189
|
compressed: "pcm-16" | "opus" | null;
|
|
182
190
|
lossless: "pcm-16" | "opus" | null;
|
|
183
191
|
};
|
|
184
|
-
mp3: {
|
|
185
|
-
compressed: "mp3" | "pcm-16" | null;
|
|
186
|
-
lossless: "mp3" | "pcm-16" | null;
|
|
187
|
-
};
|
|
188
|
-
aac: {
|
|
189
|
-
compressed: "aac" | "pcm-16" | null;
|
|
190
|
-
lossless: "aac" | "pcm-16" | null;
|
|
191
|
-
};
|
|
192
192
|
wav: {
|
|
193
193
|
compressed: "pcm-16" | null;
|
|
194
194
|
lossless: "pcm-16" | null;
|
|
195
195
|
};
|
|
196
196
|
prores: {
|
|
197
|
-
compressed: "
|
|
198
|
-
lossless: "
|
|
197
|
+
compressed: "pcm-16" | "aac" | null;
|
|
198
|
+
lossless: "pcm-16" | "aac" | null;
|
|
199
199
|
};
|
|
200
200
|
"h264-mkv": {
|
|
201
|
-
compressed: "
|
|
202
|
-
lossless: "
|
|
201
|
+
compressed: "pcm-16" | "mp3" | null;
|
|
202
|
+
lossless: "pcm-16" | "mp3" | null;
|
|
203
203
|
};
|
|
204
204
|
"h264-ts": {
|
|
205
|
-
compressed: "
|
|
206
|
-
lossless: "
|
|
205
|
+
compressed: "pcm-16" | "aac" | null;
|
|
206
|
+
lossless: "pcm-16" | "aac" | null;
|
|
207
207
|
};
|
|
208
208
|
gif: {
|
|
209
209
|
compressed: null;
|
|
210
210
|
lossless: null;
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
|
-
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "
|
|
214
|
-
validateOutputFilename: <T_1 extends "
|
|
213
|
+
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">;
|
|
214
|
+
validateOutputFilename: <T_1 extends "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">({ codec, audioCodecSetting, extension, preferLossless, separateAudioTo, }: {
|
|
215
215
|
codec: T_1;
|
|
216
|
-
audioCodecSetting: "
|
|
216
|
+
audioCodecSetting: "pcm-16" | "aac" | "mp3" | "opus" | null;
|
|
217
217
|
extension: string;
|
|
218
218
|
preferLossless: boolean;
|
|
219
219
|
separateAudioTo: string | null;
|
|
@@ -221,12 +221,12 @@ export declare const BrowserSafeApis: {
|
|
|
221
221
|
options: {
|
|
222
222
|
audioCodecOption: {
|
|
223
223
|
cliFlag: "audio-codec";
|
|
224
|
-
setConfig: (audioCodec: "
|
|
224
|
+
setConfig: (audioCodec: "pcm-16" | "aac" | "mp3" | "opus" | null) => void;
|
|
225
225
|
getValue: ({ commandLine }: {
|
|
226
226
|
commandLine: Record<string, unknown>;
|
|
227
227
|
}) => {
|
|
228
228
|
source: string;
|
|
229
|
-
value: "
|
|
229
|
+
value: "pcm-16" | "aac" | "mp3" | "opus";
|
|
230
230
|
} | {
|
|
231
231
|
source: string;
|
|
232
232
|
value: null;
|
|
@@ -235,7 +235,7 @@ export declare const BrowserSafeApis: {
|
|
|
235
235
|
docLink: string;
|
|
236
236
|
name: string;
|
|
237
237
|
ssrName: "audioCodec";
|
|
238
|
-
type: "
|
|
238
|
+
type: "pcm-16" | "aac" | "mp3" | "opus";
|
|
239
239
|
};
|
|
240
240
|
scaleOption: {
|
|
241
241
|
name: string;
|
|
@@ -354,17 +354,17 @@ export declare const BrowserSafeApis: {
|
|
|
354
354
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
355
355
|
ssrName: string;
|
|
356
356
|
docLink: string;
|
|
357
|
-
type: "
|
|
357
|
+
type: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
358
358
|
getValue: ({ commandLine }: {
|
|
359
359
|
commandLine: Record<string, unknown>;
|
|
360
360
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
361
361
|
outName: string | null;
|
|
362
362
|
downloadName: string | null;
|
|
363
|
-
configFile: "
|
|
364
|
-
uiCodec: "
|
|
365
|
-
compositionCodec: "
|
|
363
|
+
configFile: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
364
|
+
uiCodec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
365
|
+
compositionCodec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
366
366
|
}) => {
|
|
367
|
-
value: "
|
|
367
|
+
value: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
368
368
|
source: string;
|
|
369
369
|
};
|
|
370
370
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -851,17 +851,17 @@ export declare const BrowserSafeApis: {
|
|
|
851
851
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
852
852
|
ssrName: string;
|
|
853
853
|
docLink: string;
|
|
854
|
-
type: "
|
|
854
|
+
type: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
855
855
|
getValue: ({ commandLine }: {
|
|
856
856
|
commandLine: Record<string, unknown>;
|
|
857
857
|
}, { compositionCodec, configFile, downloadName, outName, uiCodec, }: {
|
|
858
858
|
outName: string | null;
|
|
859
859
|
downloadName: string | null;
|
|
860
|
-
configFile: "
|
|
861
|
-
uiCodec: "
|
|
862
|
-
compositionCodec: "
|
|
860
|
+
configFile: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
861
|
+
uiCodec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
862
|
+
compositionCodec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif" | null;
|
|
863
863
|
}) => {
|
|
864
|
-
value: "
|
|
864
|
+
value: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
|
|
865
865
|
source: string;
|
|
866
866
|
};
|
|
867
867
|
setConfig: (newCodec: import("./codec").CodecOrUndefined) => void;
|
|
@@ -1015,12 +1015,12 @@ export declare const BrowserSafeApis: {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
readonly audioCodec: {
|
|
1017
1017
|
cliFlag: "audio-codec";
|
|
1018
|
-
setConfig: (audioCodec: "
|
|
1018
|
+
setConfig: (audioCodec: "pcm-16" | "aac" | "mp3" | "opus" | null) => void;
|
|
1019
1019
|
getValue: ({ commandLine }: {
|
|
1020
1020
|
commandLine: Record<string, unknown>;
|
|
1021
1021
|
}) => {
|
|
1022
1022
|
source: string;
|
|
1023
|
-
value: "
|
|
1023
|
+
value: "pcm-16" | "aac" | "mp3" | "opus";
|
|
1024
1024
|
} | {
|
|
1025
1025
|
source: string;
|
|
1026
1026
|
value: null;
|
|
@@ -1029,7 +1029,7 @@ export declare const BrowserSafeApis: {
|
|
|
1029
1029
|
docLink: string;
|
|
1030
1030
|
name: string;
|
|
1031
1031
|
ssrName: "audioCodec";
|
|
1032
|
-
type: "
|
|
1032
|
+
type: "pcm-16" | "aac" | "mp3" | "opus";
|
|
1033
1033
|
};
|
|
1034
1034
|
};
|
|
1035
1035
|
readonly stitchFramesToVideo: {
|
|
@@ -2076,9 +2076,9 @@ export declare const BrowserSafeApis: {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
};
|
|
2078
2078
|
};
|
|
2079
|
-
codecSupportsCrf: (codec: "
|
|
2080
|
-
codecSupportsVideoBitrate: (codec: "
|
|
2079
|
+
codecSupportsCrf: (codec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
2080
|
+
codecSupportsVideoBitrate: (codec: "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => boolean;
|
|
2081
2081
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
2082
2082
|
getOutputCodecOrUndefined: () => import("./codec").CodecOrUndefined;
|
|
2083
|
-
getExtensionFromAudioCodec: (audioCodec: "
|
|
2083
|
+
getExtensionFromAudioCodec: (audioCodec: "pcm-16" | "aac" | "mp3" | "opus") => "aac" | "mp3" | "opus" | "wav";
|
|
2084
2084
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
2
|
import type { LogLevel } from './log-level';
|
|
3
3
|
import type { CancelSignal } from './make-cancel-signal';
|
|
4
|
-
export declare const createCombinedVideo: ({ addRemotionMetadata, binariesDirectory, cancelSignal, codec, filelistDir, files, fps, indent, logLevel, numberOfGifLoops, onProgress, output,
|
|
4
|
+
export declare const createCombinedVideo: ({ addRemotionMetadata, binariesDirectory, cancelSignal, codec, filelistDir, files, fps, indent, logLevel, numberOfGifLoops, onProgress, output, }: {
|
|
5
5
|
fps: number;
|
|
6
6
|
codec: Codec;
|
|
7
7
|
filelistDir: string;
|
|
@@ -14,5 +14,4 @@ export declare const createCombinedVideo: ({ addRemotionMetadata, binariesDirect
|
|
|
14
14
|
addRemotionMetadata: boolean;
|
|
15
15
|
binariesDirectory: string | null;
|
|
16
16
|
cancelSignal: CancelSignal | undefined;
|
|
17
|
-
|
|
18
|
-
}) => Promise<string | undefined>;
|
|
17
|
+
}) => Promise<void>;
|
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createCombinedVideo = void 0;
|
|
4
4
|
const combine_video_streams_1 = require("./combine-video-streams");
|
|
5
|
-
const
|
|
6
|
-
const createCombinedVideo = async ({ addRemotionMetadata, binariesDirectory, cancelSignal, codec, filelistDir, files, fps, indent, logLevel, numberOfGifLoops, onProgress, output, seamless, }) => {
|
|
7
|
-
if (seamless) {
|
|
8
|
-
return (0, combine_video_streams_seamlessly_1.combineVideoStreamsSeamlessly)({
|
|
9
|
-
files,
|
|
10
|
-
});
|
|
11
|
-
}
|
|
5
|
+
const createCombinedVideo = async ({ addRemotionMetadata, binariesDirectory, cancelSignal, codec, filelistDir, files, fps, indent, logLevel, numberOfGifLoops, onProgress, output, }) => {
|
|
12
6
|
await (0, combine_video_streams_1.combineVideoStreams)({
|
|
13
7
|
addRemotionMetadata,
|
|
14
8
|
binariesDirectory,
|
package/dist/get-compositions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AudioCodec } from './audio-codec';
|
|
2
|
-
export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "
|
|
1
|
+
import type { AudioCodec } from './options/audio-codec';
|
|
2
|
+
export declare const getExtensionFromAudioCodec: (audioCodec: AudioCodec) => "aac" | "mp3" | "opus" | "wav";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
2
|
import type { FileExtension } from './file-extensions';
|
|
3
3
|
import type { AudioCodec } from './options/audio-codec';
|
|
4
|
-
export declare const getFileExtensionFromCodec: <T extends "
|
|
5
|
-
export declare const makeFileExtensionMap: () => Record<string, ("
|
|
4
|
+
export declare const getFileExtensionFromCodec: <T extends "aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif">(codec: T, audioCodec: AudioCodec | null) => FileExtension;
|
|
5
|
+
export declare const makeFileExtensionMap: () => Record<string, ("aac" | "mp3" | "h264" | "h265" | "vp8" | "vp9" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif")[]>;
|
|
6
6
|
export declare const defaultCodecsForFileExtension: Record<FileExtension, Codec>;
|