@remotion/renderer 4.0.315 → 4.0.317
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/esm/index.mjs +38 -14
- package/dist/get-compositions.js +3 -1
- package/dist/make-page.js +5 -1
- package/dist/render-media.d.ts +2 -2
- package/dist/render-media.js +6 -4
- package/dist/render-still.js +5 -1
- package/dist/select-composition.js +3 -1
- package/ensure-browser.mjs +48 -33
- package/package.json +12 -12
package/dist/esm/index.mjs
CHANGED
|
@@ -16512,7 +16512,9 @@ var innerGetCompositions = async ({
|
|
|
16512
16512
|
height,
|
|
16513
16513
|
id,
|
|
16514
16514
|
defaultCodec,
|
|
16515
|
-
defaultOutName
|
|
16515
|
+
defaultOutName,
|
|
16516
|
+
defaultVideoImageFormat,
|
|
16517
|
+
defaultPixelFormat
|
|
16516
16518
|
} = r;
|
|
16517
16519
|
return {
|
|
16518
16520
|
id,
|
|
@@ -16523,7 +16525,9 @@ var innerGetCompositions = async ({
|
|
|
16523
16525
|
props: NoReactInternals8.deserializeJSONWithSpecialTypes(r.serializedResolvedPropsWithCustomSchema),
|
|
16524
16526
|
defaultProps: NoReactInternals8.deserializeJSONWithSpecialTypes(r.serializedDefaultPropsWithCustomSchema),
|
|
16525
16527
|
defaultCodec,
|
|
16526
|
-
defaultOutName
|
|
16528
|
+
defaultOutName,
|
|
16529
|
+
defaultVideoImageFormat,
|
|
16530
|
+
defaultPixelFormat
|
|
16527
16531
|
};
|
|
16528
16532
|
});
|
|
16529
16533
|
};
|
|
@@ -17653,7 +17657,7 @@ var makePage = async ({
|
|
|
17653
17657
|
}
|
|
17654
17658
|
});
|
|
17655
17659
|
await puppeteerEvaluateWithCatch({
|
|
17656
|
-
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
|
|
17660
|
+
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
|
|
17657
17661
|
window.remotion_setBundleMode({
|
|
17658
17662
|
type: "composition",
|
|
17659
17663
|
compositionName: id,
|
|
@@ -17663,7 +17667,9 @@ var makePage = async ({
|
|
|
17663
17667
|
compositionHeight: height,
|
|
17664
17668
|
compositionWidth: width,
|
|
17665
17669
|
compositionDefaultCodec: defaultCodec,
|
|
17666
|
-
compositionDefaultOutName: defaultOutName
|
|
17670
|
+
compositionDefaultOutName: defaultOutName,
|
|
17671
|
+
compositionDefaultVideoImageFormat: defaultVideoImageFormat,
|
|
17672
|
+
compositionDefaultPixelFormat: defaultPixelFormat
|
|
17667
17673
|
});
|
|
17668
17674
|
},
|
|
17669
17675
|
args: [
|
|
@@ -17674,7 +17680,9 @@ var makePage = async ({
|
|
|
17674
17680
|
composition.height,
|
|
17675
17681
|
composition.width,
|
|
17676
17682
|
composition.defaultCodec,
|
|
17677
|
-
composition.defaultOutName
|
|
17683
|
+
composition.defaultOutName,
|
|
17684
|
+
composition.defaultVideoImageFormat,
|
|
17685
|
+
composition.defaultPixelFormat
|
|
17678
17686
|
],
|
|
17679
17687
|
frame: null,
|
|
17680
17688
|
page,
|
|
@@ -21018,7 +21026,7 @@ var internalRenderMediaRaw = ({
|
|
|
21018
21026
|
crf,
|
|
21019
21027
|
composition,
|
|
21020
21028
|
serializedInputPropsWithCustomSchema,
|
|
21021
|
-
pixelFormat,
|
|
21029
|
+
pixelFormat: userPixelFormat,
|
|
21022
21030
|
codec,
|
|
21023
21031
|
envVariables,
|
|
21024
21032
|
frameRange,
|
|
@@ -21070,6 +21078,7 @@ var internalRenderMediaRaw = ({
|
|
|
21070
21078
|
chromeMode,
|
|
21071
21079
|
offthreadVideoThreads
|
|
21072
21080
|
}) => {
|
|
21081
|
+
const pixelFormat = userPixelFormat ?? composition.defaultPixelFormat ?? DEFAULT_PIXEL_FORMAT;
|
|
21073
21082
|
if (repro) {
|
|
21074
21083
|
enableRepro({
|
|
21075
21084
|
serveUrl,
|
|
@@ -21173,7 +21182,7 @@ var internalRenderMediaRaw = ({
|
|
|
21173
21182
|
tag: "renderMedia()"
|
|
21174
21183
|
}, "Parallel encoding is disabled.");
|
|
21175
21184
|
}
|
|
21176
|
-
const imageFormat = isAudioCodec(codec) ? "none" : provisionalImageFormat;
|
|
21185
|
+
const imageFormat = isAudioCodec(codec) ? "none" : provisionalImageFormat ?? composition.defaultVideoImageFormat ?? DEFAULT_VIDEO_IMAGE_FORMAT;
|
|
21177
21186
|
validateSelectedPixelFormatAndImageFormatCombination(pixelFormat, imageFormat);
|
|
21178
21187
|
const workingDir = fs15.mkdtempSync(path25.join(os6.tmpdir(), "react-motion-render"));
|
|
21179
21188
|
const preEncodedFileLocation = parallelEncoding ? path25.join(workingDir, "pre-encode." + getFileExtensionFromCodec(codec, audioCodec)) : null;
|
|
@@ -21560,7 +21569,7 @@ var renderMedia = ({
|
|
|
21560
21569
|
everyNthFrame: everyNthFrame ?? 1,
|
|
21561
21570
|
ffmpegOverride: ffmpegOverride ?? undefined,
|
|
21562
21571
|
frameRange: frameRange ?? null,
|
|
21563
|
-
imageFormat: imageFormat ??
|
|
21572
|
+
imageFormat: imageFormat ?? null,
|
|
21564
21573
|
serializedInputPropsWithCustomSchema: NoReactInternals14.serializeJSONWithSpecialTypes({
|
|
21565
21574
|
indent: undefined,
|
|
21566
21575
|
staticBase: null,
|
|
@@ -21581,7 +21590,7 @@ var renderMedia = ({
|
|
|
21581
21590
|
}),
|
|
21582
21591
|
outputLocation: outputLocation ?? null,
|
|
21583
21592
|
overwrite: overwrite ?? DEFAULT_OVERWRITE,
|
|
21584
|
-
pixelFormat: pixelFormat ??
|
|
21593
|
+
pixelFormat: pixelFormat ?? null,
|
|
21585
21594
|
port: port ?? null,
|
|
21586
21595
|
puppeteerInstance: puppeteerInstance ?? undefined,
|
|
21587
21596
|
scale: scale ?? 1,
|
|
@@ -21748,7 +21757,7 @@ var innerRenderStill = async ({
|
|
|
21748
21757
|
}
|
|
21749
21758
|
});
|
|
21750
21759
|
await puppeteerEvaluateWithCatch({
|
|
21751
|
-
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
|
|
21760
|
+
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
|
|
21752
21761
|
window.remotion_setBundleMode({
|
|
21753
21762
|
type: "composition",
|
|
21754
21763
|
compositionName: id,
|
|
@@ -21758,7 +21767,9 @@ var innerRenderStill = async ({
|
|
|
21758
21767
|
compositionHeight: height,
|
|
21759
21768
|
compositionWidth: width,
|
|
21760
21769
|
compositionDefaultCodec: defaultCodec,
|
|
21761
|
-
compositionDefaultOutName: defaultOutName
|
|
21770
|
+
compositionDefaultOutName: defaultOutName,
|
|
21771
|
+
compositionDefaultVideoImageFormat: defaultVideoImageFormat,
|
|
21772
|
+
compositionDefaultPixelFormat: defaultPixelFormat
|
|
21762
21773
|
});
|
|
21763
21774
|
},
|
|
21764
21775
|
args: [
|
|
@@ -21769,7 +21780,9 @@ var innerRenderStill = async ({
|
|
|
21769
21780
|
composition.height,
|
|
21770
21781
|
composition.width,
|
|
21771
21782
|
composition.defaultCodec,
|
|
21772
|
-
composition.defaultOutName
|
|
21783
|
+
composition.defaultOutName,
|
|
21784
|
+
composition.defaultVideoImageFormat,
|
|
21785
|
+
composition.defaultPixelFormat
|
|
21773
21786
|
],
|
|
21774
21787
|
frame: null,
|
|
21775
21788
|
page,
|
|
@@ -22009,7 +22022,16 @@ var innerSelectComposition = async ({
|
|
|
22009
22022
|
logLevel
|
|
22010
22023
|
}, `calculateMetadata() took ${Date.now() - time}ms`);
|
|
22011
22024
|
const res = result;
|
|
22012
|
-
const {
|
|
22025
|
+
const {
|
|
22026
|
+
width,
|
|
22027
|
+
durationInFrames,
|
|
22028
|
+
fps,
|
|
22029
|
+
height,
|
|
22030
|
+
defaultCodec,
|
|
22031
|
+
defaultOutName,
|
|
22032
|
+
defaultVideoImageFormat,
|
|
22033
|
+
defaultPixelFormat
|
|
22034
|
+
} = res;
|
|
22013
22035
|
return {
|
|
22014
22036
|
metadata: {
|
|
22015
22037
|
id,
|
|
@@ -22020,7 +22042,9 @@ var innerSelectComposition = async ({
|
|
|
22020
22042
|
props: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedResolvedPropsWithCustomSchema),
|
|
22021
22043
|
defaultProps: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
|
|
22022
22044
|
defaultCodec,
|
|
22023
|
-
defaultOutName
|
|
22045
|
+
defaultOutName,
|
|
22046
|
+
defaultVideoImageFormat,
|
|
22047
|
+
defaultPixelFormat
|
|
22024
22048
|
},
|
|
22025
22049
|
propsSize: size
|
|
22026
22050
|
};
|
package/dist/get-compositions.js
CHANGED
|
@@ -60,7 +60,7 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
|
|
|
60
60
|
});
|
|
61
61
|
const res = result;
|
|
62
62
|
return res.map((r) => {
|
|
63
|
-
const { width, durationInFrames, fps, height, id, defaultCodec, defaultOutName, } = r;
|
|
63
|
+
const { width, durationInFrames, fps, height, id, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = r;
|
|
64
64
|
return {
|
|
65
65
|
id,
|
|
66
66
|
width,
|
|
@@ -71,6 +71,8 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
|
|
|
71
71
|
defaultProps: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(r.serializedDefaultPropsWithCustomSchema),
|
|
72
72
|
defaultCodec,
|
|
73
73
|
defaultOutName,
|
|
74
|
+
defaultVideoImageFormat,
|
|
75
|
+
defaultPixelFormat,
|
|
74
76
|
};
|
|
75
77
|
});
|
|
76
78
|
};
|
package/dist/make-page.js
CHANGED
|
@@ -30,7 +30,7 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
|
|
|
30
30
|
});
|
|
31
31
|
await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
32
32
|
// eslint-disable-next-line max-params
|
|
33
|
-
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
|
|
33
|
+
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
|
|
34
34
|
window.remotion_setBundleMode({
|
|
35
35
|
type: 'composition',
|
|
36
36
|
compositionName: id,
|
|
@@ -41,6 +41,8 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
|
|
|
41
41
|
compositionWidth: width,
|
|
42
42
|
compositionDefaultCodec: defaultCodec,
|
|
43
43
|
compositionDefaultOutName: defaultOutName,
|
|
44
|
+
compositionDefaultVideoImageFormat: defaultVideoImageFormat,
|
|
45
|
+
compositionDefaultPixelFormat: defaultPixelFormat,
|
|
44
46
|
});
|
|
45
47
|
},
|
|
46
48
|
args: [
|
|
@@ -52,6 +54,8 @@ const makePage = async ({ context, initialFrame, browserReplacer, logLevel, inde
|
|
|
52
54
|
composition.width,
|
|
53
55
|
composition.defaultCodec,
|
|
54
56
|
composition.defaultOutName,
|
|
57
|
+
composition.defaultVideoImageFormat,
|
|
58
|
+
composition.defaultPixelFormat,
|
|
55
59
|
],
|
|
56
60
|
frame: null,
|
|
57
61
|
page,
|
package/dist/render-media.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ export type InternalRenderMediaOptions = {
|
|
|
38
38
|
serializedInputPropsWithCustomSchema: string;
|
|
39
39
|
serializedResolvedPropsWithCustomSchema: string;
|
|
40
40
|
crf: number | null;
|
|
41
|
-
imageFormat: VideoImageFormat;
|
|
42
|
-
pixelFormat: PixelFormat;
|
|
41
|
+
imageFormat: VideoImageFormat | null;
|
|
42
|
+
pixelFormat: PixelFormat | null;
|
|
43
43
|
envVariables: Record<string, string>;
|
|
44
44
|
frameRange: FrameRange | null;
|
|
45
45
|
everyNthFrame: number;
|
package/dist/render-media.js
CHANGED
|
@@ -51,7 +51,9 @@ const validate_scale_1 = require("./validate-scale");
|
|
|
51
51
|
const validate_videobitrate_1 = require("./validate-videobitrate");
|
|
52
52
|
const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
|
|
53
53
|
const SLOWEST_FRAME_COUNT = 10;
|
|
54
|
-
const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, serializedInputPropsWithCustomSchema, pixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, concurrency, disallowParallelEncoding, everyNthFrame, imageFormat: provisionalImageFormat, indent, jpegQuality, numberOfGifLoops, onCtrlCExit, preferLossless, serveUrl, server: reusedServer, logLevel, serializedResolvedPropsWithCustomSchema, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, compositionStart, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, }) => {
|
|
54
|
+
const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, serializedInputPropsWithCustomSchema, pixelFormat: userPixelFormat, codec, envVariables, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, browserExecutable, port, cancelSignal, muted, enforceAudioTrack, ffmpegOverride, audioBitrate, videoBitrate, encodingMaxRate, encodingBufferSize, audioCodec, concurrency, disallowParallelEncoding, everyNthFrame, imageFormat: provisionalImageFormat, indent, jpegQuality, numberOfGifLoops, onCtrlCExit, preferLossless, serveUrl, server: reusedServer, logLevel, serializedResolvedPropsWithCustomSchema, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, separateAudioTo, forSeamlessAacConcatenation, compositionStart, onBrowserDownload, onArtifact, metadata, hardwareAcceleration, chromeMode, offthreadVideoThreads, }) => {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const pixelFormat = (_a = userPixelFormat !== null && userPixelFormat !== void 0 ? userPixelFormat : composition.defaultPixelFormat) !== null && _a !== void 0 ? _a : pixel_format_1.DEFAULT_PIXEL_FORMAT;
|
|
55
57
|
if (repro) {
|
|
56
58
|
(0, repro_1.enableRepro)({
|
|
57
59
|
serveUrl,
|
|
@@ -163,7 +165,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
|
|
|
163
165
|
}
|
|
164
166
|
const imageFormat = (0, is_audio_codec_1.isAudioCodec)(codec)
|
|
165
167
|
? 'none'
|
|
166
|
-
: provisionalImageFormat;
|
|
168
|
+
: ((_b = provisionalImageFormat !== null && provisionalImageFormat !== void 0 ? provisionalImageFormat : composition.defaultVideoImageFormat) !== null && _b !== void 0 ? _b : image_format_1.DEFAULT_VIDEO_IMAGE_FORMAT);
|
|
167
169
|
(0, image_format_1.validateSelectedPixelFormatAndImageFormatCombination)(pixelFormat, imageFormat);
|
|
168
170
|
const workingDir = node_fs_1.default.mkdtempSync(node_path_1.default.join(node_os_1.default.tmpdir(), 'react-motion-render'));
|
|
169
171
|
const preEncodedFileLocation = parallelEncoding
|
|
@@ -539,7 +541,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
|
|
|
539
541
|
everyNthFrame: everyNthFrame !== null && everyNthFrame !== void 0 ? everyNthFrame : 1,
|
|
540
542
|
ffmpegOverride: ffmpegOverride !== null && ffmpegOverride !== void 0 ? ffmpegOverride : undefined,
|
|
541
543
|
frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
|
|
542
|
-
imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat :
|
|
544
|
+
imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : null,
|
|
543
545
|
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
544
546
|
indent: undefined,
|
|
545
547
|
staticBase: null,
|
|
@@ -554,7 +556,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
|
|
|
554
556
|
onStart: onStart !== null && onStart !== void 0 ? onStart : (() => undefined),
|
|
555
557
|
outputLocation: outputLocation !== null && outputLocation !== void 0 ? outputLocation : null,
|
|
556
558
|
overwrite: overwrite !== null && overwrite !== void 0 ? overwrite : overwrite_1.DEFAULT_OVERWRITE,
|
|
557
|
-
pixelFormat: pixelFormat !== null && pixelFormat !== void 0 ? pixelFormat :
|
|
559
|
+
pixelFormat: pixelFormat !== null && pixelFormat !== void 0 ? pixelFormat : null,
|
|
558
560
|
port: port !== null && port !== void 0 ? port : null,
|
|
559
561
|
puppeteerInstance: puppeteerInstance !== null && puppeteerInstance !== void 0 ? puppeteerInstance : undefined,
|
|
560
562
|
scale: scale !== null && scale !== void 0 ? scale : 1,
|
package/dist/render-still.js
CHANGED
|
@@ -161,7 +161,7 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
|
|
|
161
161
|
});
|
|
162
162
|
await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
163
163
|
// eslint-disable-next-line max-params
|
|
164
|
-
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName) => {
|
|
164
|
+
pageFunction: (id, props, durationInFrames, fps, height, width, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat) => {
|
|
165
165
|
window.remotion_setBundleMode({
|
|
166
166
|
type: 'composition',
|
|
167
167
|
compositionName: id,
|
|
@@ -172,6 +172,8 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
|
|
|
172
172
|
compositionWidth: width,
|
|
173
173
|
compositionDefaultCodec: defaultCodec,
|
|
174
174
|
compositionDefaultOutName: defaultOutName,
|
|
175
|
+
compositionDefaultVideoImageFormat: defaultVideoImageFormat,
|
|
176
|
+
compositionDefaultPixelFormat: defaultPixelFormat,
|
|
175
177
|
});
|
|
176
178
|
},
|
|
177
179
|
args: [
|
|
@@ -183,6 +185,8 @@ const innerRenderStill = async ({ composition, imageFormat = image_format_1.DEFA
|
|
|
183
185
|
composition.width,
|
|
184
186
|
composition.defaultCodec,
|
|
185
187
|
composition.defaultOutName,
|
|
188
|
+
composition.defaultVideoImageFormat,
|
|
189
|
+
composition.defaultPixelFormat,
|
|
186
190
|
],
|
|
187
191
|
frame: null,
|
|
188
192
|
page,
|
|
@@ -70,7 +70,7 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
|
|
|
70
70
|
logLevel,
|
|
71
71
|
}, `calculateMetadata() took ${Date.now() - time}ms`);
|
|
72
72
|
const res = result;
|
|
73
|
-
const { width, durationInFrames, fps, height, defaultCodec, defaultOutName } = res;
|
|
73
|
+
const { width, durationInFrames, fps, height, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = res;
|
|
74
74
|
return {
|
|
75
75
|
metadata: {
|
|
76
76
|
id,
|
|
@@ -82,6 +82,8 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
|
|
|
82
82
|
defaultProps: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
|
|
83
83
|
defaultCodec,
|
|
84
84
|
defaultOutName,
|
|
85
|
+
defaultVideoImageFormat,
|
|
86
|
+
defaultPixelFormat,
|
|
85
87
|
},
|
|
86
88
|
propsSize: size,
|
|
87
89
|
};
|
package/ensure-browser.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
18
18
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
19
19
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/ms@2.1.
|
|
21
|
+
// ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
|
22
22
|
var require_ms = __commonJS((exports, module) => {
|
|
23
23
|
var s = 1000;
|
|
24
24
|
var m = s * 60;
|
|
@@ -128,7 +128,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
// ../../node_modules/.pnpm/debug@4.
|
|
131
|
+
// ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
|
|
132
132
|
var require_common = __commonJS((exports, module) => {
|
|
133
133
|
function setup(env) {
|
|
134
134
|
createDebug.debug = createDebug;
|
|
@@ -230,50 +230,64 @@ var require_common = __commonJS((exports, module) => {
|
|
|
230
230
|
createDebug.namespaces = namespaces;
|
|
231
231
|
createDebug.names = [];
|
|
232
232
|
createDebug.skips = [];
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
233
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
234
|
+
for (const ns of split) {
|
|
235
|
+
if (ns[0] === "-") {
|
|
236
|
+
createDebug.skips.push(ns.slice(1));
|
|
237
|
+
} else {
|
|
238
|
+
createDebug.names.push(ns);
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function matchesTemplate(search, template) {
|
|
243
|
+
let searchIndex = 0;
|
|
244
|
+
let templateIndex = 0;
|
|
245
|
+
let starIndex = -1;
|
|
246
|
+
let matchIndex = 0;
|
|
247
|
+
while (searchIndex < search.length) {
|
|
248
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
249
|
+
if (template[templateIndex] === "*") {
|
|
250
|
+
starIndex = templateIndex;
|
|
251
|
+
matchIndex = searchIndex;
|
|
252
|
+
templateIndex++;
|
|
253
|
+
} else {
|
|
254
|
+
searchIndex++;
|
|
255
|
+
templateIndex++;
|
|
256
|
+
}
|
|
257
|
+
} else if (starIndex !== -1) {
|
|
258
|
+
templateIndex = starIndex + 1;
|
|
259
|
+
matchIndex++;
|
|
260
|
+
searchIndex = matchIndex;
|
|
243
261
|
} else {
|
|
244
|
-
|
|
262
|
+
return false;
|
|
245
263
|
}
|
|
246
264
|
}
|
|
265
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
266
|
+
templateIndex++;
|
|
267
|
+
}
|
|
268
|
+
return templateIndex === template.length;
|
|
247
269
|
}
|
|
248
270
|
function disable() {
|
|
249
271
|
const namespaces = [
|
|
250
|
-
...createDebug.names
|
|
251
|
-
...createDebug.skips.map(
|
|
272
|
+
...createDebug.names,
|
|
273
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
252
274
|
].join(",");
|
|
253
275
|
createDebug.enable("");
|
|
254
276
|
return namespaces;
|
|
255
277
|
}
|
|
256
278
|
function enabled(name) {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
let i;
|
|
261
|
-
let len;
|
|
262
|
-
for (i = 0, len = createDebug.skips.length;i < len; i++) {
|
|
263
|
-
if (createDebug.skips[i].test(name)) {
|
|
279
|
+
for (const skip of createDebug.skips) {
|
|
280
|
+
if (matchesTemplate(name, skip)) {
|
|
264
281
|
return false;
|
|
265
282
|
}
|
|
266
283
|
}
|
|
267
|
-
for (
|
|
268
|
-
if (
|
|
284
|
+
for (const ns of createDebug.names) {
|
|
285
|
+
if (matchesTemplate(name, ns)) {
|
|
269
286
|
return true;
|
|
270
287
|
}
|
|
271
288
|
}
|
|
272
289
|
return false;
|
|
273
290
|
}
|
|
274
|
-
function toNamespace(regexp) {
|
|
275
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
276
|
-
}
|
|
277
291
|
function coerce(val) {
|
|
278
292
|
if (val instanceof Error) {
|
|
279
293
|
return val.stack || val.message;
|
|
@@ -289,7 +303,7 @@ var require_common = __commonJS((exports, module) => {
|
|
|
289
303
|
module.exports = setup;
|
|
290
304
|
});
|
|
291
305
|
|
|
292
|
-
// ../../node_modules/.pnpm/debug@4.
|
|
306
|
+
// ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
|
|
293
307
|
var require_browser = __commonJS((exports, module) => {
|
|
294
308
|
exports.formatArgs = formatArgs;
|
|
295
309
|
exports.save = save;
|
|
@@ -390,7 +404,8 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
390
404
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
391
405
|
return false;
|
|
392
406
|
}
|
|
393
|
-
|
|
407
|
+
let m;
|
|
408
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
394
409
|
}
|
|
395
410
|
function formatArgs(args) {
|
|
396
411
|
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
@@ -557,7 +572,7 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
557
572
|
};
|
|
558
573
|
});
|
|
559
574
|
|
|
560
|
-
// ../../node_modules/.pnpm/debug@4.
|
|
575
|
+
// ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
|
|
561
576
|
var require_node = __commonJS((exports, module) => {
|
|
562
577
|
var tty = __require("tty");
|
|
563
578
|
var util = __require("util");
|
|
@@ -695,7 +710,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
695
710
|
return new Date().toISOString() + " ";
|
|
696
711
|
}
|
|
697
712
|
function log(...args) {
|
|
698
|
-
return process.stderr.write(util.
|
|
713
|
+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + `
|
|
699
714
|
`);
|
|
700
715
|
}
|
|
701
716
|
function save(namespaces) {
|
|
@@ -728,7 +743,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
728
743
|
};
|
|
729
744
|
});
|
|
730
745
|
|
|
731
|
-
// ../../node_modules/.pnpm/debug@4.
|
|
746
|
+
// ../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
|
|
732
747
|
var require_src = __commonJS((exports, module) => {
|
|
733
748
|
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
734
749
|
module.exports = require_browser();
|
|
@@ -3071,8 +3086,8 @@ var getDownloadsCacheDir = () => {
|
|
|
3071
3086
|
};
|
|
3072
3087
|
|
|
3073
3088
|
// src/browser/BrowserFetcher.ts
|
|
3074
|
-
var TESTED_VERSION = "
|
|
3075
|
-
var PLAYWRIGHT_VERSION = "
|
|
3089
|
+
var TESTED_VERSION = "134.0.6998.35";
|
|
3090
|
+
var PLAYWRIGHT_VERSION = "1161";
|
|
3076
3091
|
function getChromeDownloadUrl({
|
|
3077
3092
|
platform: platform2,
|
|
3078
3093
|
version,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.317",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.17.1",
|
|
21
|
-
"remotion": "4.0.
|
|
22
|
-
"@remotion/streaming": "4.0.
|
|
21
|
+
"remotion": "4.0.317",
|
|
22
|
+
"@remotion/streaming": "4.0.317"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"react-dom": "19.0.0",
|
|
34
34
|
"@types/ws": "8.5.10",
|
|
35
35
|
"eslint": "9.19.0",
|
|
36
|
-
"@remotion/example-videos": "4.0.
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
36
|
+
"@remotion/example-videos": "4.0.317",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.317"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
41
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
42
|
-
"@remotion/compositor-linux-arm64-
|
|
43
|
-
"@remotion/compositor-linux-x64-
|
|
44
|
-
"@remotion/compositor-linux-
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.317",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.317",
|
|
42
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.317",
|
|
43
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.317",
|
|
44
|
+
"@remotion/compositor-linux-x64-musl": "4.0.317",
|
|
45
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.317",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.317"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|