remotion 3.2.13 → 3.2.14

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.
Files changed (84) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/dist/config/bundle-out-dir.d.ts +2 -0
  3. package/dist/config/bundle-out-dir.js +12 -0
  4. package/dist/config/public-path.d.ts +2 -0
  5. package/dist/config/public-path.js +12 -0
  6. package/dist/version.d.ts +1 -1
  7. package/dist/version.js +1 -1
  8. package/package.json +2 -2
  9. package/.turbo/turbo-lint.log +0 -11
  10. package/.turbo/turbo-test.log +0 -405
  11. package/dist/compress-assets.d.ts +0 -7
  12. package/dist/compress-assets.js +0 -25
  13. package/dist/config/browser-executable.d.ts +0 -3
  14. package/dist/config/browser-executable.js +0 -12
  15. package/dist/config/browser.d.ts +0 -4
  16. package/dist/config/browser.js +0 -19
  17. package/dist/config/chromium-flags.d.ts +0 -10
  18. package/dist/config/chromium-flags.js +0 -34
  19. package/dist/config/codec.d.ts +0 -16
  20. package/dist/config/codec.js +0 -109
  21. package/dist/config/concurrency.d.ts +0 -3
  22. package/dist/config/concurrency.js +0 -12
  23. package/dist/config/crf.d.ts +0 -9
  24. package/dist/config/crf.js +0 -83
  25. package/dist/config/env-file.d.ts +0 -2
  26. package/dist/config/env-file.js +0 -10
  27. package/dist/config/every-nth-frame.d.ts +0 -3
  28. package/dist/config/every-nth-frame.js +0 -20
  29. package/dist/config/ffmpeg-executable.d.ts +0 -5
  30. package/dist/config/ffmpeg-executable.js +0 -21
  31. package/dist/config/frame-range.d.ts +0 -5
  32. package/dist/config/frame-range.js +0 -80
  33. package/dist/config/image-format.d.ts +0 -8
  34. package/dist/config/image-format.js +0 -37
  35. package/dist/config/image-sequence.d.ts +0 -3
  36. package/dist/config/image-sequence.js +0 -15
  37. package/dist/config/index.d.ts +0 -178
  38. package/dist/config/index.js +0 -193
  39. package/dist/config/log.d.ts +0 -7
  40. package/dist/config/log.js +0 -25
  41. package/dist/config/max-timeline-tracks.d.ts +0 -2
  42. package/dist/config/max-timeline-tracks.js +0 -24
  43. package/dist/config/number-of-gif-loops.d.ts +0 -4
  44. package/dist/config/number-of-gif-loops.js +0 -21
  45. package/dist/config/override-webpack.d.ts +0 -6
  46. package/dist/config/override-webpack.js +0 -14
  47. package/dist/config/overwrite.d.ts +0 -3
  48. package/dist/config/overwrite.js +0 -14
  49. package/dist/config/pixel-format.d.ts +0 -8
  50. package/dist/config/pixel-format.js +0 -38
  51. package/dist/config/preview-server.d.ts +0 -2
  52. package/dist/config/preview-server.js +0 -20
  53. package/dist/config/prores-profile.d.ts +0 -7
  54. package/dist/config/prores-profile.js +0 -32
  55. package/dist/config/quality.d.ts +0 -2
  56. package/dist/config/quality.js +0 -17
  57. package/dist/config/scale.d.ts +0 -3
  58. package/dist/config/scale.js +0 -15
  59. package/dist/config/still-frame.d.ts +0 -2
  60. package/dist/config/still-frame.js +0 -12
  61. package/dist/config/timeout.d.ts +0 -2
  62. package/dist/config/timeout.js +0 -17
  63. package/dist/config/webpack-caching.d.ts +0 -3
  64. package/dist/config/webpack-caching.js +0 -16
  65. package/dist/feature-flags.d.ts +0 -1
  66. package/dist/feature-flags.js +0 -7
  67. package/dist/is-audio-codec.d.ts +0 -2
  68. package/dist/is-audio-codec.js +0 -7
  69. package/dist/perf/index.d.ts +0 -5
  70. package/dist/perf/index.js +0 -35
  71. package/dist/timeline-inout-position-state.d.ts +0 -12
  72. package/dist/timeline-inout-position-state.js +0 -23
  73. package/dist/timeout.d.ts +0 -2
  74. package/dist/timeout.js +0 -12
  75. package/dist/validation/validate-every-nth-frame.d.ts +0 -1
  76. package/dist/validation/validate-every-nth-frame.js +0 -21
  77. package/dist/validation/validate-frame.d.ts +0 -1
  78. package/dist/validation/validate-frame.js +0 -24
  79. package/dist/validation/validate-image-format.d.ts +0 -2
  80. package/dist/validation/validate-image-format.js +0 -9
  81. package/dist/validation/validate-opengl-renderer.d.ts +0 -4
  82. package/dist/validation/validate-opengl-renderer.js +0 -14
  83. package/dist/validation/validate-quality.d.ts +0 -1
  84. package/dist/validation/validate-quality.js +0 -21
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getScale = exports.setScale = void 0;
4
- let currentScale = 1;
5
- const setScale = (newScale) => {
6
- if (typeof newScale !== 'number') {
7
- throw new Error('--scale flag must be a number.');
8
- }
9
- currentScale = newScale;
10
- };
11
- exports.setScale = setScale;
12
- const getScale = () => {
13
- return currentScale;
14
- };
15
- exports.getScale = getScale;
@@ -1,2 +0,0 @@
1
- export declare const setStillFrame: (frame: number) => void;
2
- export declare const getStillFrame: () => number;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getStillFrame = exports.setStillFrame = void 0;
4
- const validate_frame_1 = require("../validation/validate-frame");
5
- let stillFrame = 0;
6
- const setStillFrame = (frame) => {
7
- (0, validate_frame_1.validateFrame)(frame, Infinity);
8
- stillFrame = frame;
9
- };
10
- exports.setStillFrame = setStillFrame;
11
- const getStillFrame = () => stillFrame;
12
- exports.getStillFrame = getStillFrame;
@@ -1,2 +0,0 @@
1
- export declare const setPuppeteerTimeout: (newPuppeteerTimeout: number) => void;
2
- export declare const getCurrentPuppeteerTimeout: () => number;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCurrentPuppeteerTimeout = exports.setPuppeteerTimeout = void 0;
4
- const timeout_1 = require("../timeout");
5
- let currentTimeout = timeout_1.DEFAULT_PUPPETEER_TIMEOUT;
6
- const setPuppeteerTimeout = (newPuppeteerTimeout) => {
7
- if (typeof newPuppeteerTimeout !== 'number') {
8
- throw new Error('--timeout flag / setTimeoutInMilliseconds() must be a number, but got ' +
9
- JSON.stringify(newPuppeteerTimeout));
10
- }
11
- currentTimeout = newPuppeteerTimeout;
12
- };
13
- exports.setPuppeteerTimeout = setPuppeteerTimeout;
14
- const getCurrentPuppeteerTimeout = () => {
15
- return currentTimeout;
16
- };
17
- exports.getCurrentPuppeteerTimeout = getCurrentPuppeteerTimeout;
@@ -1,3 +0,0 @@
1
- export declare const DEFAULT_WEBPACK_CACHE_ENABLED = true;
2
- export declare const setWebpackCaching: (flag: boolean) => void;
3
- export declare const getWebpackCaching: () => boolean;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getWebpackCaching = exports.setWebpackCaching = exports.DEFAULT_WEBPACK_CACHE_ENABLED = void 0;
4
- exports.DEFAULT_WEBPACK_CACHE_ENABLED = true;
5
- let webpackCaching = exports.DEFAULT_WEBPACK_CACHE_ENABLED;
6
- const setWebpackCaching = (flag) => {
7
- if (typeof flag !== 'boolean') {
8
- throw new TypeError('Caching flag must be a boolean.');
9
- }
10
- webpackCaching = flag;
11
- };
12
- exports.setWebpackCaching = setWebpackCaching;
13
- const getWebpackCaching = () => {
14
- return webpackCaching;
15
- };
16
- exports.getWebpackCaching = getWebpackCaching;
@@ -1 +0,0 @@
1
- export declare const FEATURE_FLAG_FIREFOX_SUPPORT = false;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FEATURE_FLAG_FIREFOX_SUPPORT = void 0;
4
- // There is no Firefox support yet, the waitForFunction method
5
- // does not yet work and downloading has a bug.
6
- // Disabling this for now!
7
- exports.FEATURE_FLAG_FIREFOX_SUPPORT = false;
@@ -1,2 +0,0 @@
1
- import type { Codec } from './config';
2
- export declare const isAudioCodec: (codec: Codec | undefined) => boolean;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isAudioCodec = void 0;
4
- const isAudioCodec = (codec) => {
5
- return codec === 'mp3' || codec === 'aac' || codec === 'wav';
6
- };
7
- exports.isAudioCodec = isAudioCodec;
@@ -1,5 +0,0 @@
1
- declare type PerfId = 'activate-target' | 'capture' | 'save' | 'extract-frame' | 'piping';
2
- export declare const startPerfMeasure: (marker: PerfId) => number;
3
- export declare const stopPerfMeasure: (id: number) => void;
4
- export declare const logPerf: () => void;
5
- export {};
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.logPerf = exports.stopPerfMeasure = exports.startPerfMeasure = void 0;
4
- const perf = {
5
- 'activate-target': [],
6
- capture: [],
7
- save: [],
8
- 'extract-frame': [],
9
- piping: [],
10
- };
11
- const map = {};
12
- const startPerfMeasure = (marker) => {
13
- const id = Math.random();
14
- map[id] = {
15
- id,
16
- marker,
17
- start: Date.now(),
18
- };
19
- return id;
20
- };
21
- exports.startPerfMeasure = startPerfMeasure;
22
- const stopPerfMeasure = (id) => {
23
- const now = Date.now();
24
- const diff = now - map[id].start;
25
- perf[map[id].marker].push(diff);
26
- delete map[id];
27
- };
28
- exports.stopPerfMeasure = stopPerfMeasure;
29
- const logPerf = () => {
30
- console.log('Render performance:');
31
- Object.keys(perf).forEach((p) => {
32
- console.log(` ${p} => ${perf[p].reduce((a, b) => a + b, 0) / perf[p].length} (n = ${perf[p].length})`);
33
- });
34
- };
35
- exports.logPerf = logPerf;
@@ -1,12 +0,0 @@
1
- import type React from 'react';
2
- export declare type TimelineInOutContextValue = {
3
- inFrame: number | null;
4
- outFrame: number | null;
5
- };
6
- export declare type SetTimelineInOutContextValue = {
7
- setInAndOutFrames: (u: React.SetStateAction<TimelineInOutContextValue>) => void;
8
- };
9
- export declare const TimelineInOutContext: React.Context<TimelineInOutContextValue>;
10
- export declare const SetTimelineInOutContext: React.Context<SetTimelineInOutContextValue>;
11
- export declare const useTimelineInOutFramePosition: () => TimelineInOutContextValue;
12
- export declare const useTimelineSetInOutFramePosition: () => SetTimelineInOutContextValue;
@@ -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
@@ -1,2 +0,0 @@
1
- export declare const DEFAULT_PUPPETEER_TIMEOUT = 30000;
2
- export declare const setupPuppeteerTimeout: () => void;
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;
@@ -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,2 +0,0 @@
1
- import type { ImageFormat } from '../config';
2
- export declare const validateNonNullImageFormat: (imageFormat: ImageFormat) => void;
@@ -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,4 +0,0 @@
1
- declare const validRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
2
- export declare type OpenGlRenderer = typeof validRenderers[number];
3
- export declare const validateOpenGlRenderer: (option: OpenGlRenderer | null) => OpenGlRenderer | null;
4
- export {};
@@ -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;