remotion 3.1.8 → 3.2.0
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/.turbo/turbo-build.log +2 -2
- package/dist/audio/Audio.d.ts +2 -2
- package/dist/audio/Audio.js +1 -1
- package/dist/audio/AudioForDevelopment.d.ts +2 -2
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/internals.d.ts +1 -0
- package/dist/static-file.js +6 -0
- package/dist/video/Video.d.ts +2 -2
- package/dist/video/VideoForDevelopment.d.ts +2 -2
- package/dist/video/VideoForDevelopment.js +20 -0
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/dist/video/VideoForRendering.js +28 -18
- package/package.json +2 -2
- package/dist/audio/is-in-strict-mode.d.ts +0 -1
- package/dist/audio/is-in-strict-mode.js +0 -12
- package/dist/compress-assets.d.ts +0 -7
- package/dist/compress-assets.js +0 -25
- package/dist/config/browser-executable.d.ts +0 -3
- package/dist/config/browser-executable.js +0 -12
- package/dist/config/browser.d.ts +0 -4
- package/dist/config/browser.js +0 -19
- package/dist/config/bundle-out-dir.d.ts +0 -2
- package/dist/config/bundle-out-dir.js +0 -12
- package/dist/config/chromium-flags.d.ts +0 -10
- package/dist/config/chromium-flags.js +0 -34
- package/dist/config/codec.d.ts +0 -16
- package/dist/config/codec.js +0 -109
- package/dist/config/concurrency.d.ts +0 -3
- package/dist/config/concurrency.js +0 -12
- package/dist/config/crf.d.ts +0 -9
- package/dist/config/crf.js +0 -83
- package/dist/config/env-file.d.ts +0 -2
- package/dist/config/env-file.js +0 -10
- package/dist/config/every-nth-file.d.ts +0 -2
- package/dist/config/every-nth-file.js +0 -12
- package/dist/config/every-nth-frame.d.ts +0 -3
- package/dist/config/every-nth-frame.js +0 -20
- package/dist/config/ffmpeg-executable.d.ts +0 -5
- package/dist/config/ffmpeg-executable.js +0 -21
- package/dist/config/frame-range.d.ts +0 -5
- package/dist/config/frame-range.js +0 -80
- package/dist/config/image-format.d.ts +0 -8
- package/dist/config/image-format.js +0 -37
- package/dist/config/image-sequence.d.ts +0 -3
- package/dist/config/image-sequence.js +0 -15
- package/dist/config/index.d.ts +0 -182
- package/dist/config/index.js +0 -198
- package/dist/config/log.d.ts +0 -7
- package/dist/config/log.js +0 -25
- package/dist/config/loop.d.ts +0 -4
- package/dist/config/loop.js +0 -18
- package/dist/config/max-timeline-tracks.d.ts +0 -2
- package/dist/config/max-timeline-tracks.js +0 -24
- package/dist/config/number-of-gif-loops.d.ts +0 -4
- package/dist/config/number-of-gif-loops.js +0 -21
- package/dist/config/output-location.d.ts +0 -2
- package/dist/config/output-location.js +0 -16
- package/dist/config/override-webpack.d.ts +0 -6
- package/dist/config/override-webpack.js +0 -14
- package/dist/config/overwrite.d.ts +0 -3
- package/dist/config/overwrite.js +0 -14
- package/dist/config/pixel-format.d.ts +0 -8
- package/dist/config/pixel-format.js +0 -38
- package/dist/config/preview-server.d.ts +0 -2
- package/dist/config/preview-server.js +0 -20
- package/dist/config/prores-profile.d.ts +0 -7
- package/dist/config/prores-profile.js +0 -32
- package/dist/config/public-path.d.ts +0 -2
- package/dist/config/public-path.js +0 -12
- package/dist/config/quality.d.ts +0 -2
- package/dist/config/quality.js +0 -17
- package/dist/config/scale.d.ts +0 -3
- package/dist/config/scale.js +0 -15
- package/dist/config/skip-n-frames.d.ts +0 -2
- package/dist/config/skip-n-frames.js +0 -12
- package/dist/config/still-frame.d.ts +0 -2
- package/dist/config/still-frame.js +0 -12
- package/dist/config/timeout.d.ts +0 -2
- package/dist/config/timeout.js +0 -17
- package/dist/config/webpack-caching.d.ts +0 -3
- package/dist/config/webpack-caching.js +0 -16
- package/dist/feature-flags.d.ts +0 -1
- package/dist/feature-flags.js +0 -7
- package/dist/initial-frame.d.ts +0 -2
- package/dist/initial-frame.js +0 -12
- package/dist/interpolateColors.d.ts +0 -5
- package/dist/interpolateColors.js +0 -401
- package/dist/is-audio-codec.d.ts +0 -2
- package/dist/is-audio-codec.js +0 -7
- package/dist/perf/index.d.ts +0 -5
- package/dist/perf/index.js +0 -35
- package/dist/preload.d.ts +0 -7
- package/dist/preload.js +0 -39
- package/dist/sequencing/index.d.ts +0 -19
- package/dist/sequencing/index.js +0 -123
- package/dist/timeline-inout-position-state.d.ts +0 -12
- package/dist/timeline-inout-position-state.js +0 -23
- package/dist/timeout.d.ts +0 -2
- package/dist/timeout.js +0 -12
- package/dist/use-frame.d.ts +0 -7
- package/dist/use-frame.js +0 -25
- package/dist/validation/validate-every-nth-frame.d.ts +0 -1
- package/dist/validation/validate-every-nth-frame.js +0 -21
- package/dist/validation/validate-frame.d.ts +0 -1
- package/dist/validation/validate-frame.js +0 -24
- package/dist/validation/validate-image-format.d.ts +0 -2
- package/dist/validation/validate-image-format.js +0 -9
- package/dist/validation/validate-opengl-renderer.d.ts +0 -4
- package/dist/validation/validate-opengl-renderer.js +0 -14
- package/dist/validation/validate-quality.d.ts +0 -1
- package/dist/validation/validate-quality.js +0 -21
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useTimelineSetInOutFramePosition = exports.useTimelineInOutFramePosition = exports.SetTimelineInOutContext = exports.TimelineInOutContext = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
exports.TimelineInOutContext = (0, react_1.createContext)({
|
|
6
|
-
inFrame: null,
|
|
7
|
-
outFrame: null,
|
|
8
|
-
});
|
|
9
|
-
exports.SetTimelineInOutContext = (0, react_1.createContext)({
|
|
10
|
-
setInAndOutFrames: () => {
|
|
11
|
-
throw new Error('default');
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
const useTimelineInOutFramePosition = () => {
|
|
15
|
-
const state = (0, react_1.useContext)(exports.TimelineInOutContext);
|
|
16
|
-
return state;
|
|
17
|
-
};
|
|
18
|
-
exports.useTimelineInOutFramePosition = useTimelineInOutFramePosition;
|
|
19
|
-
const useTimelineSetInOutFramePosition = () => {
|
|
20
|
-
const { setInAndOutFrames } = (0, react_1.useContext)(exports.SetTimelineInOutContext);
|
|
21
|
-
return { setInAndOutFrames };
|
|
22
|
-
};
|
|
23
|
-
exports.useTimelineSetInOutFramePosition = useTimelineSetInOutFramePosition;
|
package/dist/timeout.d.ts
DELETED
package/dist/timeout.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupPuppeteerTimeout = exports.DEFAULT_PUPPETEER_TIMEOUT = void 0;
|
|
4
|
-
exports.DEFAULT_PUPPETEER_TIMEOUT = 30000;
|
|
5
|
-
const getPuppeteerTimeout = () => {
|
|
6
|
-
const param = window.remotion_puppeteerTimeout;
|
|
7
|
-
return param ? Number(param) : exports.DEFAULT_PUPPETEER_TIMEOUT;
|
|
8
|
-
};
|
|
9
|
-
const setupPuppeteerTimeout = () => {
|
|
10
|
-
window.remotion_puppeteerTimeout = getPuppeteerTimeout();
|
|
11
|
-
};
|
|
12
|
-
exports.setupPuppeteerTimeout = setupPuppeteerTimeout;
|
package/dist/use-frame.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const useAbsoluteCurrentFrame: () => number;
|
|
2
|
-
/**
|
|
3
|
-
* Get the current frame of the video.
|
|
4
|
-
* Frames are 0-indexed, meaning the first frame is 0, the last frame is the duration of the composition in frames minus one.
|
|
5
|
-
* @link https://www.remotion.dev/docs/use-current-frame
|
|
6
|
-
*/
|
|
7
|
-
export declare const useCurrentFrame: () => number;
|
package/dist/use-frame.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useCurrentFrame = exports.useAbsoluteCurrentFrame = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const sequencing_1 = require("./sequencing");
|
|
6
|
-
const timeline_position_state_1 = require("./timeline-position-state");
|
|
7
|
-
const useAbsoluteCurrentFrame = () => {
|
|
8
|
-
const timelinePosition = (0, timeline_position_state_1.useTimelinePosition)();
|
|
9
|
-
return timelinePosition;
|
|
10
|
-
};
|
|
11
|
-
exports.useAbsoluteCurrentFrame = useAbsoluteCurrentFrame;
|
|
12
|
-
/**
|
|
13
|
-
* Get the current frame of the video.
|
|
14
|
-
* Frames are 0-indexed, meaning the first frame is 0, the last frame is the duration of the composition in frames minus one.
|
|
15
|
-
* @link https://www.remotion.dev/docs/use-current-frame
|
|
16
|
-
*/
|
|
17
|
-
const useCurrentFrame = () => {
|
|
18
|
-
const frame = (0, exports.useAbsoluteCurrentFrame)();
|
|
19
|
-
const context = (0, react_1.useContext)(sequencing_1.SequenceContext);
|
|
20
|
-
const contextOffset = context
|
|
21
|
-
? context.cumulatedFrom + context.relativeFrom
|
|
22
|
-
: 0;
|
|
23
|
-
return frame - contextOffset;
|
|
24
|
-
};
|
|
25
|
-
exports.useCurrentFrame = useCurrentFrame;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validateEveryNthFrame: (everyNthFrame: unknown) => void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateEveryNthFrame = void 0;
|
|
4
|
-
const validateEveryNthFrame = (everyNthFrame) => {
|
|
5
|
-
if (typeof everyNthFrame === 'undefined') {
|
|
6
|
-
throw new TypeError(`Argument missing for parameter "everyNthFrame"`);
|
|
7
|
-
}
|
|
8
|
-
if (typeof everyNthFrame !== 'number') {
|
|
9
|
-
throw new TypeError(`Argument passed to "everyNthFrame" is not a number: ${everyNthFrame}`);
|
|
10
|
-
}
|
|
11
|
-
if (everyNthFrame < 1) {
|
|
12
|
-
throw new RangeError(`The value for "everyNthFrame" cannot be below 1, but is ${everyNthFrame}`);
|
|
13
|
-
}
|
|
14
|
-
if (!Number.isFinite(everyNthFrame)) {
|
|
15
|
-
throw new RangeError(`"everyNthFrame" ${everyNthFrame} is not finite`);
|
|
16
|
-
}
|
|
17
|
-
if (everyNthFrame % 1 !== 0) {
|
|
18
|
-
throw new RangeError(`Argument for everyNthFrame must be an integer, but got ${everyNthFrame}`);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.validateEveryNthFrame = validateEveryNthFrame;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validateFrame: (frame: number, durationInFrames: number) => void;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateFrame = void 0;
|
|
4
|
-
const validateFrame = (frame, durationInFrames) => {
|
|
5
|
-
if (typeof frame === 'undefined') {
|
|
6
|
-
throw new TypeError(`Argument missing for parameter "frame"`);
|
|
7
|
-
}
|
|
8
|
-
if (typeof frame !== 'number') {
|
|
9
|
-
throw new TypeError(`Argument passed for "frame" is not a number: ${frame}`);
|
|
10
|
-
}
|
|
11
|
-
if (frame < 0) {
|
|
12
|
-
throw new RangeError(`Frame ${frame} cannot be negative`);
|
|
13
|
-
}
|
|
14
|
-
if (!Number.isFinite(frame)) {
|
|
15
|
-
throw new RangeError(`Frame ${frame} is not finite`);
|
|
16
|
-
}
|
|
17
|
-
if (frame % 1 !== 0) {
|
|
18
|
-
throw new RangeError(`Argument for frame must be an integer, but got ${frame}`);
|
|
19
|
-
}
|
|
20
|
-
if (frame > durationInFrames - 1) {
|
|
21
|
-
throw new RangeError(`Cannot use frame ${frame}: Duration of composition is ${durationInFrames}, therefore the highest frame that can be rendered is ${durationInFrames - 1}`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.validateFrame = validateFrame;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateNonNullImageFormat = void 0;
|
|
4
|
-
const validateNonNullImageFormat = (imageFormat) => {
|
|
5
|
-
if (imageFormat !== 'jpeg' && imageFormat !== 'png') {
|
|
6
|
-
throw new TypeError('Image format should be either "png" or "jpeg"');
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
exports.validateNonNullImageFormat = validateNonNullImageFormat;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateOpenGlRenderer = void 0;
|
|
4
|
-
const validRenderers = ['swangle', 'angle', 'egl', 'swiftshader'];
|
|
5
|
-
const validateOpenGlRenderer = (option) => {
|
|
6
|
-
if (option === null) {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
if (!validRenderers.includes(option)) {
|
|
10
|
-
throw new TypeError(`${option} is not a valid GL backend. Accepted values: ${validRenderers.join(', ')}`);
|
|
11
|
-
}
|
|
12
|
-
return option;
|
|
13
|
-
};
|
|
14
|
-
exports.validateOpenGlRenderer = validateOpenGlRenderer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const validateQuality: (q: number | undefined) => void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateQuality = void 0;
|
|
4
|
-
const validateQuality = (q) => {
|
|
5
|
-
if (typeof q !== 'undefined' && typeof q !== 'number') {
|
|
6
|
-
throw new Error(`Quality option must be a number or undefined. Got ${typeof q} (${JSON.stringify(q)})`);
|
|
7
|
-
}
|
|
8
|
-
if (typeof q === 'undefined') {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
if (!Number.isFinite(q)) {
|
|
12
|
-
throw new RangeError(`Quality must be a finite number, but is ${q}`);
|
|
13
|
-
}
|
|
14
|
-
if (Number.isNaN(q)) {
|
|
15
|
-
throw new RangeError(`Quality is NaN, but must be a real number`);
|
|
16
|
-
}
|
|
17
|
-
if (q > 100 || q < 0) {
|
|
18
|
-
throw new RangeError('Quality option must be between 0 and 100.');
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.validateQuality = validateQuality;
|