@remotion/renderer 4.0.291 → 4.0.292
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/client.mjs +2 -2
- package/dist/esm/index.mjs +19 -13
- package/dist/get-compositions.js +3 -3
- package/dist/get-cpu-count.js +7 -1
- package/dist/options/offthreadvideo-threads.js +1 -1
- package/dist/render-frames.js +2 -2
- package/dist/render-media.js +2 -2
- package/dist/render-still.js +2 -2
- package/dist/select-composition.js +3 -3
- package/package.json +12 -12
package/dist/esm/client.mjs
CHANGED
|
@@ -1929,10 +1929,10 @@ var offthreadVideoThreadsOption = {
|
|
|
1929
1929
|
})
|
|
1930
1930
|
}),
|
|
1931
1931
|
" ",
|
|
1932
|
-
"can start to extract frames.
|
|
1932
|
+
"can start to extract frames. The default is",
|
|
1933
1933
|
" ",
|
|
1934
1934
|
DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS,
|
|
1935
|
-
". Increase carefully, as too
|
|
1935
|
+
". Increase carefully, as too many threads may cause instability."
|
|
1936
1936
|
]
|
|
1937
1937
|
}),
|
|
1938
1938
|
ssrName: "offthreadVideoThreads",
|
package/dist/esm/index.mjs
CHANGED
|
@@ -5004,9 +5004,15 @@ var getAvailableMemory = (logLevel) => {
|
|
|
5004
5004
|
// src/get-cpu-count.ts
|
|
5005
5005
|
import { execSync as execSync2 } from "node:child_process";
|
|
5006
5006
|
import { cpus } from "node:os";
|
|
5007
|
+
var nprocCount;
|
|
5007
5008
|
var getConcurrencyFromNProc = () => {
|
|
5009
|
+
if (nprocCount !== undefined) {
|
|
5010
|
+
return nprocCount;
|
|
5011
|
+
}
|
|
5008
5012
|
try {
|
|
5009
|
-
|
|
5013
|
+
const count = parseInt(execSync2("nproc", { stdio: "pipe" }).toString().trim(), 10);
|
|
5014
|
+
nprocCount = count;
|
|
5015
|
+
return count;
|
|
5010
5016
|
} catch {
|
|
5011
5017
|
return null;
|
|
5012
5018
|
}
|
|
@@ -16427,8 +16433,8 @@ var innerGetCompositions = async ({
|
|
|
16427
16433
|
height,
|
|
16428
16434
|
fps,
|
|
16429
16435
|
durationInFrames,
|
|
16430
|
-
props: NoReactInternals8.
|
|
16431
|
-
defaultProps: NoReactInternals8.
|
|
16436
|
+
props: NoReactInternals8.deserializeJSONWithSpecialTypes(r.serializedResolvedPropsWithCustomSchema),
|
|
16437
|
+
defaultProps: NoReactInternals8.deserializeJSONWithSpecialTypes(r.serializedDefaultPropsWithCustomSchema),
|
|
16432
16438
|
defaultCodec,
|
|
16433
16439
|
defaultOutName
|
|
16434
16440
|
};
|
|
@@ -16545,7 +16551,7 @@ var getCompositions = (serveUrlOrWebpackUrl, config) => {
|
|
|
16545
16551
|
browserExecutable: browserExecutable ?? null,
|
|
16546
16552
|
chromiumOptions: chromiumOptions ?? {},
|
|
16547
16553
|
envVariables: envVariables ?? {},
|
|
16548
|
-
serializedInputPropsWithCustomSchema: NoReactInternals8.
|
|
16554
|
+
serializedInputPropsWithCustomSchema: NoReactInternals8.serializeJSONWithSpecialTypes({
|
|
16549
16555
|
data: inputProps ?? {},
|
|
16550
16556
|
indent: undefined,
|
|
16551
16557
|
staticBase: null
|
|
@@ -18826,12 +18832,12 @@ var renderFrames = (options) => {
|
|
|
18826
18832
|
indent,
|
|
18827
18833
|
jpegQuality: jpegQuality ?? DEFAULT_JPEG_QUALITY,
|
|
18828
18834
|
onDownload: onDownload ?? null,
|
|
18829
|
-
serializedInputPropsWithCustomSchema: NoReactInternals12.
|
|
18835
|
+
serializedInputPropsWithCustomSchema: NoReactInternals12.serializeJSONWithSpecialTypes({
|
|
18830
18836
|
indent: undefined,
|
|
18831
18837
|
staticBase: null,
|
|
18832
18838
|
data: inputProps ?? {}
|
|
18833
18839
|
}).serializedString,
|
|
18834
|
-
serializedResolvedPropsWithCustomSchema: NoReactInternals12.
|
|
18840
|
+
serializedResolvedPropsWithCustomSchema: NoReactInternals12.serializeJSONWithSpecialTypes({
|
|
18835
18841
|
indent: undefined,
|
|
18836
18842
|
staticBase: null,
|
|
18837
18843
|
data: composition.props
|
|
@@ -21441,7 +21447,7 @@ var renderMedia = ({
|
|
|
21441
21447
|
ffmpegOverride: ffmpegOverride ?? undefined,
|
|
21442
21448
|
frameRange: frameRange ?? null,
|
|
21443
21449
|
imageFormat: imageFormat ?? DEFAULT_VIDEO_IMAGE_FORMAT,
|
|
21444
|
-
serializedInputPropsWithCustomSchema: NoReactInternals14.
|
|
21450
|
+
serializedInputPropsWithCustomSchema: NoReactInternals14.serializeJSONWithSpecialTypes({
|
|
21445
21451
|
indent: undefined,
|
|
21446
21452
|
staticBase: null,
|
|
21447
21453
|
data: inputProps ?? {}
|
|
@@ -21476,7 +21482,7 @@ var renderMedia = ({
|
|
|
21476
21482
|
return;
|
|
21477
21483
|
},
|
|
21478
21484
|
server: undefined,
|
|
21479
|
-
serializedResolvedPropsWithCustomSchema: NoReactInternals14.
|
|
21485
|
+
serializedResolvedPropsWithCustomSchema: NoReactInternals14.serializeJSONWithSpecialTypes({
|
|
21480
21486
|
indent: undefined,
|
|
21481
21487
|
staticBase: null,
|
|
21482
21488
|
data: composition.props ?? {}
|
|
@@ -21785,7 +21791,7 @@ var renderStill = (options) => {
|
|
|
21785
21791
|
frame: frame ?? 0,
|
|
21786
21792
|
imageFormat: imageFormat ?? DEFAULT_STILL_IMAGE_FORMAT,
|
|
21787
21793
|
indent,
|
|
21788
|
-
serializedInputPropsWithCustomSchema: NoReactInternals15.
|
|
21794
|
+
serializedInputPropsWithCustomSchema: NoReactInternals15.serializeJSONWithSpecialTypes({
|
|
21789
21795
|
staticBase: null,
|
|
21790
21796
|
indent: undefined,
|
|
21791
21797
|
data: inputProps ?? {}
|
|
@@ -21802,7 +21808,7 @@ var renderStill = (options) => {
|
|
|
21802
21808
|
serveUrl,
|
|
21803
21809
|
timeoutInMilliseconds: timeoutInMilliseconds ?? DEFAULT_TIMEOUT,
|
|
21804
21810
|
logLevel,
|
|
21805
|
-
serializedResolvedPropsWithCustomSchema: NoReactInternals15.
|
|
21811
|
+
serializedResolvedPropsWithCustomSchema: NoReactInternals15.serializeJSONWithSpecialTypes({
|
|
21806
21812
|
indent: undefined,
|
|
21807
21813
|
staticBase: null,
|
|
21808
21814
|
data: composition.props ?? {}
|
|
@@ -21897,8 +21903,8 @@ var innerSelectComposition = async ({
|
|
|
21897
21903
|
height,
|
|
21898
21904
|
fps,
|
|
21899
21905
|
durationInFrames,
|
|
21900
|
-
props: NoReactInternals16.
|
|
21901
|
-
defaultProps: NoReactInternals16.
|
|
21906
|
+
props: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedResolvedPropsWithCustomSchema),
|
|
21907
|
+
defaultProps: NoReactInternals16.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
|
|
21902
21908
|
defaultCodec,
|
|
21903
21909
|
defaultOutName
|
|
21904
21910
|
},
|
|
@@ -22029,7 +22035,7 @@ var selectComposition = async (options) => {
|
|
|
22029
22035
|
browserExecutable: browserExecutable ?? null,
|
|
22030
22036
|
chromiumOptions: chromiumOptions ?? {},
|
|
22031
22037
|
envVariables: envVariables ?? {},
|
|
22032
|
-
serializedInputPropsWithCustomSchema: NoReactInternals16.
|
|
22038
|
+
serializedInputPropsWithCustomSchema: NoReactInternals16.serializeJSONWithSpecialTypes({
|
|
22033
22039
|
indent: undefined,
|
|
22034
22040
|
staticBase: null,
|
|
22035
22041
|
data: inputProps ?? {}
|
package/dist/get-compositions.js
CHANGED
|
@@ -67,8 +67,8 @@ const innerGetCompositions = async ({ envVariables, serializedInputPropsWithCust
|
|
|
67
67
|
height,
|
|
68
68
|
fps,
|
|
69
69
|
durationInFrames,
|
|
70
|
-
props: no_react_1.NoReactInternals.
|
|
71
|
-
defaultProps: no_react_1.NoReactInternals.
|
|
70
|
+
props: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(r.serializedResolvedPropsWithCustomSchema),
|
|
71
|
+
defaultProps: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(r.serializedDefaultPropsWithCustomSchema),
|
|
72
72
|
defaultCodec,
|
|
73
73
|
defaultOutName,
|
|
74
74
|
};
|
|
@@ -158,7 +158,7 @@ const getCompositions = (serveUrlOrWebpackUrl, config) => {
|
|
|
158
158
|
browserExecutable: browserExecutable !== null && browserExecutable !== void 0 ? browserExecutable : null,
|
|
159
159
|
chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
|
|
160
160
|
envVariables: envVariables !== null && envVariables !== void 0 ? envVariables : {},
|
|
161
|
-
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
161
|
+
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
162
162
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
163
163
|
indent: undefined,
|
|
164
164
|
staticBase: null,
|
package/dist/get-cpu-count.js
CHANGED
|
@@ -6,10 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getCpuCount = exports.getConcurrencyFromNProc = void 0;
|
|
7
7
|
const node_child_process_1 = require("node:child_process");
|
|
8
8
|
const node_os_1 = require("node:os");
|
|
9
|
+
let nprocCount;
|
|
9
10
|
// We also get it from nproc and use the minimum of the two.
|
|
10
11
|
const getConcurrencyFromNProc = () => {
|
|
12
|
+
if (nprocCount !== undefined) {
|
|
13
|
+
return nprocCount;
|
|
14
|
+
}
|
|
11
15
|
try {
|
|
12
|
-
|
|
16
|
+
const count = parseInt((0, node_child_process_1.execSync)('nproc', { stdio: 'pipe' }).toString().trim(), 10);
|
|
17
|
+
nprocCount = count;
|
|
18
|
+
return count;
|
|
13
19
|
}
|
|
14
20
|
catch (_a) {
|
|
15
21
|
return null;
|
|
@@ -11,7 +11,7 @@ const cliFlag = 'offthreadvideo-video-threads';
|
|
|
11
11
|
exports.offthreadVideoThreadsOption = {
|
|
12
12
|
name: 'OffthreadVideo threads',
|
|
13
13
|
cliFlag,
|
|
14
|
-
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The number of threads that", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/offthreadvideo", children: (0, jsx_runtime_1.jsx)("code", { children: "<OffthreadVideo>" }) }), ' ', "can start to extract frames.
|
|
14
|
+
description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["The number of threads that", (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs/offthreadvideo", children: (0, jsx_runtime_1.jsx)("code", { children: "<OffthreadVideo>" }) }), ' ', "can start to extract frames. The default is", ' ', exports.DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS, ". Increase carefully, as too many threads may cause instability."] })),
|
|
15
15
|
ssrName: 'offthreadVideoThreads',
|
|
16
16
|
docLink: 'https://www.remotion.dev/docs/offthreadvideo',
|
|
17
17
|
type: 0,
|
package/dist/render-frames.js
CHANGED
|
@@ -358,12 +358,12 @@ const renderFrames = (options) => {
|
|
|
358
358
|
indent,
|
|
359
359
|
jpegQuality: jpegQuality !== null && jpegQuality !== void 0 ? jpegQuality : jpeg_quality_1.DEFAULT_JPEG_QUALITY,
|
|
360
360
|
onDownload: onDownload !== null && onDownload !== void 0 ? onDownload : null,
|
|
361
|
-
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
361
|
+
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
362
362
|
indent: undefined,
|
|
363
363
|
staticBase: null,
|
|
364
364
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
365
365
|
}).serializedString,
|
|
366
|
-
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
366
|
+
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
367
367
|
indent: undefined,
|
|
368
368
|
staticBase: null,
|
|
369
369
|
data: composition.props,
|
package/dist/render-media.js
CHANGED
|
@@ -539,7 +539,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
|
|
|
539
539
|
ffmpegOverride: ffmpegOverride !== null && ffmpegOverride !== void 0 ? ffmpegOverride : undefined,
|
|
540
540
|
frameRange: frameRange !== null && frameRange !== void 0 ? frameRange : null,
|
|
541
541
|
imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : image_format_1.DEFAULT_VIDEO_IMAGE_FORMAT,
|
|
542
|
-
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
542
|
+
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
543
543
|
indent: undefined,
|
|
544
544
|
staticBase: null,
|
|
545
545
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
@@ -566,7 +566,7 @@ const renderMedia = ({ proResProfile, x264Preset, crf, composition, inputProps,
|
|
|
566
566
|
indent,
|
|
567
567
|
onCtrlCExit: () => undefined,
|
|
568
568
|
server: undefined,
|
|
569
|
-
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
569
|
+
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
570
570
|
indent: undefined,
|
|
571
571
|
staticBase: null,
|
|
572
572
|
data: (_b = composition.props) !== null && _b !== void 0 ? _b : {},
|
package/dist/render-still.js
CHANGED
|
@@ -300,7 +300,7 @@ const renderStill = (options) => {
|
|
|
300
300
|
frame: frame !== null && frame !== void 0 ? frame : 0,
|
|
301
301
|
imageFormat: imageFormat !== null && imageFormat !== void 0 ? imageFormat : image_format_1.DEFAULT_STILL_IMAGE_FORMAT,
|
|
302
302
|
indent,
|
|
303
|
-
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
303
|
+
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
304
304
|
staticBase: null,
|
|
305
305
|
indent: undefined,
|
|
306
306
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
|
@@ -317,7 +317,7 @@ const renderStill = (options) => {
|
|
|
317
317
|
serveUrl,
|
|
318
318
|
timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : TimeoutSettings_1.DEFAULT_TIMEOUT,
|
|
319
319
|
logLevel,
|
|
320
|
-
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
320
|
+
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
321
321
|
indent: undefined,
|
|
322
322
|
staticBase: null,
|
|
323
323
|
data: (_b = composition.props) !== null && _b !== void 0 ? _b : {},
|
|
@@ -78,8 +78,8 @@ const innerSelectComposition = async ({ page, serializedInputPropsWithCustomSche
|
|
|
78
78
|
height,
|
|
79
79
|
fps,
|
|
80
80
|
durationInFrames,
|
|
81
|
-
props: no_react_1.NoReactInternals.
|
|
82
|
-
defaultProps: no_react_1.NoReactInternals.
|
|
81
|
+
props: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(res.serializedResolvedPropsWithCustomSchema),
|
|
82
|
+
defaultProps: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(res.serializedDefaultPropsWithCustomSchema),
|
|
83
83
|
defaultCodec,
|
|
84
84
|
defaultOutName,
|
|
85
85
|
},
|
|
@@ -181,7 +181,7 @@ const selectComposition = async (options) => {
|
|
|
181
181
|
browserExecutable: browserExecutable !== null && browserExecutable !== void 0 ? browserExecutable : null,
|
|
182
182
|
chromiumOptions: chromiumOptions !== null && chromiumOptions !== void 0 ? chromiumOptions : {},
|
|
183
183
|
envVariables: envVariables !== null && envVariables !== void 0 ? envVariables : {},
|
|
184
|
-
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.
|
|
184
|
+
serializedInputPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithSpecialTypes({
|
|
185
185
|
indent: undefined,
|
|
186
186
|
staticBase: null,
|
|
187
187
|
data: inputProps !== null && inputProps !== void 0 ? inputProps : {},
|
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.292",
|
|
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.292",
|
|
22
|
+
"@remotion/streaming": "4.0.292"
|
|
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.292",
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.292"
|
|
38
38
|
},
|
|
39
39
|
"optionalDependencies": {
|
|
40
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
41
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
42
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
43
|
-
"@remotion/compositor-linux-
|
|
44
|
-
"@remotion/compositor-linux-
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-
|
|
40
|
+
"@remotion/compositor-darwin-arm64": "4.0.292",
|
|
41
|
+
"@remotion/compositor-darwin-x64": "4.0.292",
|
|
42
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.292",
|
|
43
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.292",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.292",
|
|
45
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.292",
|
|
46
|
+
"@remotion/compositor-linux-x64-musl": "4.0.292"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|