remotion 4.0.366 → 4.0.368
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/cjs/Composition.d.ts +2 -0
- package/dist/cjs/CompositionManagerContext.d.ts +1 -1
- package/dist/cjs/ResolveCompositionConfig.js +1 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/no-react.d.ts +1 -0
- package/dist/cjs/no-react.js +2 -0
- package/dist/cjs/prores-profile.d.ts +2 -0
- package/dist/cjs/prores-profile.js +11 -0
- package/dist/cjs/resolve-video-config.js +7 -2
- package/dist/cjs/use-unsafe-video-config.js +2 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video-config.d.ts +2 -0
- package/dist/esm/index.mjs +18 -9
- package/dist/esm/no-react.mjs +12 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { AnyZodObject } from 'zod';
|
|
4
4
|
import type { Codec } from './codec.js';
|
|
5
5
|
import type { InferProps, PropsIfHasProps } from './props-if-has-props.js';
|
|
6
|
+
import type { ProResProfile } from './prores-profile.js';
|
|
6
7
|
import type { PixelFormat, VideoImageFormat } from './render-types.js';
|
|
7
8
|
type LooseComponentType<T> = ComponentType<T> | ((props: T) => React.ReactNode);
|
|
8
9
|
export type CompProps<Props> = {
|
|
@@ -22,6 +23,7 @@ export type CalcMetadataReturnType<T extends Record<string, unknown>> = {
|
|
|
22
23
|
defaultOutName?: string;
|
|
23
24
|
defaultVideoImageFormat?: VideoImageFormat;
|
|
24
25
|
defaultPixelFormat?: PixelFormat;
|
|
26
|
+
defaultProResProfile?: ProResProfile;
|
|
25
27
|
};
|
|
26
28
|
export type CalculateMetadataFunction<T extends Record<string, unknown>> = (options: {
|
|
27
29
|
defaultProps: T;
|
|
@@ -3,7 +3,7 @@ import type { AnyZodObject } from 'zod';
|
|
|
3
3
|
import type { AnyComposition, TComposition } from './CompositionManager.js';
|
|
4
4
|
import type { TFolder } from './Folder.js';
|
|
5
5
|
import type { VideoConfig } from './video-config.js';
|
|
6
|
-
export type BaseMetadata = Pick<VideoConfig, 'durationInFrames' | 'fps' | 'props' | 'height' | 'width' | 'defaultCodec' | 'defaultOutName' | 'defaultVideoImageFormat' | 'defaultPixelFormat'>;
|
|
6
|
+
export type BaseMetadata = Pick<VideoConfig, 'durationInFrames' | 'fps' | 'props' | 'height' | 'width' | 'defaultCodec' | 'defaultOutName' | 'defaultVideoImageFormat' | 'defaultPixelFormat' | 'defaultProResProfile'>;
|
|
7
7
|
export type CanvasContent = {
|
|
8
8
|
type: 'composition';
|
|
9
9
|
compositionId: string;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { Codec } from './codec.js';
|
|
|
4
4
|
import type { AnyCompMetadata, AnyComposition, AudioOrVideoAsset, LoopDisplay, TRenderAsset } from './CompositionManager.js';
|
|
5
5
|
import type { StaticFile } from './get-static-files.js';
|
|
6
6
|
import type { LogLevel } from './log.js';
|
|
7
|
+
import type { ProResProfile } from './prores-profile.js';
|
|
7
8
|
import type { PixelFormat, VideoImageFormat } from './render-types.js';
|
|
8
9
|
import type { VideoConfig } from './video-config.js';
|
|
9
10
|
export type VideoConfigWithSerializedProps = Omit<VideoConfig, 'defaultProps' | 'props'> & {
|
|
@@ -75,6 +76,7 @@ export type BundleCompositionState = {
|
|
|
75
76
|
compositionDefaultOutName: string | null;
|
|
76
77
|
compositionDefaultVideoImageFormat: VideoImageFormat | null;
|
|
77
78
|
compositionDefaultPixelFormat: PixelFormat | null;
|
|
79
|
+
compositionDefaultProResProfile: ProResProfile | null;
|
|
78
80
|
};
|
|
79
81
|
export type BundleIndexState = {
|
|
80
82
|
type: 'index';
|
|
@@ -150,4 +152,5 @@ export type _InternalTypes = {
|
|
|
150
152
|
AudioOrVideoAsset: AudioOrVideoAsset;
|
|
151
153
|
TRenderAsset: TRenderAsset;
|
|
152
154
|
LoopDisplay: LoopDisplay;
|
|
155
|
+
ProResProfile: ProResProfile;
|
|
153
156
|
};
|
package/dist/cjs/no-react.d.ts
CHANGED
package/dist/cjs/no-react.js
CHANGED
|
@@ -9,6 +9,7 @@ const delay_render_1 = require("./delay-render");
|
|
|
9
9
|
const input_props_serialization_1 = require("./input-props-serialization");
|
|
10
10
|
const input_props_serialization_js_1 = require("./input-props-serialization.js");
|
|
11
11
|
const interpolate_colors_1 = require("./interpolate-colors");
|
|
12
|
+
const prores_profile_1 = require("./prores-profile");
|
|
12
13
|
const truthy_1 = require("./truthy");
|
|
13
14
|
const v5_flag_1 = require("./v5-flag");
|
|
14
15
|
const validate_frame_1 = require("./validate-frame");
|
|
@@ -44,4 +45,5 @@ exports.NoReactInternals = {
|
|
|
44
45
|
DATE_TOKEN: input_props_serialization_js_1.DATE_TOKEN,
|
|
45
46
|
FILE_TOKEN: input_props_serialization_js_1.FILE_TOKEN,
|
|
46
47
|
validateCodec: validate_default_codec_1.validateCodec,
|
|
48
|
+
proResProfileOptions: prores_profile_1.proResProfileOptions,
|
|
47
49
|
};
|
|
@@ -27,6 +27,7 @@ const validateCalculated = ({ calculated, compositionId, compositionFps, composi
|
|
|
27
27
|
const defaultOutName = calculated === null || calculated === void 0 ? void 0 : calculated.defaultOutName;
|
|
28
28
|
const defaultVideoImageFormat = calculated === null || calculated === void 0 ? void 0 : calculated.defaultVideoImageFormat;
|
|
29
29
|
const defaultPixelFormat = calculated === null || calculated === void 0 ? void 0 : calculated.defaultPixelFormat;
|
|
30
|
+
const defaultProResProfile = calculated === null || calculated === void 0 ? void 0 : calculated.defaultProResProfile;
|
|
30
31
|
return {
|
|
31
32
|
width,
|
|
32
33
|
height,
|
|
@@ -36,10 +37,11 @@ const validateCalculated = ({ calculated, compositionId, compositionFps, composi
|
|
|
36
37
|
defaultOutName,
|
|
37
38
|
defaultVideoImageFormat,
|
|
38
39
|
defaultPixelFormat,
|
|
40
|
+
defaultProResProfile,
|
|
39
41
|
};
|
|
40
42
|
};
|
|
41
43
|
const resolveVideoConfig = ({ calculateMetadata, signal, defaultProps, originalProps, compositionId, compositionDurationInFrames, compositionFps, compositionHeight, compositionWidth, }) => {
|
|
42
|
-
var _a, _b, _c, _d, _e;
|
|
44
|
+
var _a, _b, _c, _d, _e, _f;
|
|
43
45
|
const calculatedProm = calculateMetadata
|
|
44
46
|
? calculateMetadata({
|
|
45
47
|
defaultProps,
|
|
@@ -54,7 +56,7 @@ const resolveVideoConfig = ({ calculateMetadata, signal, defaultProps, originalP
|
|
|
54
56
|
'then' in calculatedProm) {
|
|
55
57
|
return calculatedProm.then((c) => {
|
|
56
58
|
var _a;
|
|
57
|
-
const { height, width, durationInFrames, fps, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = validateCalculated({
|
|
59
|
+
const { height, width, durationInFrames, fps, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile, } = validateCalculated({
|
|
58
60
|
calculated: c,
|
|
59
61
|
compositionDurationInFrames,
|
|
60
62
|
compositionFps,
|
|
@@ -74,6 +76,7 @@ const resolveVideoConfig = ({ calculateMetadata, signal, defaultProps, originalP
|
|
|
74
76
|
defaultOutName: defaultOutName !== null && defaultOutName !== void 0 ? defaultOutName : null,
|
|
75
77
|
defaultVideoImageFormat: defaultVideoImageFormat !== null && defaultVideoImageFormat !== void 0 ? defaultVideoImageFormat : null,
|
|
76
78
|
defaultPixelFormat: defaultPixelFormat !== null && defaultPixelFormat !== void 0 ? defaultPixelFormat : null,
|
|
79
|
+
defaultProResProfile: defaultProResProfile !== null && defaultProResProfile !== void 0 ? defaultProResProfile : null,
|
|
77
80
|
};
|
|
78
81
|
});
|
|
79
82
|
}
|
|
@@ -95,6 +98,7 @@ const resolveVideoConfig = ({ calculateMetadata, signal, defaultProps, originalP
|
|
|
95
98
|
defaultOutName: null,
|
|
96
99
|
defaultVideoImageFormat: null,
|
|
97
100
|
defaultPixelFormat: null,
|
|
101
|
+
defaultProResProfile: null,
|
|
98
102
|
};
|
|
99
103
|
}
|
|
100
104
|
return {
|
|
@@ -106,6 +110,7 @@ const resolveVideoConfig = ({ calculateMetadata, signal, defaultProps, originalP
|
|
|
106
110
|
defaultOutName: (_c = calculatedProm.defaultOutName) !== null && _c !== void 0 ? _c : null,
|
|
107
111
|
defaultVideoImageFormat: (_d = calculatedProm.defaultVideoImageFormat) !== null && _d !== void 0 ? _d : null,
|
|
108
112
|
defaultPixelFormat: (_e = calculatedProm.defaultPixelFormat) !== null && _e !== void 0 ? _e : null,
|
|
113
|
+
defaultProResProfile: (_f = calculatedProm.defaultProResProfile) !== null && _f !== void 0 ? _f : null,
|
|
109
114
|
};
|
|
110
115
|
};
|
|
111
116
|
exports.resolveVideoConfig = resolveVideoConfig;
|
|
@@ -15,7 +15,7 @@ const useUnsafeVideoConfig = () => {
|
|
|
15
15
|
if (!video) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
const { id, durationInFrames, fps, height, width, defaultProps, props, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, } = video;
|
|
18
|
+
const { id, durationInFrames, fps, height, width, defaultProps, props, defaultCodec, defaultOutName, defaultVideoImageFormat, defaultPixelFormat, defaultProResProfile, } = video;
|
|
19
19
|
return {
|
|
20
20
|
id,
|
|
21
21
|
width: ctxWidth !== null && ctxWidth !== void 0 ? ctxWidth : width,
|
|
@@ -28,6 +28,7 @@ const useUnsafeVideoConfig = () => {
|
|
|
28
28
|
defaultOutName,
|
|
29
29
|
defaultVideoImageFormat,
|
|
30
30
|
defaultPixelFormat,
|
|
31
|
+
defaultProResProfile,
|
|
31
32
|
};
|
|
32
33
|
}, [ctxDuration, ctxHeight, ctxWidth, video]);
|
|
33
34
|
};
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
|
+
import type { ProResProfile } from './prores-profile';
|
|
2
3
|
import type { PixelFormat, VideoImageFormat } from './render-types';
|
|
3
4
|
export type VideoConfig = {
|
|
4
5
|
width: number;
|
|
@@ -12,4 +13,5 @@ export type VideoConfig = {
|
|
|
12
13
|
defaultOutName: string | null;
|
|
13
14
|
defaultVideoImageFormat: VideoImageFormat | null;
|
|
14
15
|
defaultPixelFormat: PixelFormat | null;
|
|
16
|
+
defaultProResProfile: ProResProfile | null;
|
|
15
17
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ function truthy(value) {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// src/version.ts
|
|
113
|
-
var VERSION = "4.0.
|
|
113
|
+
var VERSION = "4.0.368";
|
|
114
114
|
|
|
115
115
|
// src/multiple-versions-warning.ts
|
|
116
116
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -690,6 +690,7 @@ var validateCalculated = ({
|
|
|
690
690
|
const defaultOutName = calculated?.defaultOutName;
|
|
691
691
|
const defaultVideoImageFormat = calculated?.defaultVideoImageFormat;
|
|
692
692
|
const defaultPixelFormat = calculated?.defaultPixelFormat;
|
|
693
|
+
const defaultProResProfile = calculated?.defaultProResProfile;
|
|
693
694
|
return {
|
|
694
695
|
width,
|
|
695
696
|
height,
|
|
@@ -698,7 +699,8 @@ var validateCalculated = ({
|
|
|
698
699
|
defaultCodec,
|
|
699
700
|
defaultOutName,
|
|
700
701
|
defaultVideoImageFormat,
|
|
701
|
-
defaultPixelFormat
|
|
702
|
+
defaultPixelFormat,
|
|
703
|
+
defaultProResProfile
|
|
702
704
|
};
|
|
703
705
|
};
|
|
704
706
|
var resolveVideoConfig = ({
|
|
@@ -729,7 +731,8 @@ var resolveVideoConfig = ({
|
|
|
729
731
|
defaultCodec,
|
|
730
732
|
defaultOutName,
|
|
731
733
|
defaultVideoImageFormat,
|
|
732
|
-
defaultPixelFormat
|
|
734
|
+
defaultPixelFormat,
|
|
735
|
+
defaultProResProfile
|
|
733
736
|
} = validateCalculated({
|
|
734
737
|
calculated: c,
|
|
735
738
|
compositionDurationInFrames,
|
|
@@ -749,7 +752,8 @@ var resolveVideoConfig = ({
|
|
|
749
752
|
defaultCodec: defaultCodec ?? null,
|
|
750
753
|
defaultOutName: defaultOutName ?? null,
|
|
751
754
|
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
752
|
-
defaultPixelFormat: defaultPixelFormat ?? null
|
|
755
|
+
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
756
|
+
defaultProResProfile: defaultProResProfile ?? null
|
|
753
757
|
};
|
|
754
758
|
});
|
|
755
759
|
}
|
|
@@ -770,7 +774,8 @@ var resolveVideoConfig = ({
|
|
|
770
774
|
defaultCodec: null,
|
|
771
775
|
defaultOutName: null,
|
|
772
776
|
defaultVideoImageFormat: null,
|
|
773
|
-
defaultPixelFormat: null
|
|
777
|
+
defaultPixelFormat: null,
|
|
778
|
+
defaultProResProfile: null
|
|
774
779
|
};
|
|
775
780
|
}
|
|
776
781
|
return {
|
|
@@ -781,7 +786,8 @@ var resolveVideoConfig = ({
|
|
|
781
786
|
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
782
787
|
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
783
788
|
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
784
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null
|
|
789
|
+
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
790
|
+
defaultProResProfile: calculatedProm.defaultProResProfile ?? null
|
|
785
791
|
};
|
|
786
792
|
};
|
|
787
793
|
var resolveVideoConfigOrCatch = (params) => {
|
|
@@ -1109,7 +1115,8 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
1109
1115
|
defaultCodec: null,
|
|
1110
1116
|
defaultOutName: null,
|
|
1111
1117
|
defaultVideoImageFormat: null,
|
|
1112
|
-
defaultPixelFormat: null
|
|
1118
|
+
defaultPixelFormat: null,
|
|
1119
|
+
defaultProResProfile: null
|
|
1113
1120
|
}
|
|
1114
1121
|
};
|
|
1115
1122
|
}
|
|
@@ -1257,7 +1264,8 @@ var useUnsafeVideoConfig = () => {
|
|
|
1257
1264
|
defaultCodec,
|
|
1258
1265
|
defaultOutName,
|
|
1259
1266
|
defaultVideoImageFormat,
|
|
1260
|
-
defaultPixelFormat
|
|
1267
|
+
defaultPixelFormat,
|
|
1268
|
+
defaultProResProfile
|
|
1261
1269
|
} = video;
|
|
1262
1270
|
return {
|
|
1263
1271
|
id,
|
|
@@ -1270,7 +1278,8 @@ var useUnsafeVideoConfig = () => {
|
|
|
1270
1278
|
defaultCodec,
|
|
1271
1279
|
defaultOutName,
|
|
1272
1280
|
defaultVideoImageFormat,
|
|
1273
|
-
defaultPixelFormat
|
|
1281
|
+
defaultPixelFormat,
|
|
1282
|
+
defaultProResProfile
|
|
1274
1283
|
};
|
|
1275
1284
|
}, [ctxDuration, ctxHeight, ctxWidth, video]);
|
|
1276
1285
|
};
|
package/dist/esm/no-react.mjs
CHANGED
|
@@ -493,6 +493,16 @@ function processColor(color) {
|
|
|
493
493
|
return (normalizedColor << 24 | normalizedColor >>> 8) >>> 0;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
// src/prores-profile.ts
|
|
497
|
+
var proResProfileOptions = [
|
|
498
|
+
"4444-xq",
|
|
499
|
+
"4444",
|
|
500
|
+
"hq",
|
|
501
|
+
"standard",
|
|
502
|
+
"light",
|
|
503
|
+
"proxy"
|
|
504
|
+
];
|
|
505
|
+
|
|
496
506
|
// src/v5-flag.ts
|
|
497
507
|
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
498
508
|
|
|
@@ -676,7 +686,8 @@ var NoReactInternals = {
|
|
|
676
686
|
colorNames,
|
|
677
687
|
DATE_TOKEN,
|
|
678
688
|
FILE_TOKEN,
|
|
679
|
-
validateCodec
|
|
689
|
+
validateCodec,
|
|
690
|
+
proResProfileOptions
|
|
680
691
|
};
|
|
681
692
|
export {
|
|
682
693
|
random,
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
|
|
4
4
|
},
|
|
5
5
|
"name": "remotion",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.368",
|
|
7
7
|
"description": "Make videos programmatically",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": "19.0.0",
|
|
35
35
|
"webpack": "5.96.1",
|
|
36
36
|
"zod": "3.22.3",
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.368",
|
|
38
38
|
"eslint": "9.19.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|