@remotion/renderer 4.0.404 → 4.0.406
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/assets/apply-tone-frequency.d.ts +1 -2
- package/dist/assets/convert-assets-to-file-urls.d.ts +1 -2
- package/dist/assets/download-and-map-assets-to-file.d.ts +2 -3
- package/dist/assets/download-and-map-assets-to-file.js +1 -0
- package/dist/assets/download-file.d.ts +1 -0
- package/dist/assets/download-file.js +17 -1
- package/dist/assets/download-map.d.ts +1 -0
- package/dist/assets/download-map.js +2 -0
- package/dist/assets/get-audio-channels.d.ts +2 -3
- package/dist/assets/inline-audio-mixing.d.ts +1 -2
- package/dist/browser/Browser.d.ts +5 -5
- package/dist/browser/Browser.js +65 -74
- package/dist/browser/BrowserFetcher.d.ts +3 -5
- package/dist/browser/BrowserFetcher.js +1 -0
- package/dist/browser/BrowserPage.d.ts +4 -4
- package/dist/browser/BrowserPage.js +223 -218
- package/dist/browser/BrowserRunner.d.ts +1 -2
- package/dist/browser/Connection.js +99 -112
- package/dist/browser/ConsoleMessage.d.ts +1 -1
- package/dist/browser/ConsoleMessage.js +9 -16
- package/dist/browser/DOMWorld.d.ts +1 -1
- package/dist/browser/DOMWorld.js +75 -89
- package/dist/browser/Errors.js +2 -4
- package/dist/browser/EventEmitter.js +2 -1
- package/dist/browser/ExecutionContext.js +117 -120
- package/dist/browser/FrameManager.js +249 -244
- package/dist/browser/HTTPRequest.js +11 -22
- package/dist/browser/HTTPResponse.js +3 -16
- package/dist/browser/JSHandle.js +17 -30
- package/dist/browser/LifecycleWatcher.js +122 -128
- package/dist/browser/NetworkEventManager.js +31 -40
- package/dist/browser/NetworkManager.js +210 -203
- package/dist/browser/NodeWebSocketTransport.js +3 -0
- package/dist/browser/Target.d.ts +1 -1
- package/dist/browser/Target.js +32 -39
- package/dist/browser/TaskQueue.js +5 -18
- package/dist/browser/TimeoutSettings.js +12 -25
- package/dist/browser/browser-download-progress-bar.d.ts +1 -2
- package/dist/browser/handle-failed-resource.d.ts +1 -2
- package/dist/browser/handle-failed-resource.js +4 -3
- package/dist/call-ffmpeg.d.ts +4 -5
- package/dist/can-concat-seamlessly.d.ts +2 -4
- package/dist/can-use-parallel-encoding.d.ts +1 -2
- package/dist/check-version-requirements.d.ts +1 -2
- package/dist/client.d.ts +181 -181
- package/dist/codec-supports-media.d.ts +3 -4
- package/dist/collect-assets.d.ts +1 -1
- package/dist/combine-audio.d.ts +2 -4
- package/dist/combine-chunks.d.ts +1 -2
- package/dist/combine-video-streams.d.ts +2 -4
- package/dist/compositor/compositor.d.ts +3 -3
- package/dist/compositor/compositor.js +51 -32
- package/dist/compositor/get-executable-path.d.ts +3 -3
- package/dist/compress-audio.d.ts +2 -4
- package/dist/create-audio.d.ts +2 -4
- package/dist/create-silent-audio.d.ts +1 -2
- package/dist/crf.d.ts +4 -6
- package/dist/cycle-browser-tabs.d.ts +1 -2
- package/dist/ensure-browser.d.ts +44 -1
- package/dist/error-handling/handle-javascript-exception.d.ts +1 -1
- package/dist/error-handling/handle-javascript-exception.js +7 -1
- package/dist/error-handling/symbolicateable-error.d.ts +1 -1
- package/dist/error-handling/symbolicateable-error.js +4 -0
- package/dist/error-handling.js +1 -1
- package/dist/esm/client.mjs +7 -2
- package/dist/esm/index.mjs +81 -40
- package/dist/extract-audio.d.ts +2 -3
- package/dist/ffmpeg-args.d.ts +6 -12
- package/dist/get-browser-instance.d.ts +4 -6
- package/dist/get-codec-name.d.ts +3 -6
- package/dist/get-compositions.d.ts +1 -1
- package/dist/get-concurrency.d.ts +1 -1
- package/dist/get-extension-from-codec.d.ts +2 -3
- package/dist/get-frame-padded-index.d.ts +1 -2
- package/dist/get-local-browser-executable.d.ts +2 -4
- package/dist/get-prores-profile-name.d.ts +1 -3
- package/dist/get-silent-parts.d.ts +4 -5
- package/dist/get-video-metadata.d.ts +3 -4
- package/dist/get-video-threads-flag.d.ts +1 -2
- package/dist/goto-page-or-throw.d.ts +1 -1
- package/dist/guess-extension-for-media.d.ts +2 -3
- package/dist/image-format.d.ts +2 -3
- package/dist/index.d.ts +173 -172
- package/dist/index.js +16 -16
- package/dist/is-audio-codec.d.ts +1 -2
- package/dist/log-level.d.ts +1 -1
- package/dist/logger.d.ts +6 -6
- package/dist/make-page.d.ts +2 -4
- package/dist/memory/from-proc-meminfo.d.ts +1 -2
- package/dist/memory/get-available-memory.d.ts +1 -2
- package/dist/mime-types.js +2 -1
- package/dist/mux-video-and-audio.d.ts +2 -3
- package/dist/offthread-video-server.d.ts +1 -2
- package/dist/offthread-video-server.js +6 -18
- package/dist/open-browser.d.ts +1 -1
- package/dist/open-browser.js +6 -5
- package/dist/options/api-key.js +3 -1
- package/dist/options/audio-bitrate.js +9 -1
- package/dist/options/audio-codec.d.ts +10 -13
- package/dist/options/beep-on-finish.js +1 -1
- package/dist/options/binaries-directory.js +9 -1
- package/dist/options/chrome-mode.d.ts +3 -3
- package/dist/options/chrome-mode.js +6 -1
- package/dist/options/color-space.d.ts +5 -9
- package/dist/options/color-space.js +7 -1
- package/dist/options/crf.js +1 -1
- package/dist/options/cross-site-isolation.js +2 -1
- package/dist/options/dark-mode.js +2 -1
- package/dist/options/delete-after.js +11 -1
- package/dist/options/disallow-parallel-encoding.js +1 -1
- package/dist/options/enable-lambda-insights.js +2 -1
- package/dist/options/enable-multiprocess-on-linux.js +13 -1
- package/dist/options/encoding-buffer-size.js +3 -1
- package/dist/options/encoding-max-rate.js +3 -1
- package/dist/options/enforce-audio.js +1 -1
- package/dist/options/folder-expiry.js +4 -1
- package/dist/options/for-seamless-aac-concatenation.js +3 -1
- package/dist/options/gl.d.ts +6 -6
- package/dist/options/gl.js +28 -2
- package/dist/options/hardware-acceleration.d.ts +2 -2
- package/dist/options/headless.js +4 -1
- package/dist/options/image-sequence-pattern.js +5 -1
- package/dist/options/index.d.ts +25 -25
- package/dist/options/jpeg-quality.js +1 -1
- package/dist/options/latency-hint.js +10 -1
- package/dist/options/license-key.js +2 -1
- package/dist/options/log-level.d.ts +3 -4
- package/dist/options/log-level.js +16 -1
- package/dist/options/metadata.js +7 -2
- package/dist/options/mute.js +1 -1
- package/dist/options/number-of-gif-loops.js +13 -1
- package/dist/options/offthreadvideo-cache-size.js +11 -1
- package/dist/options/offthreadvideo-threads.js +2 -1
- package/dist/options/on-browser-download.js +2 -1
- package/dist/options/options-map.d.ts +93 -93
- package/dist/options/overwrite.js +5 -1
- package/dist/options/prefer-lossless.js +4 -1
- package/dist/options/public-dir.js +2 -1
- package/dist/options/public-license-key.js +3 -1
- package/dist/options/public-path.js +7 -1
- package/dist/options/repro.js +1 -1
- package/dist/options/scale.js +5 -1
- package/dist/options/timeout.js +4 -1
- package/dist/options/video-bitrate.js +7 -1
- package/dist/options/video-cache-size.js +8 -1
- package/dist/options/video-codec.d.ts +6 -6
- package/dist/options/video-codec.js +1 -1
- package/dist/options/webhook-custom-data.js +1 -1
- package/dist/options/x264-preset.d.ts +5 -6
- package/dist/options/x264-preset.js +23 -1
- package/dist/p-limit.d.ts +1 -1
- package/dist/pixel-format.d.ts +2 -3
- package/dist/pool.js +2 -0
- package/dist/port-config.d.ts +5 -6
- package/dist/prespawn-ffmpeg.js +5 -4
- package/dist/prestitcher-memory-usage.d.ts +1 -2
- package/dist/print-useful-error-message.d.ts +1 -2
- package/dist/prores-profile.d.ts +2 -4
- package/dist/puppeteer-evaluate.d.ts +2 -2
- package/dist/puppeteer-screenshot.d.ts +3 -4
- package/dist/pure.d.ts +5 -5
- package/dist/render-frame-and-retry-target-close.d.ts +8 -8
- package/dist/render-frame-with-option-to-reject.d.ts +4 -6
- package/dist/render-frame.d.ts +8 -8
- package/dist/render-has-audio.d.ts +2 -3
- package/dist/render-media.js +2 -1
- package/dist/replace-browser.d.ts +1 -2
- package/dist/repro.d.ts +1 -1
- package/dist/screenshot-task.d.ts +3 -4
- package/dist/seek-to-frame.d.ts +2 -3
- package/dist/serve-handler/index.d.ts +1 -1
- package/dist/serve-handler/range-parser.d.ts +2 -2
- package/dist/serve-static.d.ts +1 -2
- package/dist/set-props-and-env.js +3 -1
- package/dist/stringify-ffmpeg-filter.d.ts +1 -2
- package/dist/take-frame.d.ts +1 -2
- package/dist/test-gpu.d.ts +2 -4
- package/dist/validate-even-dimensions-with-codec.d.ts +2 -4
- package/dist/validate-ffmpeg-override.d.ts +1 -1
- package/dist/validate-number-of-gif-loops.d.ts +1 -2
- package/dist/validate-output-filename.d.ts +2 -4
- package/package.json +16 -14
package/dist/index.js
CHANGED
|
@@ -87,37 +87,37 @@ const test_gpu_1 = require("./test-gpu");
|
|
|
87
87
|
const tmp_dir_1 = require("./tmp-dir");
|
|
88
88
|
const validate_concurrency_1 = require("./validate-concurrency");
|
|
89
89
|
const validate_even_dimensions_with_codec_1 = require("./validate-even-dimensions-with-codec");
|
|
90
|
-
|
|
90
|
+
const combine_chunks_1 = require("./combine-chunks");
|
|
91
91
|
Object.defineProperty(exports, "combineChunks", { enumerable: true, get: function () { return combine_chunks_1.combineChunks; } });
|
|
92
|
-
|
|
92
|
+
const ensure_browser_1 = require("./ensure-browser");
|
|
93
93
|
Object.defineProperty(exports, "ensureBrowser", { enumerable: true, get: function () { return ensure_browser_1.ensureBrowser; } });
|
|
94
|
-
|
|
94
|
+
const handle_javascript_exception_1 = require("./error-handling/handle-javascript-exception");
|
|
95
95
|
Object.defineProperty(exports, "ErrorWithStackFrame", { enumerable: true, get: function () { return handle_javascript_exception_1.ErrorWithStackFrame; } });
|
|
96
|
-
|
|
96
|
+
const extract_audio_1 = require("./extract-audio");
|
|
97
97
|
Object.defineProperty(exports, "extractAudio", { enumerable: true, get: function () { return extract_audio_1.extractAudio; } });
|
|
98
|
-
|
|
98
|
+
const get_compositions_2 = require("./get-compositions");
|
|
99
99
|
Object.defineProperty(exports, "getCompositions", { enumerable: true, get: function () { return get_compositions_2.getCompositions; } });
|
|
100
|
-
|
|
100
|
+
const get_silent_parts_1 = require("./get-silent-parts");
|
|
101
101
|
Object.defineProperty(exports, "getSilentParts", { enumerable: true, get: function () { return get_silent_parts_1.getSilentParts; } });
|
|
102
|
-
|
|
102
|
+
const get_video_metadata_1 = require("./get-video-metadata");
|
|
103
103
|
Object.defineProperty(exports, "getVideoMetadata", { enumerable: true, get: function () { return get_video_metadata_1.getVideoMetadata; } });
|
|
104
|
-
|
|
104
|
+
const image_format_2 = require("./image-format");
|
|
105
105
|
Object.defineProperty(exports, "validateSelectedPixelFormatAndImageFormatCombination", { enumerable: true, get: function () { return image_format_2.validateSelectedPixelFormatAndImageFormatCombination; } });
|
|
106
|
-
|
|
106
|
+
const make_cancel_signal_1 = require("./make-cancel-signal");
|
|
107
107
|
Object.defineProperty(exports, "makeCancelSignal", { enumerable: true, get: function () { return make_cancel_signal_1.makeCancelSignal; } });
|
|
108
|
-
|
|
108
|
+
const open_browser_2 = require("./open-browser");
|
|
109
109
|
Object.defineProperty(exports, "openBrowser", { enumerable: true, get: function () { return open_browser_2.openBrowser; } });
|
|
110
|
-
|
|
110
|
+
const render_frames_2 = require("./render-frames");
|
|
111
111
|
Object.defineProperty(exports, "renderFrames", { enumerable: true, get: function () { return render_frames_2.renderFrames; } });
|
|
112
|
-
|
|
112
|
+
const render_media_2 = require("./render-media");
|
|
113
113
|
Object.defineProperty(exports, "renderMedia", { enumerable: true, get: function () { return render_media_2.renderMedia; } });
|
|
114
|
-
|
|
114
|
+
const render_still_2 = require("./render-still");
|
|
115
115
|
Object.defineProperty(exports, "renderStill", { enumerable: true, get: function () { return render_still_2.renderStill; } });
|
|
116
|
-
|
|
116
|
+
const select_composition_2 = require("./select-composition");
|
|
117
117
|
Object.defineProperty(exports, "selectComposition", { enumerable: true, get: function () { return select_composition_2.selectComposition; } });
|
|
118
|
-
|
|
118
|
+
const stitch_frames_to_video_1 = require("./stitch-frames-to-video");
|
|
119
119
|
Object.defineProperty(exports, "stitchFramesToVideo", { enumerable: true, get: function () { return stitch_frames_to_video_1.stitchFramesToVideo; } });
|
|
120
|
-
|
|
120
|
+
const validate_output_filename_1 = require("./validate-output-filename");
|
|
121
121
|
Object.defineProperty(exports, "validateOutputFilename", { enumerable: true, get: function () { return validate_output_filename_1.validateOutputFilename; } });
|
|
122
122
|
const download_map_1 = require("./assets/download-map");
|
|
123
123
|
const can_concat_seamlessly_1 = require("./can-concat-seamlessly");
|
package/dist/is-audio-codec.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const isAudioCodec: (codec: Codec | undefined | null) => codec is "mp3" | "aac" | "wav";
|
|
1
|
+
export declare const isAudioCodec: (codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav" | null | undefined) => codec is "aac" | "mp3" | "wav";
|
package/dist/log-level.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const logLevels: readonly ["trace", "verbose", "info", "warn", "error"];
|
|
2
2
|
export type LogLevel = (typeof logLevels)[number];
|
|
3
3
|
export declare const isValidLogLevel: (level: string) => boolean;
|
|
4
|
-
export declare const isEqualOrBelowLogLevel: (currentLevel:
|
|
4
|
+
export declare const isEqualOrBelowLogLevel: (currentLevel: "error" | "info" | "trace" | "verbose" | "warn", level: "error" | "info" | "trace" | "verbose" | "warn") => boolean;
|
package/dist/logger.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ type VerboseLogOptions = LogOptions & {
|
|
|
10
10
|
export declare const verboseTag: (str: string) => string;
|
|
11
11
|
export declare const secondverboseTag: (str: string) => string;
|
|
12
12
|
export declare const Log: {
|
|
13
|
-
formatLogs: (logLevel:
|
|
14
|
-
trace: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) =>
|
|
15
|
-
verbose: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) =>
|
|
16
|
-
info: (options: LogOptions, message?: any, ...optionalParams: any[]) =>
|
|
17
|
-
warn: (options: LogOptions, message?: any, ...optionalParams: any[]) =>
|
|
18
|
-
error: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) =>
|
|
13
|
+
formatLogs: (logLevel: "error" | "info" | "trace" | "verbose" | "warn", options: VerboseLogOptions, args: [message?: any, ...optionalParams: any[]]) => string[];
|
|
14
|
+
trace: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
15
|
+
verbose: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
16
|
+
info: (options: LogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
17
|
+
warn: (options: LogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
18
|
+
error: (options: VerboseLogOptions, message?: any, ...optionalParams: any[]) => void | boolean;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
package/dist/make-page.d.ts
CHANGED
|
@@ -2,14 +2,12 @@ import type { VideoConfig } from 'remotion/no-react';
|
|
|
2
2
|
import type { BrowserLog } from './browser-log';
|
|
3
3
|
import type { OnLog, Page } from './browser/BrowserPage';
|
|
4
4
|
import type { SourceMapGetter } from './browser/source-map-getter';
|
|
5
|
-
import type { VideoImageFormat } from './image-format';
|
|
6
|
-
import type { LogLevel } from './log-level';
|
|
7
5
|
import type { BrowserReplacer } from './replace-browser';
|
|
8
6
|
export declare const makePage: ({ context, initialFrame, browserReplacer, logLevel, indent, pagesArray, onBrowserLog, scale, timeoutInMilliseconds, composition, proxyPort, serveUrl, muted, envVariables, serializedInputPropsWithCustomSchema, imageFormat, serializedResolvedPropsWithCustomSchema, pageIndex, isMainTab, mediaCacheSizeInBytes, onLog, darkMode, }: {
|
|
9
7
|
context: SourceMapGetter;
|
|
10
8
|
initialFrame: number;
|
|
11
9
|
browserReplacer: BrowserReplacer;
|
|
12
|
-
logLevel:
|
|
10
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
13
11
|
indent: boolean;
|
|
14
12
|
pagesArray: Page[];
|
|
15
13
|
onBrowserLog: ((log: BrowserLog) => void) | null;
|
|
@@ -22,7 +20,7 @@ export declare const makePage: ({ context, initialFrame, browserReplacer, logLev
|
|
|
22
20
|
envVariables: Record<string, string>;
|
|
23
21
|
serializedInputPropsWithCustomSchema: string;
|
|
24
22
|
serializedResolvedPropsWithCustomSchema: string;
|
|
25
|
-
imageFormat:
|
|
23
|
+
imageFormat: "jpeg" | "none" | "png";
|
|
26
24
|
pageIndex: number;
|
|
27
25
|
isMainTab: boolean;
|
|
28
26
|
mediaCacheSizeInBytes: number | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getFreeMemoryFromProcMeminfo: (logLevel: LogLevel) => number | null;
|
|
1
|
+
export declare const getFreeMemoryFromProcMeminfo: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => number | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getAvailableMemory: (logLevel: LogLevel) => number;
|
|
1
|
+
export declare const getAvailableMemory: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => number;
|
package/dist/mime-types.js
CHANGED
|
@@ -10,7 +10,8 @@ const types = {};
|
|
|
10
10
|
// Populate the extensions/types maps
|
|
11
11
|
populateMaps(extensions, {});
|
|
12
12
|
const getExt = (contentType) => {
|
|
13
|
-
var _a, _b
|
|
13
|
+
var _a, _b;
|
|
14
|
+
var _c;
|
|
14
15
|
return (_c = (_b = (_a = mime_db_1.mimeDb[contentType.toLowerCase()]) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : null;
|
|
15
16
|
};
|
|
16
17
|
exports.getExt = getExt;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type { LogLevel } from './log-level';
|
|
2
1
|
import type { CancelSignal } from './make-cancel-signal';
|
|
3
2
|
export declare const muxVideoAndAudio: ({ videoOutput, audioOutput, output, indent, logLevel, onProgress, binariesDirectory, fps, cancelSignal, addFaststart, metadata, }: {
|
|
4
3
|
videoOutput: string | null;
|
|
5
4
|
audioOutput: string | null;
|
|
6
5
|
output: string;
|
|
7
6
|
indent: boolean;
|
|
8
|
-
logLevel:
|
|
7
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
9
8
|
binariesDirectory: string | null;
|
|
10
9
|
fps: number;
|
|
11
10
|
onProgress: (p: number) => void;
|
|
12
11
|
cancelSignal: CancelSignal | undefined;
|
|
13
12
|
addFaststart: boolean;
|
|
14
|
-
metadata?: Record<string, string> | null;
|
|
13
|
+
metadata?: Record<string, string> | null | undefined;
|
|
15
14
|
}) => Promise<void>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { RequestListener } from 'node:http';
|
|
2
2
|
import type { DownloadMap } from './assets/download-map';
|
|
3
3
|
import type { Compositor } from './compositor/compositor';
|
|
4
|
-
import type { LogLevel } from './log-level';
|
|
5
4
|
export declare const extractUrlAndSourceFromUrl: (url: string) => {
|
|
6
5
|
src: string;
|
|
7
6
|
time: number;
|
|
@@ -12,7 +11,7 @@ export declare const startOffthreadVideoServer: ({ downloadMap, logLevel, indent
|
|
|
12
11
|
downloadMap: DownloadMap;
|
|
13
12
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
14
13
|
offthreadVideoThreads: number;
|
|
15
|
-
logLevel:
|
|
14
|
+
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
16
15
|
indent: boolean;
|
|
17
16
|
binariesDirectory: string | null;
|
|
18
17
|
}) => {
|
|
@@ -50,18 +50,8 @@ const startOffthreadVideoServer = ({ downloadMap, logLevel, indent, offthreadVid
|
|
|
50
50
|
binariesDirectory,
|
|
51
51
|
});
|
|
52
52
|
return {
|
|
53
|
-
close:
|
|
54
|
-
|
|
55
|
-
// .close().then()
|
|
56
|
-
// but if finishCommands() fails, it acts like a sync function,
|
|
57
|
-
// therefore we have to catch an error and put a promise rejection
|
|
58
|
-
try {
|
|
59
|
-
await compositor.finishCommands();
|
|
60
|
-
return compositor.waitForDone();
|
|
61
|
-
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
return Promise.reject(err);
|
|
64
|
-
}
|
|
53
|
+
close: () => {
|
|
54
|
+
return compositor.shutDownOrKill();
|
|
65
55
|
},
|
|
66
56
|
listener: (req, response) => {
|
|
67
57
|
if (!req.url) {
|
|
@@ -183,12 +173,10 @@ const startOffthreadVideoServer = ({ downloadMap, logLevel, indent, offthreadVid
|
|
|
183
173
|
};
|
|
184
174
|
exports.startOffthreadVideoServer = startOffthreadVideoServer;
|
|
185
175
|
class OffthreadVideoServerEmitter {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
};
|
|
191
|
-
}
|
|
176
|
+
listeners = {
|
|
177
|
+
progress: [],
|
|
178
|
+
download: [],
|
|
179
|
+
};
|
|
192
180
|
addEventListener(name, callback) {
|
|
193
181
|
this.listeners[name].push(callback);
|
|
194
182
|
return () => {
|
package/dist/open-browser.d.ts
CHANGED
|
@@ -44,5 +44,5 @@ export type OpenBrowserOptions = {
|
|
|
44
44
|
forceDeviceScaleFactor?: number;
|
|
45
45
|
} & LogOptions;
|
|
46
46
|
export declare const internalOpenBrowser: ({ browser, browserExecutable, chromiumOptions, forceDeviceScaleFactor, indent, viewport, logLevel, onBrowserDownload, chromeMode, }: InternalOpenBrowserOptions) => Promise<HeadlessBrowser>;
|
|
47
|
-
export declare const openBrowser: (browser:
|
|
47
|
+
export declare const openBrowser: (browser: "chrome", options?: OpenBrowserOptions | undefined) => Promise<HeadlessBrowser>;
|
|
48
48
|
export {};
|
package/dist/open-browser.js
CHANGED
|
@@ -50,7 +50,8 @@ const getOpenGlRenderer = (option) => {
|
|
|
50
50
|
return [`--use-gl=${renderer}`];
|
|
51
51
|
};
|
|
52
52
|
const internalOpenBrowser = async ({ browser, browserExecutable, chromiumOptions, forceDeviceScaleFactor, indent, viewport, logLevel, onBrowserDownload, chromeMode, }) => {
|
|
53
|
-
var _a
|
|
53
|
+
var _a;
|
|
54
|
+
var _b, _c, _d;
|
|
54
55
|
// @ts-expect-error Firefox
|
|
55
56
|
if (browser === 'firefox') {
|
|
56
57
|
throw new TypeError('Firefox supported is not yet turned on. Stay tuned for the future.');
|
|
@@ -70,8 +71,8 @@ const internalOpenBrowser = async ({ browser, browserExecutable, chromiumOptions
|
|
|
70
71
|
indent,
|
|
71
72
|
chromeMode,
|
|
72
73
|
});
|
|
73
|
-
const customGlRenderer = getOpenGlRenderer((
|
|
74
|
-
const enableMultiProcessOnLinux = (
|
|
74
|
+
const customGlRenderer = getOpenGlRenderer((_b = chromiumOptions.gl) !== null && _b !== void 0 ? _b : null);
|
|
75
|
+
const enableMultiProcessOnLinux = (_c = chromiumOptions.enableMultiProcessOnLinux) !== null && _c !== void 0 ? _c : true;
|
|
75
76
|
logger_1.Log.verbose({ indent, logLevel, tag: 'openBrowser()' }, `Opening browser: gl = ${chromiumOptions.gl}, executable = ${executablePath}, enableMultiProcessOnLinux = ${enableMultiProcessOnLinux}`);
|
|
76
77
|
if (chromiumOptions.userAgent) {
|
|
77
78
|
logger_1.Log.verbose({ indent, logLevel, tag: 'openBrowser()' }, `Using custom user agent: ${chromiumOptions.userAgent}`);
|
|
@@ -118,7 +119,7 @@ const internalOpenBrowser = async ({ browser, browserExecutable, chromiumOptions
|
|
|
118
119
|
'--enable-blink-features=IdleDetection',
|
|
119
120
|
'--export-tagged-pdf',
|
|
120
121
|
'--intensive-wake-up-throttling-policy=0',
|
|
121
|
-
((
|
|
122
|
+
((_d = chromiumOptions.headless) !== null && _d !== void 0 ? _d : true)
|
|
122
123
|
? chromeMode === 'chrome-for-testing'
|
|
123
124
|
? '--headless=new'
|
|
124
125
|
: '--headless=old'
|
|
@@ -168,7 +169,7 @@ const internalOpenBrowser = async ({ browser, browserExecutable, chromiumOptions
|
|
|
168
169
|
},
|
|
169
170
|
});
|
|
170
171
|
const pages = await browserInstance.pages();
|
|
171
|
-
await ((
|
|
172
|
+
await ((_a = pages[0]) === null || _a === void 0 ? void 0 : _a.close());
|
|
172
173
|
return browserInstance;
|
|
173
174
|
};
|
|
174
175
|
exports.internalOpenBrowser = internalOpenBrowser;
|
package/dist/options/api-key.js
CHANGED
|
@@ -7,7 +7,9 @@ const cliFlag = 'api-key';
|
|
|
7
7
|
exports.apiKeyOption = {
|
|
8
8
|
name: 'API key',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["API key for sending a usage event using ",
|
|
11
|
+
jsx_runtime_1.jsx("code", { children: "@remotion/licensing" }),
|
|
12
|
+
"."] })),
|
|
11
13
|
ssrName: 'apiKey',
|
|
12
14
|
docLink: 'https://www.remotion.dev/docs/licensing',
|
|
13
15
|
type: null,
|
|
@@ -7,7 +7,15 @@ let audioBitrate = null;
|
|
|
7
7
|
exports.audioBitrateOption = {
|
|
8
8
|
name: 'Audio Bitrate',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the target bitrate for the generated video. The syntax for FFmpeg", "'", "s ",
|
|
11
|
+
jsx_runtime_1.jsx("code", { children: "-b:a" }),
|
|
12
|
+
" parameter should be used. FFmpeg may encode the video in a way that will not result in the exact audio bitrate specified. Example values: ",
|
|
13
|
+
jsx_runtime_1.jsx("code", { children: "512K" }),
|
|
14
|
+
" for 512 kbps, ",
|
|
15
|
+
jsx_runtime_1.jsx("code", { children: "1M" }),
|
|
16
|
+
" for 1 Mbps. Default: ",
|
|
17
|
+
jsx_runtime_1.jsx("code", { children: "320k" })
|
|
18
|
+
] })),
|
|
11
19
|
ssrName: 'audioBitrate',
|
|
12
20
|
docLink: 'https://www.remotion.dev/docs/renderer/render-media#audiobitrate-',
|
|
13
21
|
type: '0',
|
|
@@ -15,33 +15,31 @@ export declare const supportedAudioCodecs: {
|
|
|
15
15
|
readonly vp9: readonly ["opus", "pcm-16"];
|
|
16
16
|
readonly wav: readonly ["pcm-16"];
|
|
17
17
|
};
|
|
18
|
-
declare const
|
|
19
|
-
type FfmpegAudioCodecName = (typeof audioCodecNames)[number];
|
|
20
|
-
export declare const mapAudioCodecToFfmpegAudioCodecName: (audioCodec: AudioCodec) => FfmpegAudioCodecName;
|
|
18
|
+
export declare const mapAudioCodecToFfmpegAudioCodecName: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16") => "libfdk_aac" | "libmp3lame" | "libopus" | "pcm_s16le";
|
|
21
19
|
export declare const defaultAudioCodecs: {
|
|
22
20
|
[key in Codec]: {
|
|
23
21
|
[_ in 'compressed' | 'lossless']: (typeof supportedAudioCodecs)[key][number] | null;
|
|
24
22
|
};
|
|
25
23
|
};
|
|
26
|
-
export declare const getExtensionFromAudioCodec: (audioCodec:
|
|
24
|
+
export declare const getExtensionFromAudioCodec: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16") => "aac" | "mp3" | "opus" | "wav";
|
|
27
25
|
export declare const resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
28
|
-
setting:
|
|
29
|
-
codec:
|
|
26
|
+
setting: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
27
|
+
codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
30
28
|
preferLossless: boolean;
|
|
31
29
|
separateAudioTo: string | null;
|
|
32
|
-
}) => "
|
|
30
|
+
}) => "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
33
31
|
export declare const getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
34
|
-
codec:
|
|
32
|
+
codec: "aac" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
35
33
|
preferLossless: boolean;
|
|
36
|
-
}) =>
|
|
34
|
+
}) => "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
37
35
|
export declare const audioCodecOption: {
|
|
38
36
|
cliFlag: "audio-codec";
|
|
39
|
-
setConfig: (audioCodec: "
|
|
37
|
+
setConfig: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => void;
|
|
40
38
|
getValue: ({ commandLine }: {
|
|
41
39
|
commandLine: Record<string, unknown>;
|
|
42
40
|
}) => {
|
|
43
41
|
source: string;
|
|
44
|
-
value:
|
|
42
|
+
value: "aac" | "mp3" | "opus" | "pcm-16";
|
|
45
43
|
} | {
|
|
46
44
|
source: string;
|
|
47
45
|
value: null;
|
|
@@ -50,6 +48,5 @@ export declare const audioCodecOption: {
|
|
|
50
48
|
docLink: string;
|
|
51
49
|
name: string;
|
|
52
50
|
ssrName: "audioCodec";
|
|
53
|
-
type:
|
|
51
|
+
type: "aac" | "mp3" | "opus" | "pcm-16";
|
|
54
52
|
};
|
|
55
|
-
export {};
|
|
@@ -7,7 +7,7 @@ const cliFlag = 'beep-on-finish';
|
|
|
7
7
|
exports.beepOnFinishOption = {
|
|
8
8
|
name: 'Beep on finish',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Whether the Remotion Studio tab should beep when the render is finished." })),
|
|
11
11
|
ssrName: null,
|
|
12
12
|
docLink: 'https://www.remotion.dev/docs/config#setbeeponfinish',
|
|
13
13
|
type: false,
|
|
@@ -7,7 +7,15 @@ let currentDirectory = null;
|
|
|
7
7
|
exports.binariesDirectoryOption = {
|
|
8
8
|
name: 'Binaries Directory',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The directory where the platform-specific binaries and libraries that Remotion needs are located. Those include an ",
|
|
11
|
+
jsx_runtime_1.jsx("code", { children: "ffmpeg" }),
|
|
12
|
+
" and", ' ', jsx_runtime_1.jsx("code", { children: "ffprobe" }),
|
|
13
|
+
" binary, a Rust binary for various tasks, and various shared libraries. If the value is set to ",
|
|
14
|
+
jsx_runtime_1.jsx("code", { children: "null" }),
|
|
15
|
+
", which is the default, then the path of a platform-specific package located at", ' ', jsx_runtime_1.jsx("code", { children: "node_modules/@remotion/compositor-*" }),
|
|
16
|
+
" is selected.",
|
|
17
|
+
jsx_runtime_1.jsx("br", {}),
|
|
18
|
+
"This option is useful in environments where Remotion is not officially supported to run like bundled serverless functions or Electron."] })),
|
|
11
19
|
ssrName: 'binariesDirectory',
|
|
12
20
|
docLink: 'https://www.remotion.dev/docs/renderer',
|
|
13
21
|
type: '',
|
|
@@ -9,9 +9,9 @@ export declare const chromeModeOption: {
|
|
|
9
9
|
getValue: ({ commandLine }: {
|
|
10
10
|
commandLine: Record<string, unknown>;
|
|
11
11
|
}) => {
|
|
12
|
-
value:
|
|
12
|
+
value: "chrome-for-testing" | "headless-shell";
|
|
13
13
|
source: string;
|
|
14
14
|
};
|
|
15
|
-
setConfig: (newChromeMode:
|
|
16
|
-
type:
|
|
15
|
+
setConfig: (newChromeMode: "chrome-for-testing" | "headless-shell") => void;
|
|
16
|
+
type: "chrome-for-testing" | "headless-shell";
|
|
17
17
|
};
|
|
@@ -13,7 +13,12 @@ exports.chromeModeOption = {
|
|
|
13
13
|
name: 'Chrome Mode',
|
|
14
14
|
ssrName: 'chromeMode',
|
|
15
15
|
description: () => {
|
|
16
|
-
return (
|
|
16
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["One of", ' ', exports.validChromeModeOptions.map((option, i) => (jsx_runtime_1.jsxs("code", { children: [option, i === exports.validChromeModeOptions.length - 1 ? '' : ', '] }, option))), ". Default ",
|
|
17
|
+
jsx_runtime_1.jsx("code", { children: "headless-shell" }),
|
|
18
|
+
".", ' ', jsx_runtime_1.jsxs("a", { href: "https://remotion.dev/docs/miscellaneous/chrome-headless-shell", children: ["Use ",
|
|
19
|
+
jsx_runtime_1.jsx("code", { children: "chrome-for-testing" }),
|
|
20
|
+
" to take advantage of GPU drivers on Linux."] })
|
|
21
|
+
] }));
|
|
17
22
|
},
|
|
18
23
|
docLink: 'https://www.remotion.dev/chrome-for-testing',
|
|
19
24
|
getValue: ({ commandLine }) => {
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
declare const validV4ColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
|
|
3
|
-
declare const validV5ColorSpaces: readonly ["bt601", "bt709", "bt2020-ncl"];
|
|
4
|
-
export declare const validColorSpaces: true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? typeof validV5ColorSpaces : typeof validV4ColorSpaces;
|
|
1
|
+
export declare const validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
|
|
5
2
|
export type ColorSpace = (typeof validColorSpaces)[number];
|
|
6
|
-
export declare const DEFAULT_COLOR_SPACE:
|
|
3
|
+
export declare const DEFAULT_COLOR_SPACE: "default";
|
|
7
4
|
export declare const colorSpaceOption: {
|
|
8
5
|
name: string;
|
|
9
6
|
cliFlag: "color-space";
|
|
10
7
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
11
8
|
docLink: string;
|
|
12
9
|
ssrName: string;
|
|
13
|
-
type:
|
|
10
|
+
type: "bt2020-ncl" | "bt709" | "default" | null;
|
|
14
11
|
getValue: ({ commandLine }: {
|
|
15
12
|
commandLine: Record<string, unknown>;
|
|
16
13
|
}) => {
|
|
17
14
|
source: string;
|
|
18
|
-
value:
|
|
15
|
+
value: "bt2020-ncl" | "bt709" | "default";
|
|
19
16
|
};
|
|
20
|
-
setConfig: (value: "
|
|
17
|
+
setConfig: (value: "bt2020-ncl" | "bt709" | "default" | null) => void;
|
|
21
18
|
};
|
|
22
19
|
export declare const validateColorSpace: (option: unknown) => void;
|
|
23
|
-
export {};
|
|
@@ -14,7 +14,13 @@ const cliFlag = 'color-space';
|
|
|
14
14
|
exports.colorSpaceOption = {
|
|
15
15
|
name: 'Color space',
|
|
16
16
|
cliFlag: 'color-space',
|
|
17
|
-
description: () => (
|
|
17
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Color space to use for the video. Acceptable values:", ' ', jsx_runtime_1.jsxs("code", { children: ['"', exports.DEFAULT_COLOR_SPACE, '"'] }),
|
|
18
|
+
"(default since 5.0),", ' ', no_react_1.NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? (jsx_runtime_1.jsxs("code", { children: ['"', "bt601", '"', ', '] })) : (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
|
|
19
|
+
jsx_runtime_1.jsxs("code", { children: ['"', "bt709", '"'] }), ' ', "(since v4.0.28),", ' '] })), jsx_runtime_1.jsxs("code", { children: ['"', "bt2020-ncl", '"'] }), ' ', "(since v4.0.88),", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "bt2020-cl", '"'] }), ' ', "(since v4.0.88), .",
|
|
20
|
+
jsx_runtime_1.jsx("br", {}),
|
|
21
|
+
"For best color accuracy, it is recommended to also use", ' ', jsx_runtime_1.jsxs("code", { children: ['"', "png", '"'] }), ' ', "as the image format to have accurate color transformations throughout.",
|
|
22
|
+
jsx_runtime_1.jsx("br", {}),
|
|
23
|
+
"Only since v4.0.83, colorspace conversion is actually performed, previously it would only tag the metadata of the video."] })),
|
|
18
24
|
docLink: 'https://www.remotion.dev/docs/renderer/render-media#colorspace',
|
|
19
25
|
ssrName: 'colorSpace',
|
|
20
26
|
type: exports.DEFAULT_COLOR_SPACE,
|
package/dist/options/crf.js
CHANGED
|
@@ -13,7 +13,7 @@ const cliFlag = 'crf';
|
|
|
13
13
|
exports.crfOption = {
|
|
14
14
|
name: 'CRF',
|
|
15
15
|
cliFlag,
|
|
16
|
-
description: () => (
|
|
16
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "No matter which codec you end up using, there's always a tradeoff between file size and video quality. You can control it by setting the CRF (Constant Rate Factor). The lower the number, the better the quality, the higher the number, the smaller the file is \u2013 of course at the cost of quality." })),
|
|
17
17
|
ssrName: 'crf',
|
|
18
18
|
docLink: 'https://www.remotion.dev/docs/encoding/#controlling-quality-using-the-crf-setting',
|
|
19
19
|
type: 0,
|
|
@@ -7,7 +7,8 @@ const cliFlag = 'cross-site-isolation';
|
|
|
7
7
|
exports.enableCrossSiteIsolationOption = {
|
|
8
8
|
name: 'Enable Cross-Site Isolation',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable Cross-Site Isolation in the Studio (sets Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP headers, required for", ' ', jsx_runtime_1.jsx("code", { children: "@remotion/whisper-web" }),
|
|
11
|
+
")."] })),
|
|
11
12
|
ssrName: null,
|
|
12
13
|
docLink: 'https://www.remotion.dev/docs/config#setenablecrosssiteisolation',
|
|
13
14
|
type: false,
|
|
@@ -8,7 +8,8 @@ const cliFlag = 'dark-mode';
|
|
|
8
8
|
exports.darkModeOption = {
|
|
9
9
|
name: 'Dark Mode',
|
|
10
10
|
cliFlag,
|
|
11
|
-
description: () => (
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Whether Chromium should pretend to be in dark mode by emulating the media feature 'prefers-color-scheme: dark'. Default is", ' ', jsx_runtime_1.jsx("code", { children: String(DEFAULT_VALUE) }),
|
|
12
|
+
"."] })),
|
|
12
13
|
ssrName: 'darkMode',
|
|
13
14
|
docLink: 'https://www.remotion.dev/docs/chromium-flags#--dark-mode',
|
|
14
15
|
type: false,
|
|
@@ -8,7 +8,17 @@ exports.deleteAfterOption = {
|
|
|
8
8
|
name: 'Lambda render expiration',
|
|
9
9
|
cliFlag,
|
|
10
10
|
description: () => {
|
|
11
|
-
return (
|
|
11
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Automatically delete the render after a certain period. Accepted values are ",
|
|
12
|
+
jsx_runtime_1.jsx("code", { children: "1-day" }),
|
|
13
|
+
", ",
|
|
14
|
+
jsx_runtime_1.jsx("code", { children: "3-days" }),
|
|
15
|
+
", ",
|
|
16
|
+
jsx_runtime_1.jsx("code", { children: "7-days" }),
|
|
17
|
+
" and", ' ', jsx_runtime_1.jsx("code", { children: "30-days" }),
|
|
18
|
+
".",
|
|
19
|
+
jsx_runtime_1.jsx("br", {}),
|
|
20
|
+
" For this to work, your bucket needs to have", ' ', jsx_runtime_1.jsx("a", { href: "/docs/lambda/autodelete", children: "lifecycles enabled" }),
|
|
21
|
+
"."] }));
|
|
12
22
|
},
|
|
13
23
|
ssrName: 'deleteAfter',
|
|
14
24
|
docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
|
|
@@ -7,7 +7,7 @@ const cliFlag = 'disallow-parallel-encoding';
|
|
|
7
7
|
exports.disallowParallelEncodingOption = {
|
|
8
8
|
name: 'Disallow parallel encoding',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Disallows the renderer from doing rendering frames and encoding at the same time. This makes the rendering process more memory-efficient, but possibly slower." })),
|
|
11
11
|
ssrName: 'disallowParallelEncoding',
|
|
12
12
|
docLink: 'https://www.remotion.dev/docs/config#setdisallowparallelencoding',
|
|
13
13
|
type: false,
|
|
@@ -7,7 +7,8 @@ let option = false;
|
|
|
7
7
|
exports.enableLambdaInsights = {
|
|
8
8
|
name: 'Enable Lambda Insights',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Enable", ' ', jsx_runtime_1.jsx("a", { href: "https://remotion.dev/docs/lambda/insights", children: "Lambda Insights in AWS CloudWatch" }),
|
|
11
|
+
". For this to work, you may have to update your role permission."] })),
|
|
11
12
|
ssrName: 'enableLambdaInsights',
|
|
12
13
|
docLink: 'https://www.remotion.dev/docs/lambda/insights',
|
|
13
14
|
type: false,
|
|
@@ -8,7 +8,19 @@ const cliFlag = 'enable-multiprocess-on-linux';
|
|
|
8
8
|
exports.enableMultiprocessOnLinuxOption = {
|
|
9
9
|
name: 'Enable Multiprocess on Linux',
|
|
10
10
|
cliFlag,
|
|
11
|
-
description: () => (
|
|
11
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Removes the ",
|
|
12
|
+
jsx_runtime_1.jsx("code", { children: '--single-process' }),
|
|
13
|
+
" flag that gets passed to Chromium on Linux by default. This will make the render faster because multiple processes can be used, but may cause issues with some Linux distributions or if window server libraries are missing.",
|
|
14
|
+
jsx_runtime_1.jsx("br", {}),
|
|
15
|
+
"Default: ",
|
|
16
|
+
jsx_runtime_1.jsx("code", { children: "false" }),
|
|
17
|
+
" until v4.0.136, then ",
|
|
18
|
+
jsx_runtime_1.jsx("code", { children: "true" }),
|
|
19
|
+
" from v4.0.137 on because newer Chrome versions ", "don't", " allow rendering with the ",
|
|
20
|
+
jsx_runtime_1.jsx("code", { children: "--single-process" }),
|
|
21
|
+
" flag. ",
|
|
22
|
+
jsx_runtime_1.jsx("br", {}),
|
|
23
|
+
"This flag will be removed in Remotion v5.0."] })),
|
|
12
24
|
ssrName: 'chromiumOptions.enableMultiprocessOnLinux',
|
|
13
25
|
docLink: 'https://www.remotion.dev/docs/chromium-flags',
|
|
14
26
|
type: false,
|
|
@@ -13,7 +13,9 @@ const cliFlag = 'buffer-size';
|
|
|
13
13
|
exports.encodingBufferSizeOption = {
|
|
14
14
|
name: 'FFmpeg -bufsize flag',
|
|
15
15
|
cliFlag,
|
|
16
|
-
description: () => (
|
|
16
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The value for the ",
|
|
17
|
+
jsx_runtime_1.jsx("code", { children: "-bufsize" }),
|
|
18
|
+
" flag of FFmpeg. Should be used in conjunction with the encoding max rate flag."] })),
|
|
17
19
|
ssrName: 'encodingBufferSize',
|
|
18
20
|
docLink: 'https://www.remotion.dev/docs/renderer/render-media#encodingbuffersize',
|
|
19
21
|
type: '',
|
|
@@ -7,7 +7,9 @@ const cliFlag = 'max-rate';
|
|
|
7
7
|
exports.encodingMaxRateOption = {
|
|
8
8
|
name: 'FFmpeg -maxrate flag',
|
|
9
9
|
cliFlag,
|
|
10
|
-
description: () => (
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["The value for the ",
|
|
11
|
+
jsx_runtime_1.jsx("code", { children: "-maxrate" }),
|
|
12
|
+
" flag of FFmpeg. Should be used in conjunction with the encoding buffer size flag."] })),
|
|
11
13
|
ssrName: 'encodingMaxRate',
|
|
12
14
|
docLink: 'https://www.remotion.dev/docs/renderer/render-media#encodingmaxrate',
|
|
13
15
|
type: '',
|
|
@@ -8,7 +8,7 @@ const cliFlag = 'enforce-audio-track';
|
|
|
8
8
|
exports.enforceAudioOption = {
|
|
9
9
|
name: 'Enforce Audio Track',
|
|
10
10
|
cliFlag,
|
|
11
|
-
description: () => (
|
|
11
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Render a silent audio track if there would be none otherwise." })),
|
|
12
12
|
ssrName: 'enforceAudioTrack',
|
|
13
13
|
docLink: 'https://www.remotion.dev/docs/config#setenforceaudiotrack-',
|
|
14
14
|
type: false,
|
|
@@ -8,7 +8,10 @@ exports.folderExpiryOption = {
|
|
|
8
8
|
name: 'Lambda render expiration',
|
|
9
9
|
cliFlag,
|
|
10
10
|
description: () => {
|
|
11
|
-
return (
|
|
11
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["When deploying sites, enable or disable S3 Lifecycle policies which allow for renders to auto-delete after a certain time. Default is", ' ', jsx_runtime_1.jsx("code", { children: "null" }),
|
|
12
|
+
", which does not change any lifecycle policies of the S3 bucket. See: ",
|
|
13
|
+
jsx_runtime_1.jsx("a", { href: "/docs/lambda/autodelete", children: "Lambda autodelete" }),
|
|
14
|
+
"."] }));
|
|
12
15
|
},
|
|
13
16
|
ssrName: 'enableFolderExpiry',
|
|
14
17
|
docLink: 'https://www.remotion.dev/docs/lambda/autodelete',
|