@remotion/renderer 4.0.537 → 4.0.539
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/aac-priming.d.ts +2 -1
- package/dist/assets/apply-tone-frequency.d.ts +2 -1
- package/dist/assets/apply-tone-frequency.js +8 -1
- package/dist/assets/calculate-asset-positions.js +2 -0
- package/dist/assets/convert-assets-to-file-urls.d.ts +2 -1
- package/dist/assets/download-and-map-assets-to-file.d.ts +3 -2
- package/dist/assets/get-audio-channels.d.ts +3 -2
- package/dist/assets/inline-audio-mixing.d.ts +2 -1
- package/dist/assets/read-file.js +1 -2
- package/dist/assets/types.d.ts +2 -1
- package/dist/browser/Browser.d.ts +5 -5
- package/dist/browser/Browser.js +74 -65
- package/dist/browser/BrowserFetcher.d.ts +7 -5
- package/dist/browser/BrowserPage.d.ts +4 -4
- package/dist/browser/BrowserPage.js +222 -226
- package/dist/browser/BrowserRunner.d.ts +2 -1
- package/dist/browser/Connection.js +109 -96
- package/dist/browser/ConsoleMessage.d.ts +1 -1
- package/dist/browser/ConsoleMessage.js +16 -9
- package/dist/browser/DOMWorld.d.ts +1 -1
- package/dist/browser/DOMWorld.js +91 -77
- package/dist/browser/Errors.js +4 -2
- package/dist/browser/EventEmitter.js +1 -2
- package/dist/browser/ExecutionContext.js +120 -117
- package/dist/browser/FrameManager.js +244 -249
- package/dist/browser/HTTPRequest.js +22 -11
- package/dist/browser/HTTPResponse.js +16 -3
- package/dist/browser/JSHandle.js +30 -17
- package/dist/browser/LifecycleWatcher.js +128 -122
- package/dist/browser/NetworkEventManager.js +40 -31
- package/dist/browser/NetworkManager.js +203 -210
- package/dist/browser/NodeWebSocketTransport.js +0 -3
- package/dist/browser/Target.d.ts +1 -1
- package/dist/browser/Target.js +39 -32
- package/dist/browser/TaskQueue.js +18 -5
- package/dist/browser/TimeoutSettings.js +25 -12
- package/dist/browser/browser-download-progress-bar.d.ts +2 -1
- package/dist/browser/get-chrome-download-url.d.ts +3 -2
- package/dist/browser/handle-failed-resource.d.ts +2 -1
- package/dist/call-ffmpeg.d.ts +7 -6
- package/dist/can-concat-seamlessly.d.ts +4 -2
- package/dist/can-use-parallel-encoding.d.ts +2 -1
- package/dist/check-version-requirements.d.ts +2 -1
- package/dist/client.d.ts +302 -280
- package/dist/client.js +2 -2
- package/dist/codec-supports-media.d.ts +4 -3
- package/dist/codec.d.ts +1 -1
- package/dist/collect-assets.d.ts +1 -1
- package/dist/combine-audio.d.ts +4 -2
- package/dist/combine-chunks.d.ts +2 -1
- package/dist/combine-video-streams.d.ts +4 -2
- package/dist/compositor/compositor.d.ts +4 -3
- package/dist/compositor/get-executable-path.d.ts +4 -4
- package/dist/compress-audio.d.ts +4 -2
- package/dist/create-audio.d.ts +4 -2
- package/dist/create-silent-audio.d.ts +2 -1
- package/dist/crf.d.ts +6 -4
- package/dist/cycle-browser-tabs.d.ts +2 -1
- package/dist/ensure-browser.d.ts +1 -52
- package/dist/error-handling/handle-javascript-exception.d.ts +1 -1
- package/dist/error-handling/handle-javascript-exception.js +0 -5
- package/dist/error-handling/symbolicateable-error.d.ts +1 -1
- package/dist/error-handling/symbolicateable-error.js +0 -4
- package/dist/error-handling.js +1 -1
- package/dist/esm/client.mjs +329 -242
- package/dist/esm/index.mjs +129 -110
- package/dist/extract-audio.d.ts +3 -2
- package/dist/ffmpeg-args.d.ts +12 -6
- package/dist/finalize-fast-start.d.ts +2 -1
- package/dist/get-browser-instance.d.ts +6 -4
- package/dist/get-codec-name.d.ts +6 -3
- package/dist/get-compositions.d.ts +2 -1
- package/dist/get-concurrency.d.ts +1 -1
- package/dist/get-concurrency.js +1 -1
- package/dist/get-duration-from-frame-range.d.ts +1 -1
- package/dist/get-extension-from-codec.d.ts +2 -1
- package/dist/get-frame-padded-index.d.ts +2 -1
- package/dist/get-local-browser-executable.d.ts +4 -2
- package/dist/get-port.d.ts +1 -1
- package/dist/get-prores-profile-name.d.ts +3 -1
- package/dist/get-silent-parts.d.ts +5 -4
- package/dist/get-video-metadata.d.ts +4 -3
- package/dist/get-video-threads-flag.d.ts +2 -1
- package/dist/goto-page-or-throw.d.ts +1 -1
- package/dist/guess-extension-for-media.d.ts +2 -1
- package/dist/image-format.d.ts +6 -5
- package/dist/index.d.ts +213 -440
- package/dist/index.js +18 -18
- package/dist/is-audio-codec.d.ts +2 -1
- package/dist/log-level.d.ts +2 -2
- package/dist/logger.d.ts +6 -6
- package/dist/make-page.d.ts +5 -3
- package/dist/memory/from-macos-sysctl.d.ts +2 -1
- package/dist/memory/from-proc-meminfo.d.ts +2 -1
- package/dist/memory/get-available-memory.d.ts +2 -1
- package/dist/merge-audio-track.d.ts +1 -1
- package/dist/merge-audio-track.js +24 -23
- package/dist/merge-inline-audio-tracks.d.ts +2 -1
- package/dist/mux-video-and-audio.d.ts +5 -3
- package/dist/offthread-video-server.d.ts +2 -1
- package/dist/offthread-video-server.js +6 -4
- package/dist/open-browser.d.ts +2 -2
- package/dist/options/allow-html-in-canvas.js +1 -2
- package/dist/options/api-key.d.ts +1 -1
- package/dist/options/api-key.js +1 -3
- package/dist/options/ask-ai.js +1 -1
- package/dist/options/audio-bitrate.js +1 -9
- package/dist/options/audio-codec.d.ts +23 -20
- package/dist/options/beep-on-finish.js +1 -1
- package/dist/options/benchmark-concurrencies.js +1 -2
- package/dist/options/binaries-directory.d.ts +1 -1
- package/dist/options/binaries-directory.js +1 -9
- package/dist/options/browser-executable.d.ts +1 -1
- package/dist/options/browser-executable.js +1 -1
- package/dist/options/browser.js +1 -2
- package/dist/options/bundle-cache.js +1 -2
- package/dist/options/canvas-tabs.js +1 -1
- package/dist/options/chrome-mode.d.ts +4 -4
- package/dist/options/chrome-mode.js +1 -6
- package/dist/options/color-space.d.ts +9 -5
- package/dist/options/color-space.js +1 -8
- package/dist/options/concurrency.d.ts +1 -1
- package/dist/options/concurrency.js +1 -5
- package/dist/options/config.js +1 -1
- package/dist/options/crf.js +1 -1
- package/dist/options/cross-site-isolation.js +1 -2
- package/dist/options/dark-mode.js +1 -2
- package/dist/options/default-coding-agent.d.ts +2 -2
- package/dist/options/default-coding-agent.js +1 -2
- package/dist/options/default-editor.d.ts +4 -4
- package/dist/options/default-editor.js +1 -3
- package/dist/options/default-premount-in-seconds.js +1 -1
- package/dist/options/delete-after.d.ts +1 -1
- package/dist/options/delete-after.js +1 -11
- package/dist/options/disable-shared-memory-capture.js +1 -3
- package/dist/options/disable-web-security.d.ts +1 -1
- package/dist/options/disable-web-security.js +1 -1
- package/dist/options/disallow-parallel-encoding.js +1 -1
- package/dist/options/enable-cancellation.js +1 -2
- package/dist/options/enable-lambda-insights.js +1 -2
- package/dist/options/enable-multiprocess-on-linux.js +1 -13
- package/dist/options/encoding-buffer-size.d.ts +4 -2
- package/dist/options/encoding-buffer-size.js +1 -3
- package/dist/options/encoding-max-rate.d.ts +1 -1
- package/dist/options/encoding-max-rate.js +1 -3
- package/dist/options/enforce-audio.js +1 -15
- package/dist/options/env-file.js +1 -3
- package/dist/options/every-nth-frame.d.ts +1 -1
- package/dist/options/every-nth-frame.js +1 -6
- package/dist/options/experimental-client-side-rendering.d.ts +16 -0
- package/dist/options/experimental-client-side-rendering.js +30 -0
- package/dist/options/experimental-keep-audio-context-alive.js +1 -3
- package/dist/options/folder-expiry.d.ts +1 -1
- package/dist/options/folder-expiry.js +1 -4
- package/dist/options/for-seamless-aac-concatenation.js +1 -3
- package/dist/options/force-new-studio.js +1 -1
- package/dist/options/frames.d.ts +1 -1
- package/dist/options/frames.js +1 -4
- package/dist/options/gl.d.ts +6 -6
- package/dist/options/gl.js +3 -28
- package/dist/options/gop-size.js +1 -3
- package/dist/options/hardware-acceleration.d.ts +3 -3
- package/dist/options/headless.js +1 -1
- package/dist/options/ignore-certificate-errors.d.ts +1 -1
- package/dist/options/ignore-certificate-errors.js +1 -1
- package/dist/options/image-sequence-pattern.js +1 -5
- package/dist/options/image-sequence.js +1 -1
- package/dist/options/index.d.ts +91 -72
- package/dist/options/index.js +2 -0
- package/dist/options/interactivity.js +1 -1
- package/dist/options/ipv4.js +1 -1
- package/dist/options/is-production.d.ts +1 -1
- package/dist/options/is-production.js +1 -4
- package/dist/options/jpeg-quality.d.ts +1 -1
- package/dist/options/jpeg-quality.js +1 -4
- package/dist/options/keyboard-shortcuts.js +1 -1
- package/dist/options/latency-hint.d.ts +1 -1
- package/dist/options/latency-hint.js +1 -10
- package/dist/options/license-key.d.ts +1 -1
- package/dist/options/license-key.js +1 -2
- package/dist/options/log-level.d.ts +4 -3
- package/dist/options/log-level.js +1 -16
- package/dist/options/metadata.js +2 -7
- package/dist/options/mute.js +1 -1
- package/dist/options/no-open.js +1 -1
- package/dist/options/number-of-gif-loops.d.ts +1 -1
- package/dist/options/number-of-gif-loops.js +1 -13
- package/dist/options/number-of-shared-audio-tags.js +1 -1
- package/dist/options/offthreadvideo-cache-size.d.ts +1 -1
- package/dist/options/offthreadvideo-cache-size.js +1 -11
- package/dist/options/offthreadvideo-threads.d.ts +1 -1
- package/dist/options/offthreadvideo-threads.js +1 -2
- package/dist/options/on-browser-download.d.ts +1 -1
- package/dist/options/on-browser-download.js +1 -2
- package/dist/options/options-map.d.ts +180 -180
- package/dist/options/out-dir.d.ts +1 -1
- package/dist/options/out-dir.js +1 -4
- package/dist/options/override-duration.js +1 -1
- package/dist/options/override-fps.js +1 -1
- package/dist/options/override-height.js +1 -1
- package/dist/options/override-width.js +1 -1
- package/dist/options/overwrite.js +1 -5
- package/dist/options/package-manager.d.ts +1 -1
- package/dist/options/package-manager.js +1 -12
- package/dist/options/pixel-format.d.ts +6 -5
- package/dist/options/pixel-format.js +1 -2
- package/dist/options/port.js +1 -1
- package/dist/options/prefer-lossless.d.ts +1 -1
- package/dist/options/prefer-lossless.js +1 -4
- package/dist/options/preserve-pitch-on-playback.d.ts +19 -0
- package/dist/options/preserve-pitch-on-playback.js +36 -0
- package/dist/options/preview-sample-rate.js +1 -3
- package/dist/options/props.js +1 -5
- package/dist/options/prores-profile.d.ts +2 -2
- package/dist/options/prores-profile.js +1 -5
- package/dist/options/public-dir.d.ts +1 -1
- package/dist/options/public-dir.js +1 -2
- package/dist/options/public-license-key.d.ts +1 -1
- package/dist/options/public-license-key.js +1 -3
- package/dist/options/public-path.d.ts +1 -1
- package/dist/options/public-path.js +1 -5
- package/dist/options/repro.d.ts +3 -1
- package/dist/options/repro.js +1 -1
- package/dist/options/rspack.js +1 -1
- package/dist/options/runs.js +1 -3
- package/dist/options/sample-rate.d.ts +2 -2
- package/dist/options/sample-rate.js +1 -2
- package/dist/options/scale.js +1 -5
- package/dist/options/sequence-activity-limit.js +1 -4
- package/dist/options/show-layer-frame-numbers.js +1 -3
- package/dist/options/show-premounting.js +1 -2
- package/dist/options/skip-skills.js +1 -1
- package/dist/options/still-frame.d.ts +1 -1
- package/dist/options/still-frame.js +1 -3
- package/dist/options/still-image-format.d.ts +3 -2
- package/dist/options/still-image-format.js +1 -2
- package/dist/options/timeout.d.ts +1 -1
- package/dist/options/timeout.js +1 -4
- package/dist/options/user-agent.d.ts +1 -1
- package/dist/options/user-agent.js +1 -1
- package/dist/options/version-flag.js +1 -1
- package/dist/options/video-bitrate.js +1 -7
- package/dist/options/video-cache-size.d.ts +1 -1
- package/dist/options/video-cache-size.js +1 -7
- package/dist/options/video-codec.d.ts +9 -7
- package/dist/options/video-codec.js +1 -1
- package/dist/options/video-image-format.d.ts +6 -5
- package/dist/options/video-image-format.js +1 -6
- package/dist/options/webhook-custom-data.d.ts +1 -1
- package/dist/options/webhook-custom-data.js +1 -1
- package/dist/options/webpack-poll.js +1 -1
- package/dist/options/x264-preset.d.ts +8 -7
- package/dist/options/x264-preset.js +1 -23
- package/dist/p-limit.d.ts +1 -1
- package/dist/pixel-format.d.ts +4 -3
- package/dist/pool.js +0 -2
- package/dist/port-config.d.ts +6 -5
- package/dist/prespawn-ffmpeg.d.ts +1 -1
- package/dist/prestitcher-memory-usage.d.ts +13 -0
- package/dist/prestitcher-memory-usage.js +33 -0
- package/dist/print-useful-error-message.d.ts +2 -1
- package/dist/probe-encoder.d.ts +8 -5
- package/dist/probe-shared-memory-capture.d.ts +4 -2
- package/dist/prores-profile.d.ts +4 -2
- package/dist/puppeteer-evaluate.d.ts +2 -2
- package/dist/puppeteer-screenshot.d.ts +4 -3
- package/dist/pure.d.ts +12 -15
- package/dist/remotion-shared-memory.d.ts +1 -1
- package/dist/remotion-shared-memory.js +199 -187
- package/dist/render-frame-and-retry-target-close.d.ts +10 -10
- package/dist/render-frame-with-option-to-reject.d.ts +7 -5
- package/dist/render-frame-with-option-to-reject.js +1 -5
- package/dist/render-frame.d.ts +8 -6
- package/dist/render-frames.d.ts +1 -40
- package/dist/render-has-audio.d.ts +3 -2
- package/dist/render-partitions.d.ts +7 -0
- package/dist/render-partitions.js +50 -0
- package/dist/replace-browser.d.ts +2 -1
- package/dist/repro.d.ts +1 -1
- package/dist/screenshot-task.d.ts +4 -3
- package/dist/seek-to-frame.d.ts +3 -2
- package/dist/select-composition.d.ts +1 -20
- package/dist/serve-handler/index.d.ts +1 -1
- package/dist/serve-handler/range-parser.d.ts +2 -2
- package/dist/serve-handler/range-parser.js +1 -1
- package/dist/serve-static.d.ts +2 -1
- package/dist/serve-static.js +4 -1
- package/dist/set-props-and-env.js +2 -6
- package/dist/stringify-ffmpeg-filter.d.ts +2 -1
- package/dist/stringify-ffmpeg-filter.js +20 -2
- package/dist/take-frame.d.ts +1 -1
- package/dist/test-gpu.d.ts +4 -2
- package/dist/validate-even-dimensions-with-codec.d.ts +4 -2
- package/dist/validate-ffmpeg-override.d.ts +1 -1
- package/dist/validate-number-of-gif-loops.d.ts +2 -1
- package/dist/validate-output-filename.d.ts +4 -2
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
import execa from 'execa';
|
|
2
|
+
import { downloadFile } from './assets/download-file';
|
|
2
3
|
import { HeadlessBrowser } from './browser/Browser';
|
|
4
|
+
import { callFf } from './call-ffmpeg';
|
|
5
|
+
import { canUseParallelEncoding } from './can-use-parallel-encoding';
|
|
6
|
+
import { isColorSupported } from './chalk/is-color-supported';
|
|
7
|
+
import { getExecutablePath } from './compositor/get-executable-path';
|
|
8
|
+
import { convertToPositiveFrameIndex } from './convert-to-positive-frame-index';
|
|
9
|
+
import { deleteDirectory } from './delete-directory';
|
|
10
|
+
import { ensureOutputDirectory } from './ensure-output-directory';
|
|
11
|
+
import { formatStackFrameCodeFrame, formatStackFrameLocationLine, makeStackFrameFileName } from './error-handling/format-stack-frame';
|
|
12
|
+
import { symbolicateError } from './error-handling/symbolicate-error';
|
|
3
13
|
import { SymbolicateableError } from './error-handling/symbolicateable-error';
|
|
14
|
+
import { findRemotionRoot } from './find-closest-package-json';
|
|
15
|
+
import { validateFrameRange } from './frame-range';
|
|
16
|
+
import { resolveConcurrency } from './get-concurrency';
|
|
17
|
+
import { getFramesToRender } from './get-duration-from-frame-range';
|
|
18
|
+
import { getFileExtensionFromCodec, makeFileExtensionMap } from './get-extension-from-codec';
|
|
19
|
+
import { getExtensionOfFilename } from './get-extension-of-filename';
|
|
20
|
+
import { getRealFrameRange, getRealFrameRanges } from './get-frame-to-render';
|
|
21
|
+
import { getMp4BrandForExtension } from './get-mp4-brand';
|
|
22
|
+
import { getDesiredPort } from './get-port';
|
|
23
|
+
import { isServeUrl } from './is-serve-url';
|
|
24
|
+
import { validateJpegQuality } from './jpeg-quality';
|
|
25
|
+
import { isEqualOrBelowLogLevel, isValidLogLevel } from './log-level';
|
|
4
26
|
import { mimeContentType, mimeLookup } from './mime-types';
|
|
27
|
+
import { internalOpenBrowser } from './open-browser';
|
|
28
|
+
import { validateOpenGlRenderer } from './options/gl';
|
|
29
|
+
import { parseStack } from './parse-browser-error-stack';
|
|
5
30
|
import * as perf from './perf';
|
|
31
|
+
import { getPortConfig, isIpV6Supported } from './port-config';
|
|
32
|
+
import { makeOrReuseServer, prepareServer } from './prepare-server';
|
|
33
|
+
import { probeSharedMemoryCapture } from './probe-shared-memory-capture';
|
|
34
|
+
import { isPathInside } from './serve-handler/is-path-inside';
|
|
35
|
+
import { serveStatic } from './serve-static';
|
|
36
|
+
import { getChromiumGpuInformation } from './test-gpu';
|
|
37
|
+
import { tmpDir } from './tmp-dir';
|
|
38
|
+
import { getMaxConcurrency, getMinConcurrency, validateConcurrency } from './validate-concurrency';
|
|
39
|
+
import { validateEvenDimensionsWithCodec } from './validate-even-dimensions-with-codec';
|
|
40
|
+
import { validateSelectedFrames } from './validate-selected-frames';
|
|
6
41
|
export type { RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
|
|
7
42
|
export type { Bitrate } from './bitrate';
|
|
8
43
|
export { Browser } from './browser';
|
|
@@ -53,150 +88,89 @@ export { SymbolicatedStackFrame } from './symbolicate-stacktrace';
|
|
|
53
88
|
export { OnStartData, RenderFramesOutput } from './types';
|
|
54
89
|
export { validateOutputFilename } from './validate-output-filename';
|
|
55
90
|
export type { AudioCodec };
|
|
91
|
+
import { makeDownloadMap } from './assets/download-map';
|
|
92
|
+
import { canConcatAudioSeamlessly, canConcatVideoSeamlessly } from './can-concat-seamlessly';
|
|
93
|
+
import { codecSupportsMedia } from './codec-supports-media';
|
|
94
|
+
import { internalCombineChunks } from './combine-chunks';
|
|
95
|
+
import { makeFileExecutableIfItIsNot } from './compositor/make-file-executable';
|
|
96
|
+
import { internalEnsureBrowser } from './ensure-browser';
|
|
56
97
|
import type { AudioCodec } from './options/audio-codec';
|
|
98
|
+
import { getDefaultAudioCodec, getExtensionFromAudioCodec, resolveAudioCodec } from './options/audio-codec';
|
|
99
|
+
import { printUsefulErrorMessage } from './print-useful-error-message';
|
|
100
|
+
import { getShouldRenderAudio } from './render-has-audio';
|
|
57
101
|
import { toMegabytes } from './to-megabytes';
|
|
102
|
+
import { validatePuppeteerTimeout } from './validate-puppeteer-timeout';
|
|
103
|
+
import { validateBitrate } from './validate-videobitrate';
|
|
58
104
|
export declare const RenderInternals: {
|
|
59
|
-
resolveConcurrency:
|
|
60
|
-
serveStatic:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
width: number;
|
|
77
|
-
height: number;
|
|
78
|
-
scale: number;
|
|
79
|
-
codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
80
|
-
wantsImageSequence: boolean;
|
|
81
|
-
indent: boolean;
|
|
82
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
83
|
-
}) => {
|
|
84
|
-
actualWidth: number;
|
|
85
|
-
actualHeight: number;
|
|
86
|
-
};
|
|
87
|
-
getFileExtensionFromCodec: <T extends "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav">(codec: T, audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null) => import("./file-extensions").FileExtension;
|
|
88
|
-
tmpDir: (str: string) => string;
|
|
89
|
-
deleteDirectory: (directory: string) => void;
|
|
90
|
-
isServeUrl: (potentialUrl: string) => boolean;
|
|
91
|
-
ensureOutputDirectory: (outputLocation: string) => void;
|
|
92
|
-
getRealFrameRange: (durationInFrames: number, frameRange: import("./frame-range").FrameRange | null) => [number, number];
|
|
93
|
-
getRealFrameRanges: (durationInFrames: number, frameRange: import("./frame-range").FrameRange | null) => import("./frame-range").ResolvedFrameRange[];
|
|
94
|
-
validatePuppeteerTimeout: (timeoutInMilliseconds: unknown) => void;
|
|
95
|
-
downloadFile: (options: {
|
|
96
|
-
url: string;
|
|
97
|
-
to: (contentDisposition: string | null, contentType: string | null) => string;
|
|
98
|
-
onProgress: ((progress: {
|
|
99
|
-
percent: number | null;
|
|
100
|
-
downloaded: number;
|
|
101
|
-
totalSize: number | null;
|
|
102
|
-
}) => void) | undefined;
|
|
103
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
104
|
-
indent: boolean;
|
|
105
|
-
abortSignal: AbortSignal;
|
|
106
|
-
}, retries?: number, attempt?: number) => Promise<{
|
|
107
|
-
sizeInBytes: number;
|
|
108
|
-
to: string;
|
|
109
|
-
}>;
|
|
110
|
-
parseStack: (stack: string[]) => import("./parse-browser-error-stack").UnsymbolicatedStackFrame[];
|
|
111
|
-
symbolicateError: (symbolicateableError: SymbolicateableError) => Promise<import(".").ErrorWithStackFrame>;
|
|
112
|
-
makeStackFrameFileName: (frame: import("./symbolicate-stacktrace").SymbolicatedStackFrame) => string;
|
|
113
|
-
formatStackFrameCodeFrame: (frame: import("./symbolicate-stacktrace").SymbolicatedStackFrame) => string | null;
|
|
114
|
-
formatStackFrameLocationLine: (frame: import("./symbolicate-stacktrace").SymbolicatedStackFrame) => string | null;
|
|
105
|
+
resolveConcurrency: typeof resolveConcurrency;
|
|
106
|
+
serveStatic: typeof serveStatic;
|
|
107
|
+
validateEvenDimensionsWithCodec: typeof validateEvenDimensionsWithCodec;
|
|
108
|
+
getFileExtensionFromCodec: typeof getFileExtensionFromCodec;
|
|
109
|
+
tmpDir: typeof tmpDir;
|
|
110
|
+
deleteDirectory: typeof deleteDirectory;
|
|
111
|
+
isServeUrl: typeof isServeUrl;
|
|
112
|
+
ensureOutputDirectory: typeof ensureOutputDirectory;
|
|
113
|
+
getRealFrameRange: typeof getRealFrameRange;
|
|
114
|
+
getRealFrameRanges: typeof getRealFrameRanges;
|
|
115
|
+
validatePuppeteerTimeout: typeof validatePuppeteerTimeout;
|
|
116
|
+
downloadFile: typeof downloadFile;
|
|
117
|
+
parseStack: typeof parseStack;
|
|
118
|
+
symbolicateError: typeof symbolicateError;
|
|
119
|
+
makeStackFrameFileName: typeof makeStackFrameFileName;
|
|
120
|
+
formatStackFrameCodeFrame: typeof formatStackFrameCodeFrame;
|
|
121
|
+
formatStackFrameLocationLine: typeof formatStackFrameLocationLine;
|
|
115
122
|
SymbolicateableError: typeof SymbolicateableError;
|
|
116
|
-
getFramesToRender:
|
|
117
|
-
getExtensionOfFilename:
|
|
118
|
-
getMp4BrandForExtension:
|
|
119
|
-
getDesiredPort:
|
|
120
|
-
|
|
121
|
-
from: number;
|
|
122
|
-
to: number;
|
|
123
|
-
hostsToTry: string[];
|
|
124
|
-
onPortUnavailable?: ((port: number) => Promise<"continue" | "stop">) | undefined;
|
|
125
|
-
}) => Promise<{
|
|
126
|
-
port: number;
|
|
127
|
-
unlockPort: () => void;
|
|
128
|
-
didUsePort: false;
|
|
129
|
-
} | {
|
|
130
|
-
port: number;
|
|
131
|
-
unlockPort: () => void;
|
|
132
|
-
didUsePort: true;
|
|
133
|
-
}>;
|
|
134
|
-
isPathInside: (thePath: string, potentialParent: string) => boolean;
|
|
123
|
+
getFramesToRender: typeof getFramesToRender;
|
|
124
|
+
getExtensionOfFilename: typeof getExtensionOfFilename;
|
|
125
|
+
getMp4BrandForExtension: typeof getMp4BrandForExtension;
|
|
126
|
+
getDesiredPort: typeof getDesiredPort;
|
|
127
|
+
isPathInside: typeof isPathInside;
|
|
135
128
|
execa: {
|
|
136
|
-
(file: string, arguments?: readonly string[]
|
|
137
|
-
(file: string, arguments?: readonly string[]
|
|
138
|
-
(file: string, options?: execa.Options
|
|
139
|
-
(file: string, options?: execa.Options<null>
|
|
140
|
-
sync(file: string, arguments?: readonly string[]
|
|
141
|
-
sync(file: string, arguments?: readonly string[]
|
|
142
|
-
sync(file: string, options?: execa.SyncOptions
|
|
143
|
-
sync(file: string, options?: execa.SyncOptions<null>
|
|
144
|
-
command(command: string, options?: execa.Options
|
|
145
|
-
command(command: string, options?: execa.Options<null>
|
|
146
|
-
commandSync(command: string, options?: execa.SyncOptions
|
|
147
|
-
commandSync(command: string, options?: execa.SyncOptions<null>
|
|
148
|
-
node(scriptPath: string, arguments?: readonly string[]
|
|
149
|
-
node(scriptPath: string, arguments?: readonly string[]
|
|
150
|
-
node(scriptPath: string, options?: execa.Options
|
|
151
|
-
node(scriptPath: string, options?: execa.Options<null>
|
|
129
|
+
(file: string, arguments?: readonly string[], options?: execa.Options): execa.ExecaChildProcess;
|
|
130
|
+
(file: string, arguments?: readonly string[], options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
131
|
+
(file: string, options?: execa.Options): execa.ExecaChildProcess;
|
|
132
|
+
(file: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
133
|
+
sync(file: string, arguments?: readonly string[], options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
|
|
134
|
+
sync(file: string, arguments?: readonly string[], options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
|
|
135
|
+
sync(file: string, options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
|
|
136
|
+
sync(file: string, options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
|
|
137
|
+
command(command: string, options?: execa.Options): execa.ExecaChildProcess;
|
|
138
|
+
command(command: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
139
|
+
commandSync(command: string, options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
|
|
140
|
+
commandSync(command: string, options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
|
|
141
|
+
node(scriptPath: string, arguments?: readonly string[], options?: execa.NodeOptions): execa.ExecaChildProcess;
|
|
142
|
+
node(scriptPath: string, arguments?: readonly string[], options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
143
|
+
node(scriptPath: string, options?: execa.Options): execa.ExecaChildProcess;
|
|
144
|
+
node(scriptPath: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
|
|
152
145
|
};
|
|
153
146
|
registerErrorSymbolicationLock: () => number;
|
|
154
147
|
unlockErrorSymbolicationLock: (id: number) => void;
|
|
155
|
-
canUseParallelEncoding:
|
|
156
|
-
probeSharedMemoryCapture:
|
|
157
|
-
browserExecutable: string | null;
|
|
158
|
-
chromeMode: "chrome-for-testing" | "headless-shell";
|
|
159
|
-
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
160
|
-
binariesDirectory: string | null;
|
|
161
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
162
|
-
}) => Promise<boolean>;
|
|
148
|
+
canUseParallelEncoding: typeof canUseParallelEncoding;
|
|
149
|
+
probeSharedMemoryCapture: typeof probeSharedMemoryCapture;
|
|
163
150
|
mimeContentType: typeof mimeContentType;
|
|
164
151
|
mimeLookup: typeof mimeLookup;
|
|
165
|
-
validateConcurrency:
|
|
166
|
-
value: unknown;
|
|
167
|
-
setting: string;
|
|
168
|
-
checkIfValidForCurrentMachine: boolean;
|
|
169
|
-
}) => void;
|
|
152
|
+
validateConcurrency: typeof validateConcurrency;
|
|
170
153
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
171
154
|
DEFAULT_BROWSER: "chrome";
|
|
172
|
-
validateFrameRange:
|
|
173
|
-
validateSelectedFrames:
|
|
174
|
-
frames: unknown;
|
|
175
|
-
durationInFrames: number | null;
|
|
176
|
-
}) => number[];
|
|
155
|
+
validateFrameRange: typeof validateFrameRange;
|
|
156
|
+
validateSelectedFrames: typeof validateSelectedFrames;
|
|
177
157
|
DEFAULT_OPENGL_RENDERER: "angle" | "angle-egl" | "egl" | "swangle" | "swiftshader" | "vulkan" | null;
|
|
178
|
-
validateOpenGlRenderer:
|
|
158
|
+
validateOpenGlRenderer: typeof validateOpenGlRenderer;
|
|
179
159
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "av1", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
|
|
180
160
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
|
|
181
|
-
validateJpegQuality:
|
|
161
|
+
validateJpegQuality: typeof validateJpegQuality;
|
|
182
162
|
DEFAULT_TIMEOUT: number;
|
|
183
163
|
DEFAULT_CODEC: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
184
164
|
logLevels: readonly ["trace", "verbose", "info", "warn", "error"];
|
|
185
|
-
isEqualOrBelowLogLevel:
|
|
186
|
-
isValidLogLevel:
|
|
165
|
+
isEqualOrBelowLogLevel: typeof isEqualOrBelowLogLevel;
|
|
166
|
+
isValidLogLevel: typeof isValidLogLevel;
|
|
187
167
|
perf: typeof perf;
|
|
188
|
-
convertToPositiveFrameIndex:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
getMinConcurrency: () => number;
|
|
195
|
-
getMaxConcurrency: () => number;
|
|
196
|
-
getDefaultAudioCodec: ({ codec, preferLossless, }: {
|
|
197
|
-
codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
198
|
-
preferLossless: boolean;
|
|
199
|
-
}) => "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
168
|
+
convertToPositiveFrameIndex: typeof convertToPositiveFrameIndex;
|
|
169
|
+
findRemotionRoot: typeof findRemotionRoot;
|
|
170
|
+
validateBitrate: typeof validateBitrate;
|
|
171
|
+
getMinConcurrency: typeof getMinConcurrency;
|
|
172
|
+
getMaxConcurrency: typeof getMaxConcurrency;
|
|
173
|
+
getDefaultAudioCodec: typeof getDefaultAudioCodec;
|
|
200
174
|
defaultFileExtensionMap: {
|
|
201
175
|
aac: {
|
|
202
176
|
default: import("./file-extensions").FileExtension;
|
|
@@ -351,37 +325,24 @@ export declare const RenderInternals: {
|
|
|
351
325
|
};
|
|
352
326
|
};
|
|
353
327
|
supportedAudioCodecs: {
|
|
354
|
-
readonly h264: readonly [
|
|
355
|
-
readonly 'h264-mkv': readonly [
|
|
356
|
-
readonly 'h264-ts': readonly [
|
|
357
|
-
readonly aac: readonly [
|
|
328
|
+
readonly h264: readonly ['aac', 'pcm-16', 'mp3'];
|
|
329
|
+
readonly 'h264-mkv': readonly ['pcm-16', 'mp3'];
|
|
330
|
+
readonly 'h264-ts': readonly ['pcm-16', 'aac'];
|
|
331
|
+
readonly aac: readonly ['aac', 'pcm-16'];
|
|
358
332
|
readonly avi: readonly [];
|
|
359
333
|
readonly gif: readonly [];
|
|
360
|
-
readonly h265: readonly [
|
|
361
|
-
readonly av1: readonly [
|
|
362
|
-
readonly mp3: readonly [
|
|
363
|
-
readonly prores: readonly [
|
|
364
|
-
readonly vp8: readonly [
|
|
365
|
-
readonly vp9: readonly [
|
|
366
|
-
readonly wav: readonly [
|
|
334
|
+
readonly h265: readonly ['aac', 'pcm-16'];
|
|
335
|
+
readonly av1: readonly ['aac', 'opus', 'pcm-16'];
|
|
336
|
+
readonly mp3: readonly ['mp3', 'pcm-16'];
|
|
337
|
+
readonly prores: readonly ['aac', 'pcm-16'];
|
|
338
|
+
readonly vp8: readonly ['opus', 'pcm-16'];
|
|
339
|
+
readonly vp9: readonly ['opus', 'pcm-16'];
|
|
340
|
+
readonly wav: readonly ['pcm-16'];
|
|
367
341
|
};
|
|
368
|
-
makeFileExtensionMap:
|
|
342
|
+
makeFileExtensionMap: typeof makeFileExtensionMap;
|
|
369
343
|
defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav">;
|
|
370
|
-
getExecutablePath:
|
|
371
|
-
|
|
372
|
-
indent: boolean;
|
|
373
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
374
|
-
binariesDirectory: string | null;
|
|
375
|
-
}) => string;
|
|
376
|
-
callFf: ({ args, bin, indent, logLevel, options, binariesDirectory, cancelSignal, }: {
|
|
377
|
-
bin: "ffmpeg" | "ffprobe";
|
|
378
|
-
args: (string | null)[];
|
|
379
|
-
indent: boolean;
|
|
380
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
381
|
-
binariesDirectory: string | null;
|
|
382
|
-
cancelSignal: import("./make-cancel-signal").CancelSignal | undefined;
|
|
383
|
-
options?: execa.Options<string> | undefined;
|
|
384
|
-
}) => execa.ExecaChildProcess<string>;
|
|
344
|
+
getExecutablePath: typeof getExecutablePath;
|
|
345
|
+
callFf: typeof callFf;
|
|
385
346
|
validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
|
|
386
347
|
validVideoImageFormats: readonly ["png", "jpeg", "none"];
|
|
387
348
|
DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "pdf" | "png" | "webp";
|
|
@@ -393,10 +354,10 @@ export declare const RenderInternals: {
|
|
|
393
354
|
styles: Record<string, {
|
|
394
355
|
codes: [number, number];
|
|
395
356
|
name: string;
|
|
396
|
-
wrap?: (
|
|
357
|
+
wrap?: (input: string, newline: boolean) => string;
|
|
397
358
|
}>;
|
|
398
359
|
keys: Record<string, string[]>;
|
|
399
|
-
alias?: (
|
|
360
|
+
alias?: (name: string, col: string) => void;
|
|
400
361
|
} & {
|
|
401
362
|
reset: (str: string) => string;
|
|
402
363
|
bold: (str: string) => string;
|
|
@@ -438,66 +399,39 @@ export declare const RenderInternals: {
|
|
|
438
399
|
bgWhiteBright: (str: string) => string;
|
|
439
400
|
};
|
|
440
401
|
Log: {
|
|
441
|
-
formatLogs: (logLevel: "
|
|
442
|
-
tag?: string
|
|
443
|
-
}, args:
|
|
402
|
+
formatLogs: (logLevel: import("./log-level").LogLevel, options: import("./logger").LogOptions & {
|
|
403
|
+
tag?: string;
|
|
404
|
+
}, args: Parameters<typeof console.log>) => string[];
|
|
444
405
|
trace: (options: import("./logger").LogOptions & {
|
|
445
|
-
tag?: string
|
|
446
|
-
},
|
|
406
|
+
tag?: string;
|
|
407
|
+
}, ...args: Parameters<typeof console.log>) => void | boolean;
|
|
447
408
|
verbose: (options: import("./logger").LogOptions & {
|
|
448
|
-
tag?: string
|
|
449
|
-
},
|
|
450
|
-
info: (options: import("./logger").LogOptions,
|
|
451
|
-
warn: (options: import("./logger").LogOptions,
|
|
409
|
+
tag?: string;
|
|
410
|
+
}, ...args: Parameters<typeof console.log>) => void | boolean;
|
|
411
|
+
info: (options: import("./logger").LogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
|
|
412
|
+
warn: (options: import("./logger").LogOptions, ...args: Parameters<typeof console.log>) => void | boolean;
|
|
452
413
|
error: (options: import("./logger").LogOptions & {
|
|
453
|
-
tag?: string
|
|
454
|
-
},
|
|
414
|
+
tag?: string;
|
|
415
|
+
}, ...args: Parameters<typeof console.log>) => void | boolean;
|
|
455
416
|
};
|
|
456
417
|
INDENT_TOKEN: string;
|
|
457
|
-
isColorSupported:
|
|
418
|
+
isColorSupported: typeof isColorSupported;
|
|
458
419
|
HeadlessBrowser: typeof HeadlessBrowser;
|
|
459
|
-
prepareServer:
|
|
460
|
-
|
|
461
|
-
port: number | null;
|
|
462
|
-
remotionRoot: string;
|
|
463
|
-
offthreadVideoThreads: number;
|
|
464
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
465
|
-
indent: boolean;
|
|
466
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
467
|
-
binariesDirectory: string | null;
|
|
468
|
-
forceIPv4: boolean;
|
|
469
|
-
sampleRate: number;
|
|
470
|
-
}) => Promise<import("./prepare-server").RemotionServer>;
|
|
471
|
-
makeOrReuseServer: (server: import("./prepare-server").RemotionServer | undefined, config: {
|
|
472
|
-
webpackConfigOrServeUrl: string;
|
|
473
|
-
port: number | null;
|
|
474
|
-
remotionRoot: string;
|
|
475
|
-
offthreadVideoThreads: number;
|
|
476
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
477
|
-
indent: boolean;
|
|
478
|
-
offthreadVideoCacheSizeInBytes: number | null;
|
|
479
|
-
binariesDirectory: string | null;
|
|
480
|
-
forceIPv4: boolean;
|
|
481
|
-
sampleRate: number;
|
|
482
|
-
}, { onDownload, }: {
|
|
483
|
-
onDownload: import(".").RenderMediaOnDownload | null;
|
|
484
|
-
}) => Promise<{
|
|
485
|
-
server: import("./prepare-server").RemotionServer;
|
|
486
|
-
cleanupServer: (force: boolean) => Promise<unknown>;
|
|
487
|
-
}>;
|
|
420
|
+
prepareServer: typeof prepareServer;
|
|
421
|
+
makeOrReuseServer: typeof makeOrReuseServer;
|
|
488
422
|
internalRenderStill: (options: {
|
|
489
423
|
composition: import("remotion").VideoConfig;
|
|
490
424
|
output: string | null;
|
|
491
425
|
frame: number;
|
|
492
426
|
serializedInputPropsWithCustomSchema: string;
|
|
493
427
|
serializedResolvedPropsWithCustomSchema: string;
|
|
494
|
-
imageFormat: "
|
|
428
|
+
imageFormat: import("./image-format").StillImageFormat;
|
|
495
429
|
jpegQuality: number;
|
|
496
430
|
puppeteerInstance: HeadlessBrowser | null;
|
|
497
431
|
envVariables: Record<string, string>;
|
|
498
432
|
overwrite: boolean;
|
|
499
433
|
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
500
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
434
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
501
435
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
502
436
|
scale: number;
|
|
503
437
|
onDownload: import(".").RenderMediaOnDownload | null;
|
|
@@ -515,7 +449,7 @@ export declare const RenderInternals: {
|
|
|
515
449
|
addedIn: string;
|
|
516
450
|
cliFlag: "media-cache-size-in-bytes";
|
|
517
451
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
518
|
-
ssrName:
|
|
452
|
+
ssrName: 'mediaCacheSizeInBytes';
|
|
519
453
|
docLink: string;
|
|
520
454
|
type: number | null;
|
|
521
455
|
getValue: ({ commandLine }: {
|
|
@@ -535,7 +469,7 @@ export declare const RenderInternals: {
|
|
|
535
469
|
addedIn: string;
|
|
536
470
|
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
537
471
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
538
|
-
ssrName:
|
|
472
|
+
ssrName: 'offthreadVideoCacheSizeInBytes';
|
|
539
473
|
docLink: string;
|
|
540
474
|
type: number | null;
|
|
541
475
|
getValue: ({ commandLine }: {
|
|
@@ -555,7 +489,7 @@ export declare const RenderInternals: {
|
|
|
555
489
|
addedIn: string;
|
|
556
490
|
cliFlag: "offthreadvideo-video-threads";
|
|
557
491
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
558
|
-
ssrName:
|
|
492
|
+
ssrName: 'offthreadVideoThreads';
|
|
559
493
|
docLink: string;
|
|
560
494
|
type: number | null;
|
|
561
495
|
getValue: ({ commandLine }: {
|
|
@@ -578,7 +512,7 @@ export declare const RenderInternals: {
|
|
|
578
512
|
ssrName: string;
|
|
579
513
|
docLink: string;
|
|
580
514
|
type: number;
|
|
581
|
-
setConfig: (
|
|
515
|
+
setConfig: typeof import("./options/jpeg-quality").setJpegQuality;
|
|
582
516
|
getValue: ({ commandLine }: {
|
|
583
517
|
commandLine: Record<string, unknown>;
|
|
584
518
|
}) => {
|
|
@@ -597,13 +531,13 @@ export declare const RenderInternals: {
|
|
|
597
531
|
getValue: ({ commandLine }: {
|
|
598
532
|
commandLine: Record<string, unknown>;
|
|
599
533
|
}) => {
|
|
600
|
-
value: "
|
|
534
|
+
value: import("./log-level").LogLevel;
|
|
601
535
|
source: string;
|
|
602
536
|
};
|
|
603
|
-
setConfig: (newLogLevel: "
|
|
537
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
604
538
|
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
605
539
|
reset: () => void;
|
|
606
|
-
type: "
|
|
540
|
+
type: import("./log-level").LogLevel;
|
|
607
541
|
id: "log";
|
|
608
542
|
};
|
|
609
543
|
readonly timeoutInMilliseconds: {
|
|
@@ -611,7 +545,7 @@ export declare const RenderInternals: {
|
|
|
611
545
|
addedIn: string;
|
|
612
546
|
cliFlag: "timeout";
|
|
613
547
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
614
|
-
ssrName:
|
|
548
|
+
ssrName: 'timeoutInMilliseconds';
|
|
615
549
|
docLink: string;
|
|
616
550
|
type: number;
|
|
617
551
|
getValue: ({ commandLine }: {
|
|
@@ -628,7 +562,7 @@ export declare const RenderInternals: {
|
|
|
628
562
|
addedIn: string;
|
|
629
563
|
cliFlag: "binaries-directory";
|
|
630
564
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
631
|
-
ssrName:
|
|
565
|
+
ssrName: 'binariesDirectory';
|
|
632
566
|
docLink: string;
|
|
633
567
|
type: string | null;
|
|
634
568
|
getValue: ({ commandLine }: {
|
|
@@ -645,7 +579,7 @@ export declare const RenderInternals: {
|
|
|
645
579
|
addedIn: string;
|
|
646
580
|
cliFlag: "on-browser-download";
|
|
647
581
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
648
|
-
ssrName:
|
|
582
|
+
ssrName: 'onBrowserDownload';
|
|
649
583
|
docLink: string;
|
|
650
584
|
type: import(".").OnBrowserDownload;
|
|
651
585
|
getValue: () => never;
|
|
@@ -662,11 +596,11 @@ export declare const RenderInternals: {
|
|
|
662
596
|
getValue: ({ commandLine }: {
|
|
663
597
|
commandLine: Record<string, unknown>;
|
|
664
598
|
}) => {
|
|
665
|
-
value: "
|
|
599
|
+
value: import(".").ChromeMode;
|
|
666
600
|
source: string;
|
|
667
601
|
};
|
|
668
|
-
setConfig: (newChromeMode: "
|
|
669
|
-
type: "
|
|
602
|
+
setConfig: (newChromeMode: import(".").ChromeMode) => void;
|
|
603
|
+
type: import(".").ChromeMode;
|
|
670
604
|
id: "chrome-mode";
|
|
671
605
|
};
|
|
672
606
|
readonly apiKey: {
|
|
@@ -674,7 +608,7 @@ export declare const RenderInternals: {
|
|
|
674
608
|
addedIn: string;
|
|
675
609
|
cliFlag: "api-key";
|
|
676
610
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
677
|
-
ssrName:
|
|
611
|
+
ssrName: 'apiKey';
|
|
678
612
|
docLink: string;
|
|
679
613
|
type: string | null;
|
|
680
614
|
getValue: ({ commandLine }: {
|
|
@@ -691,7 +625,7 @@ export declare const RenderInternals: {
|
|
|
691
625
|
addedIn: string;
|
|
692
626
|
cliFlag: "license-key";
|
|
693
627
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
694
|
-
ssrName:
|
|
628
|
+
ssrName: 'licenseKey';
|
|
695
629
|
docLink: string;
|
|
696
630
|
type: string | null;
|
|
697
631
|
getValue: ({ commandLine }: {
|
|
@@ -707,69 +641,13 @@ export declare const RenderInternals: {
|
|
|
707
641
|
buffer: Buffer | null;
|
|
708
642
|
contentType: string;
|
|
709
643
|
}>;
|
|
710
|
-
internalOpenBrowser:
|
|
711
|
-
browserExecutable: string | null;
|
|
712
|
-
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
713
|
-
forceDeviceScaleFactor: number | undefined;
|
|
714
|
-
viewport: import("./browser/PuppeteerViewport").Viewport | null;
|
|
715
|
-
indent: boolean;
|
|
716
|
-
browser: "chrome";
|
|
717
|
-
} & import(".").ToOptions<{
|
|
718
|
-
readonly logLevel: {
|
|
719
|
-
cliFlag: "log";
|
|
720
|
-
name: string;
|
|
721
|
-
addedIn: string;
|
|
722
|
-
ssrName: string;
|
|
723
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
724
|
-
docLink: string;
|
|
725
|
-
getValue: ({ commandLine }: {
|
|
726
|
-
commandLine: Record<string, unknown>;
|
|
727
|
-
}) => {
|
|
728
|
-
value: "error" | "info" | "trace" | "verbose" | "warn";
|
|
729
|
-
source: string;
|
|
730
|
-
};
|
|
731
|
-
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
732
|
-
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
733
|
-
reset: () => void;
|
|
734
|
-
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
735
|
-
id: "log";
|
|
736
|
-
};
|
|
737
|
-
readonly onBrowserDownload: {
|
|
738
|
-
name: string;
|
|
739
|
-
addedIn: string;
|
|
740
|
-
cliFlag: "on-browser-download";
|
|
741
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
742
|
-
ssrName: "onBrowserDownload";
|
|
743
|
-
docLink: string;
|
|
744
|
-
type: import(".").OnBrowserDownload;
|
|
745
|
-
getValue: () => never;
|
|
746
|
-
setConfig: () => never;
|
|
747
|
-
id: "on-browser-download";
|
|
748
|
-
};
|
|
749
|
-
readonly chromeMode: {
|
|
750
|
-
cliFlag: "chrome-mode";
|
|
751
|
-
name: string;
|
|
752
|
-
addedIn: string;
|
|
753
|
-
ssrName: string;
|
|
754
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
755
|
-
docLink: string;
|
|
756
|
-
getValue: ({ commandLine }: {
|
|
757
|
-
commandLine: Record<string, unknown>;
|
|
758
|
-
}) => {
|
|
759
|
-
value: "chrome-for-testing" | "headless-shell";
|
|
760
|
-
source: string;
|
|
761
|
-
};
|
|
762
|
-
setConfig: (newChromeMode: "chrome-for-testing" | "headless-shell") => void;
|
|
763
|
-
type: "chrome-for-testing" | "headless-shell";
|
|
764
|
-
id: "chrome-mode";
|
|
765
|
-
};
|
|
766
|
-
}>) => Promise<HeadlessBrowser>;
|
|
644
|
+
internalOpenBrowser: typeof internalOpenBrowser;
|
|
767
645
|
internalSelectComposition: (options: {
|
|
768
646
|
serializedInputPropsWithCustomSchema: string;
|
|
769
647
|
envVariables: Record<string, string>;
|
|
770
648
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
771
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
772
|
-
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
649
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
650
|
+
browserExecutable: import("./browser-executable").BrowserExecutable | null;
|
|
773
651
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
774
652
|
port: number | null;
|
|
775
653
|
indent: boolean;
|
|
@@ -783,7 +661,7 @@ export declare const RenderInternals: {
|
|
|
783
661
|
addedIn: string;
|
|
784
662
|
cliFlag: "media-cache-size-in-bytes";
|
|
785
663
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
786
|
-
ssrName:
|
|
664
|
+
ssrName: 'mediaCacheSizeInBytes';
|
|
787
665
|
docLink: string;
|
|
788
666
|
type: number | null;
|
|
789
667
|
getValue: ({ commandLine }: {
|
|
@@ -803,7 +681,7 @@ export declare const RenderInternals: {
|
|
|
803
681
|
addedIn: string;
|
|
804
682
|
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
805
683
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
806
|
-
ssrName:
|
|
684
|
+
ssrName: 'offthreadVideoCacheSizeInBytes';
|
|
807
685
|
docLink: string;
|
|
808
686
|
type: number | null;
|
|
809
687
|
getValue: ({ commandLine }: {
|
|
@@ -823,7 +701,7 @@ export declare const RenderInternals: {
|
|
|
823
701
|
addedIn: string;
|
|
824
702
|
cliFlag: "offthreadvideo-video-threads";
|
|
825
703
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
826
|
-
ssrName:
|
|
704
|
+
ssrName: 'offthreadVideoThreads';
|
|
827
705
|
docLink: string;
|
|
828
706
|
type: number | null;
|
|
829
707
|
getValue: ({ commandLine }: {
|
|
@@ -848,13 +726,13 @@ export declare const RenderInternals: {
|
|
|
848
726
|
getValue: ({ commandLine }: {
|
|
849
727
|
commandLine: Record<string, unknown>;
|
|
850
728
|
}) => {
|
|
851
|
-
value: "
|
|
729
|
+
value: import("./log-level").LogLevel;
|
|
852
730
|
source: string;
|
|
853
731
|
};
|
|
854
|
-
setConfig: (newLogLevel: "
|
|
732
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
855
733
|
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
856
734
|
reset: () => void;
|
|
857
|
-
type: "
|
|
735
|
+
type: import("./log-level").LogLevel;
|
|
858
736
|
id: "log";
|
|
859
737
|
};
|
|
860
738
|
readonly timeoutInMilliseconds: {
|
|
@@ -862,7 +740,7 @@ export declare const RenderInternals: {
|
|
|
862
740
|
addedIn: string;
|
|
863
741
|
cliFlag: "timeout";
|
|
864
742
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
865
|
-
ssrName:
|
|
743
|
+
ssrName: 'timeoutInMilliseconds';
|
|
866
744
|
docLink: string;
|
|
867
745
|
type: number;
|
|
868
746
|
getValue: ({ commandLine }: {
|
|
@@ -879,7 +757,7 @@ export declare const RenderInternals: {
|
|
|
879
757
|
addedIn: string;
|
|
880
758
|
cliFlag: "binaries-directory";
|
|
881
759
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
882
|
-
ssrName:
|
|
760
|
+
ssrName: 'binariesDirectory';
|
|
883
761
|
docLink: string;
|
|
884
762
|
type: string | null;
|
|
885
763
|
getValue: ({ commandLine }: {
|
|
@@ -896,7 +774,7 @@ export declare const RenderInternals: {
|
|
|
896
774
|
addedIn: string;
|
|
897
775
|
cliFlag: "on-browser-download";
|
|
898
776
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
899
|
-
ssrName:
|
|
777
|
+
ssrName: 'onBrowserDownload';
|
|
900
778
|
docLink: string;
|
|
901
779
|
type: import(".").OnBrowserDownload;
|
|
902
780
|
getValue: () => never;
|
|
@@ -913,11 +791,11 @@ export declare const RenderInternals: {
|
|
|
913
791
|
getValue: ({ commandLine }: {
|
|
914
792
|
commandLine: Record<string, unknown>;
|
|
915
793
|
}) => {
|
|
916
|
-
value: "
|
|
794
|
+
value: import(".").ChromeMode;
|
|
917
795
|
source: string;
|
|
918
796
|
};
|
|
919
|
-
setConfig: (newChromeMode: "
|
|
920
|
-
type: "
|
|
797
|
+
setConfig: (newChromeMode: import(".").ChromeMode) => void;
|
|
798
|
+
type: import(".").ChromeMode;
|
|
921
799
|
id: "chrome-mode";
|
|
922
800
|
};
|
|
923
801
|
}>) => Promise<{
|
|
@@ -928,8 +806,8 @@ export declare const RenderInternals: {
|
|
|
928
806
|
serializedInputPropsWithCustomSchema: string;
|
|
929
807
|
envVariables: Record<string, string>;
|
|
930
808
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
931
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
932
|
-
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
809
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
810
|
+
browserExecutable: import("./browser-executable").BrowserExecutable | null;
|
|
933
811
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
934
812
|
port: number | null;
|
|
935
813
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
@@ -942,7 +820,7 @@ export declare const RenderInternals: {
|
|
|
942
820
|
addedIn: string;
|
|
943
821
|
cliFlag: "media-cache-size-in-bytes";
|
|
944
822
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
945
|
-
ssrName:
|
|
823
|
+
ssrName: 'mediaCacheSizeInBytes';
|
|
946
824
|
docLink: string;
|
|
947
825
|
type: number | null;
|
|
948
826
|
getValue: ({ commandLine }: {
|
|
@@ -962,7 +840,7 @@ export declare const RenderInternals: {
|
|
|
962
840
|
addedIn: string;
|
|
963
841
|
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
964
842
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
965
|
-
ssrName:
|
|
843
|
+
ssrName: 'offthreadVideoCacheSizeInBytes';
|
|
966
844
|
docLink: string;
|
|
967
845
|
type: number | null;
|
|
968
846
|
getValue: ({ commandLine }: {
|
|
@@ -982,7 +860,7 @@ export declare const RenderInternals: {
|
|
|
982
860
|
addedIn: string;
|
|
983
861
|
cliFlag: "offthreadvideo-video-threads";
|
|
984
862
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
985
|
-
ssrName:
|
|
863
|
+
ssrName: 'offthreadVideoThreads';
|
|
986
864
|
docLink: string;
|
|
987
865
|
type: number | null;
|
|
988
866
|
getValue: ({ commandLine }: {
|
|
@@ -1007,13 +885,13 @@ export declare const RenderInternals: {
|
|
|
1007
885
|
getValue: ({ commandLine }: {
|
|
1008
886
|
commandLine: Record<string, unknown>;
|
|
1009
887
|
}) => {
|
|
1010
|
-
value: "
|
|
888
|
+
value: import("./log-level").LogLevel;
|
|
1011
889
|
source: string;
|
|
1012
890
|
};
|
|
1013
|
-
setConfig: (newLogLevel: "
|
|
891
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1014
892
|
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
1015
893
|
reset: () => void;
|
|
1016
|
-
type: "
|
|
894
|
+
type: import("./log-level").LogLevel;
|
|
1017
895
|
id: "log";
|
|
1018
896
|
};
|
|
1019
897
|
readonly timeoutInMilliseconds: {
|
|
@@ -1021,7 +899,7 @@ export declare const RenderInternals: {
|
|
|
1021
899
|
addedIn: string;
|
|
1022
900
|
cliFlag: "timeout";
|
|
1023
901
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1024
|
-
ssrName:
|
|
902
|
+
ssrName: 'timeoutInMilliseconds';
|
|
1025
903
|
docLink: string;
|
|
1026
904
|
type: number;
|
|
1027
905
|
getValue: ({ commandLine }: {
|
|
@@ -1038,7 +916,7 @@ export declare const RenderInternals: {
|
|
|
1038
916
|
addedIn: string;
|
|
1039
917
|
cliFlag: "binaries-directory";
|
|
1040
918
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1041
|
-
ssrName:
|
|
919
|
+
ssrName: 'binariesDirectory';
|
|
1042
920
|
docLink: string;
|
|
1043
921
|
type: string | null;
|
|
1044
922
|
getValue: ({ commandLine }: {
|
|
@@ -1055,7 +933,7 @@ export declare const RenderInternals: {
|
|
|
1055
933
|
addedIn: string;
|
|
1056
934
|
cliFlag: "on-browser-download";
|
|
1057
935
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1058
|
-
ssrName:
|
|
936
|
+
ssrName: 'onBrowserDownload';
|
|
1059
937
|
docLink: string;
|
|
1060
938
|
type: import(".").OnBrowserDownload;
|
|
1061
939
|
getValue: () => never;
|
|
@@ -1072,41 +950,41 @@ export declare const RenderInternals: {
|
|
|
1072
950
|
getValue: ({ commandLine }: {
|
|
1073
951
|
commandLine: Record<string, unknown>;
|
|
1074
952
|
}) => {
|
|
1075
|
-
value: "
|
|
953
|
+
value: import(".").ChromeMode;
|
|
1076
954
|
source: string;
|
|
1077
955
|
};
|
|
1078
|
-
setConfig: (newChromeMode: "
|
|
1079
|
-
type: "
|
|
956
|
+
setConfig: (newChromeMode: import(".").ChromeMode) => void;
|
|
957
|
+
type: import(".").ChromeMode;
|
|
1080
958
|
id: "chrome-mode";
|
|
1081
959
|
};
|
|
1082
960
|
}>) => Promise<import("remotion").VideoConfig[]>;
|
|
1083
961
|
internalRenderFrames: (args_0: {
|
|
1084
|
-
onStart: ((data: import("./types").OnStartData) => void)
|
|
1085
|
-
onFrameUpdate: ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void)
|
|
962
|
+
onStart: null | ((data: import("./types").OnStartData) => void);
|
|
963
|
+
onFrameUpdate: null | ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void);
|
|
1086
964
|
outputDir: string | null;
|
|
1087
965
|
envVariables: Record<string, string>;
|
|
1088
|
-
imageFormat: "
|
|
966
|
+
imageFormat: import("./image-format").VideoImageFormat;
|
|
1089
967
|
jpegQuality: number;
|
|
1090
968
|
frameRange: import("./frame-range").FrameRange | null;
|
|
1091
969
|
frames: number[] | null;
|
|
1092
970
|
outputFramesInSequence: boolean;
|
|
1093
971
|
everyNthFrame: number;
|
|
1094
972
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
1095
|
-
browserExecutable: import("./browser-executable").BrowserExecutable;
|
|
1096
|
-
onBrowserLog: ((log: import("./browser-log").BrowserLog) => void)
|
|
1097
|
-
onFrameBuffer: ((buffer: Buffer, frame: number) => void | Promise<void>)
|
|
1098
|
-
onFrame: ((frame: import("./remotion-shared-memory").CapturedFrame, frameNumber: number) => void | Promise<void>)
|
|
973
|
+
browserExecutable: import("./browser-executable").BrowserExecutable | null;
|
|
974
|
+
onBrowserLog: null | ((log: import("./browser-log").BrowserLog) => void);
|
|
975
|
+
onFrameBuffer: null | ((buffer: Buffer, frame: number) => void | Promise<void>);
|
|
976
|
+
onFrame: null | ((frame: import("./remotion-shared-memory").CapturedFrame, frameNumber: number) => void | Promise<void>);
|
|
1099
977
|
remotionSharedMemory: import("./remotion-shared-memory").RemotionSharedMemoryCapture | null;
|
|
1100
978
|
onDownload: import(".").RenderMediaOnDownload | null;
|
|
1101
979
|
chromiumOptions: import("./open-browser").ChromiumOptions;
|
|
1102
980
|
scale: number;
|
|
1103
981
|
port: number | null;
|
|
1104
982
|
cancelSignal: import("./make-cancel-signal").CancelSignal | undefined;
|
|
1105
|
-
composition: Omit<import("remotion").VideoConfig,
|
|
983
|
+
composition: Omit<import("remotion").VideoConfig, 'props' | 'defaultProps'>;
|
|
1106
984
|
indent: boolean;
|
|
1107
985
|
server: import("./prepare-server").RemotionServer | undefined;
|
|
1108
986
|
muted: boolean;
|
|
1109
|
-
concurrency:
|
|
987
|
+
concurrency: number | string | null;
|
|
1110
988
|
webpackBundleOrServeUrl: string;
|
|
1111
989
|
serializedInputPropsWithCustomSchema: string;
|
|
1112
990
|
serializedResolvedPropsWithCustomSchema: string;
|
|
@@ -1120,7 +998,7 @@ export declare const RenderInternals: {
|
|
|
1120
998
|
addedIn: string;
|
|
1121
999
|
cliFlag: "media-cache-size-in-bytes";
|
|
1122
1000
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1123
|
-
ssrName:
|
|
1001
|
+
ssrName: 'mediaCacheSizeInBytes';
|
|
1124
1002
|
docLink: string;
|
|
1125
1003
|
type: number | null;
|
|
1126
1004
|
getValue: ({ commandLine }: {
|
|
@@ -1160,7 +1038,7 @@ export declare const RenderInternals: {
|
|
|
1160
1038
|
addedIn: string;
|
|
1161
1039
|
cliFlag: "offthreadvideo-cache-size-in-bytes";
|
|
1162
1040
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1163
|
-
ssrName:
|
|
1041
|
+
ssrName: 'offthreadVideoCacheSizeInBytes';
|
|
1164
1042
|
docLink: string;
|
|
1165
1043
|
type: number | null;
|
|
1166
1044
|
getValue: ({ commandLine }: {
|
|
@@ -1180,7 +1058,7 @@ export declare const RenderInternals: {
|
|
|
1180
1058
|
addedIn: string;
|
|
1181
1059
|
cliFlag: "offthreadvideo-video-threads";
|
|
1182
1060
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1183
|
-
ssrName:
|
|
1061
|
+
ssrName: 'offthreadVideoThreads';
|
|
1184
1062
|
docLink: string;
|
|
1185
1063
|
type: number | null;
|
|
1186
1064
|
getValue: ({ commandLine }: {
|
|
@@ -1203,7 +1081,7 @@ export declare const RenderInternals: {
|
|
|
1203
1081
|
ssrName: string;
|
|
1204
1082
|
docLink: string;
|
|
1205
1083
|
type: number;
|
|
1206
|
-
setConfig: (
|
|
1084
|
+
setConfig: typeof import("./options/jpeg-quality").setJpegQuality;
|
|
1207
1085
|
getValue: ({ commandLine }: {
|
|
1208
1086
|
commandLine: Record<string, unknown>;
|
|
1209
1087
|
}) => {
|
|
@@ -1222,13 +1100,13 @@ export declare const RenderInternals: {
|
|
|
1222
1100
|
getValue: ({ commandLine }: {
|
|
1223
1101
|
commandLine: Record<string, unknown>;
|
|
1224
1102
|
}) => {
|
|
1225
|
-
value: "
|
|
1103
|
+
value: import("./log-level").LogLevel;
|
|
1226
1104
|
source: string;
|
|
1227
1105
|
};
|
|
1228
|
-
setConfig: (newLogLevel: "
|
|
1106
|
+
setConfig: (newLogLevel: import("./log-level").LogLevel) => void;
|
|
1229
1107
|
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
1230
1108
|
reset: () => void;
|
|
1231
|
-
type: "
|
|
1109
|
+
type: import("./log-level").LogLevel;
|
|
1232
1110
|
id: "log";
|
|
1233
1111
|
};
|
|
1234
1112
|
readonly timeoutInMilliseconds: {
|
|
@@ -1236,7 +1114,7 @@ export declare const RenderInternals: {
|
|
|
1236
1114
|
addedIn: string;
|
|
1237
1115
|
cliFlag: "timeout";
|
|
1238
1116
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1239
|
-
ssrName:
|
|
1117
|
+
ssrName: 'timeoutInMilliseconds';
|
|
1240
1118
|
docLink: string;
|
|
1241
1119
|
type: number;
|
|
1242
1120
|
getValue: ({ commandLine }: {
|
|
@@ -1253,7 +1131,7 @@ export declare const RenderInternals: {
|
|
|
1253
1131
|
addedIn: string;
|
|
1254
1132
|
cliFlag: "binaries-directory";
|
|
1255
1133
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1256
|
-
ssrName:
|
|
1134
|
+
ssrName: 'binariesDirectory';
|
|
1257
1135
|
docLink: string;
|
|
1258
1136
|
type: string | null;
|
|
1259
1137
|
getValue: ({ commandLine }: {
|
|
@@ -1270,7 +1148,7 @@ export declare const RenderInternals: {
|
|
|
1270
1148
|
addedIn: string;
|
|
1271
1149
|
cliFlag: "on-browser-download";
|
|
1272
1150
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1273
|
-
ssrName:
|
|
1151
|
+
ssrName: 'onBrowserDownload';
|
|
1274
1152
|
docLink: string;
|
|
1275
1153
|
type: import(".").OnBrowserDownload;
|
|
1276
1154
|
getValue: () => never;
|
|
@@ -1287,11 +1165,11 @@ export declare const RenderInternals: {
|
|
|
1287
1165
|
getValue: ({ commandLine }: {
|
|
1288
1166
|
commandLine: Record<string, unknown>;
|
|
1289
1167
|
}) => {
|
|
1290
|
-
value: "
|
|
1168
|
+
value: import(".").ChromeMode;
|
|
1291
1169
|
source: string;
|
|
1292
1170
|
};
|
|
1293
|
-
setConfig: (newChromeMode: "
|
|
1294
|
-
type: "
|
|
1171
|
+
setConfig: (newChromeMode: import(".").ChromeMode) => void;
|
|
1172
|
+
type: import(".").ChromeMode;
|
|
1295
1173
|
id: "chrome-mode";
|
|
1296
1174
|
};
|
|
1297
1175
|
readonly imageSequencePattern: {
|
|
@@ -1320,12 +1198,12 @@ export declare const RenderInternals: {
|
|
|
1320
1198
|
addedIn: string;
|
|
1321
1199
|
cliFlag: "sample-rate";
|
|
1322
1200
|
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1323
|
-
ssrName:
|
|
1201
|
+
ssrName: 'sampleRate';
|
|
1324
1202
|
docLink: string;
|
|
1325
1203
|
type: number;
|
|
1326
1204
|
getValue: ({ commandLine }: {
|
|
1327
1205
|
commandLine: Record<string, unknown>;
|
|
1328
|
-
}, compositionSampleRate?: number | null
|
|
1206
|
+
}, compositionSampleRate?: number | null) => {
|
|
1329
1207
|
value: number;
|
|
1330
1208
|
source: string;
|
|
1331
1209
|
};
|
|
@@ -1339,126 +1217,21 @@ export declare const RenderInternals: {
|
|
|
1339
1217
|
contentType: string;
|
|
1340
1218
|
}>;
|
|
1341
1219
|
validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
|
|
1342
|
-
isIpV6Supported:
|
|
1343
|
-
getChromiumGpuInformation:
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
onLog: import(".").OnLog;
|
|
1352
|
-
}) => Promise<{
|
|
1353
|
-
feature: string;
|
|
1354
|
-
status: string;
|
|
1355
|
-
}[]>;
|
|
1356
|
-
getPortConfig: (preferIpv4: boolean) => {
|
|
1357
|
-
host: string;
|
|
1358
|
-
hostsToTry: string[];
|
|
1359
|
-
};
|
|
1360
|
-
makeDownloadMap: (sampleRate: number) => import("./assets/download-map").DownloadMap;
|
|
1361
|
-
getExtensionFromAudioCodec: (audioCodec: "aac" | "mp3" | "opus" | "pcm-16") => "aac" | "mp3" | "opus" | "wav";
|
|
1362
|
-
makeFileExecutableIfItIsNot: (path: string) => void;
|
|
1363
|
-
resolveAudioCodec: ({ codec, setting, preferLossless, separateAudioTo, }: {
|
|
1364
|
-
setting: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
1365
|
-
codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
1366
|
-
preferLossless: boolean;
|
|
1367
|
-
separateAudioTo: string | null;
|
|
1368
|
-
}) => "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
1369
|
-
getShouldRenderAudio: ({ codec, assetsInfo, enforceAudioTrack, muted, }: {
|
|
1370
|
-
codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
1371
|
-
assetsInfo: import("./assets/download-map").RenderAssetInfo | null;
|
|
1372
|
-
enforceAudioTrack: boolean;
|
|
1373
|
-
muted: boolean;
|
|
1374
|
-
}) => "maybe" | "no" | "yes";
|
|
1375
|
-
codecSupportsMedia: (codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav") => {
|
|
1376
|
-
video: boolean;
|
|
1377
|
-
audio: boolean;
|
|
1378
|
-
};
|
|
1220
|
+
isIpV6Supported: typeof isIpV6Supported;
|
|
1221
|
+
getChromiumGpuInformation: typeof getChromiumGpuInformation;
|
|
1222
|
+
getPortConfig: typeof getPortConfig;
|
|
1223
|
+
makeDownloadMap: typeof makeDownloadMap;
|
|
1224
|
+
getExtensionFromAudioCodec: typeof getExtensionFromAudioCodec;
|
|
1225
|
+
makeFileExecutableIfItIsNot: typeof makeFileExecutableIfItIsNot;
|
|
1226
|
+
resolveAudioCodec: typeof resolveAudioCodec;
|
|
1227
|
+
getShouldRenderAudio: typeof getShouldRenderAudio;
|
|
1228
|
+
codecSupportsMedia: typeof codecSupportsMedia;
|
|
1379
1229
|
toMegabytes: typeof toMegabytes;
|
|
1380
|
-
internalEnsureBrowser:
|
|
1381
|
-
|
|
1382
|
-
indent: boolean;
|
|
1383
|
-
chromeMode: "chrome-for-testing" | "headless-shell";
|
|
1384
|
-
} & import(".").ToOptions<{
|
|
1385
|
-
readonly logLevel: {
|
|
1386
|
-
cliFlag: "log";
|
|
1387
|
-
name: string;
|
|
1388
|
-
addedIn: string;
|
|
1389
|
-
ssrName: string;
|
|
1390
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1391
|
-
docLink: string;
|
|
1392
|
-
getValue: ({ commandLine }: {
|
|
1393
|
-
commandLine: Record<string, unknown>;
|
|
1394
|
-
}) => {
|
|
1395
|
-
value: "error" | "info" | "trace" | "verbose" | "warn";
|
|
1396
|
-
source: string;
|
|
1397
|
-
};
|
|
1398
|
-
setConfig: (newLogLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
1399
|
-
getConfigValue: () => "error" | "info" | "trace" | "verbose" | "warn" | null;
|
|
1400
|
-
reset: () => void;
|
|
1401
|
-
type: "error" | "info" | "trace" | "verbose" | "warn";
|
|
1402
|
-
id: "log";
|
|
1403
|
-
};
|
|
1404
|
-
readonly onBrowserDownload: {
|
|
1405
|
-
name: string;
|
|
1406
|
-
addedIn: string;
|
|
1407
|
-
cliFlag: "on-browser-download";
|
|
1408
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1409
|
-
ssrName: "onBrowserDownload";
|
|
1410
|
-
docLink: string;
|
|
1411
|
-
type: import(".").OnBrowserDownload;
|
|
1412
|
-
getValue: () => never;
|
|
1413
|
-
setConfig: () => never;
|
|
1414
|
-
id: "on-browser-download";
|
|
1415
|
-
};
|
|
1416
|
-
readonly chromeMode: {
|
|
1417
|
-
cliFlag: "chrome-mode";
|
|
1418
|
-
name: string;
|
|
1419
|
-
addedIn: string;
|
|
1420
|
-
ssrName: string;
|
|
1421
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
1422
|
-
docLink: string;
|
|
1423
|
-
getValue: ({ commandLine }: {
|
|
1424
|
-
commandLine: Record<string, unknown>;
|
|
1425
|
-
}) => {
|
|
1426
|
-
value: "chrome-for-testing" | "headless-shell";
|
|
1427
|
-
source: string;
|
|
1428
|
-
};
|
|
1429
|
-
setConfig: (newChromeMode: "chrome-for-testing" | "headless-shell") => void;
|
|
1430
|
-
type: "chrome-for-testing" | "headless-shell";
|
|
1431
|
-
id: "chrome-mode";
|
|
1432
|
-
};
|
|
1433
|
-
}>) => Promise<import("./ensure-browser").BrowserStatus>;
|
|
1434
|
-
printUsefulErrorMessage: (err: Error, logLevel: "error" | "info" | "trace" | "verbose" | "warn", indent: boolean) => void;
|
|
1230
|
+
internalEnsureBrowser: typeof internalEnsureBrowser;
|
|
1231
|
+
printUsefulErrorMessage: typeof printUsefulErrorMessage;
|
|
1435
1232
|
DEFAULT_RENDER_FRAMES_OFFTHREAD_VIDEO_THREADS: number;
|
|
1436
|
-
canConcatVideoSeamlessly:
|
|
1437
|
-
canConcatAudioSeamlessly:
|
|
1438
|
-
internalCombineChunks:
|
|
1439
|
-
outputLocation: string;
|
|
1440
|
-
audioFiles: string[];
|
|
1441
|
-
codec: "aac" | "av1" | "gif" | "h264" | "h264-mkv" | "h264-ts" | "h265" | "mp3" | "prores" | "vp8" | "vp9" | "wav";
|
|
1442
|
-
videoFiles: string[];
|
|
1443
|
-
fps: number;
|
|
1444
|
-
framesPerChunk: number;
|
|
1445
|
-
preferLossless: boolean;
|
|
1446
|
-
compositionDurationInFrames: number;
|
|
1447
|
-
} & {
|
|
1448
|
-
onProgress: import("./combine-chunks").CombineChunksOnProgress;
|
|
1449
|
-
audioBitrate: string | null;
|
|
1450
|
-
numberOfGifLoops: number | null;
|
|
1451
|
-
logLevel: "error" | "info" | "trace" | "verbose" | "warn";
|
|
1452
|
-
binariesDirectory: string | null;
|
|
1453
|
-
audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
|
|
1454
|
-
cancelSignal: import("./make-cancel-signal").CancelSignal | undefined;
|
|
1455
|
-
metadata: Record<string, string> | null;
|
|
1456
|
-
frameRange: import("./frame-range").SingleFrameRange | null;
|
|
1457
|
-
everyNthFrame: number;
|
|
1458
|
-
sampleRate: number;
|
|
1459
|
-
} & {
|
|
1460
|
-
indent: boolean;
|
|
1461
|
-
separateAudioTo: string | null;
|
|
1462
|
-
}) => Promise<void>;
|
|
1233
|
+
canConcatVideoSeamlessly: typeof canConcatVideoSeamlessly;
|
|
1234
|
+
canConcatAudioSeamlessly: typeof canConcatAudioSeamlessly;
|
|
1235
|
+
internalCombineChunks: typeof internalCombineChunks;
|
|
1463
1236
|
defaultOnLog: import(".").OnLog;
|
|
1464
1237
|
};
|