@remotion/cli 4.0.350 → 4.0.352
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/benchmark.js +7 -1
- package/dist/compositions.js +5 -1
- package/dist/get-composition-id.d.ts +2 -1
- package/dist/get-composition-id.js +3 -1
- package/dist/get-composition-with-dimension-override.d.ts +2 -1
- package/dist/get-composition-with-dimension-override.js +2 -1
- package/dist/get-render-defaults.js +5 -1
- package/dist/index.d.ts +2 -1
- package/dist/list-of-remotion-packages.js +1 -1
- package/dist/render-flows/render.d.ts +2 -1
- package/dist/render-flows/render.js +4 -1
- package/dist/render-flows/still.d.ts +2 -1
- package/dist/render-flows/still.js +3 -1
- package/dist/render-queue/process-still.js +1 -0
- package/dist/render-queue/process-video.js +1 -0
- package/dist/render.js +5 -1
- package/dist/still.js +5 -1
- package/package.json +14 -14
package/dist/benchmark.js
CHANGED
|
@@ -22,7 +22,7 @@ const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-
|
|
|
22
22
|
const show_compositions_picker_1 = require("./show-compositions-picker");
|
|
23
23
|
const truthy_1 = require("./truthy");
|
|
24
24
|
const DEFAULT_RUNS = 3;
|
|
25
|
-
const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, } = client_1.BrowserSafeApis.options;
|
|
25
|
+
const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
26
26
|
const getValidConcurrency = (cliConcurrency) => {
|
|
27
27
|
const { concurrencies } = parsed_cli_1.parsedCli;
|
|
28
28
|
if (!concurrencies) {
|
|
@@ -204,6 +204,9 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
204
204
|
}).value,
|
|
205
205
|
onBrowserDownload,
|
|
206
206
|
chromeMode,
|
|
207
|
+
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption.getValue({
|
|
208
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
209
|
+
}).value,
|
|
207
210
|
});
|
|
208
211
|
const ids = (remainingArgs[0]
|
|
209
212
|
? String(remainingArgs[0])
|
|
@@ -357,6 +360,9 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
357
360
|
commandLine: parsed_cli_1.parsedCli,
|
|
358
361
|
}).value,
|
|
359
362
|
chromeMode,
|
|
363
|
+
mediaCacheSizeInBytes: mediaCacheSizeInBytesOption.getValue({
|
|
364
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
365
|
+
}).value,
|
|
360
366
|
}, (run, progress) => {
|
|
361
367
|
benchmarkProgress.update(makeBenchmarkProgressBar({
|
|
362
368
|
totalRuns: runs,
|
package/dist/compositions.js
CHANGED
|
@@ -13,7 +13,7 @@ const log_1 = require("./log");
|
|
|
13
13
|
const parsed_cli_1 = require("./parsed-cli");
|
|
14
14
|
const print_compositions_1 = require("./print-compositions");
|
|
15
15
|
const setup_cache_1 = require("./setup-cache");
|
|
16
|
-
const { enableMultiprocessOnLinuxOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, audioLatencyHintOption, } = client_1.BrowserSafeApis.options;
|
|
16
|
+
const { enableMultiprocessOnLinuxOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, glOption, headlessOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, audioLatencyHintOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
17
17
|
const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
18
18
|
const { file, reason } = (0, entry_point_1.findEntryPoint)({
|
|
19
19
|
args,
|
|
@@ -63,6 +63,9 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
|
63
63
|
const audioLatencyHint = audioLatencyHintOption.getValue({
|
|
64
64
|
commandLine: parsed_cli_1.parsedCli,
|
|
65
65
|
}).value;
|
|
66
|
+
const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
|
|
67
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
68
|
+
}).value;
|
|
66
69
|
const { urlOrBundle: bundled, cleanup: cleanupBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({
|
|
67
70
|
remotionRoot,
|
|
68
71
|
fullPath: file,
|
|
@@ -110,6 +113,7 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
|
110
113
|
quiet: (0, parsed_cli_1.quietFlagProvided)(),
|
|
111
114
|
}),
|
|
112
115
|
chromeMode,
|
|
116
|
+
mediaCacheSizeInBytes,
|
|
113
117
|
});
|
|
114
118
|
(0, print_compositions_1.printCompositions)(compositions, logLevel);
|
|
115
119
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BrowserExecutable, ChromeMode, ChromiumOptions, HeadlessBrowser, LogLevel, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
|
|
2
2
|
import type { VideoConfig } from 'remotion';
|
|
3
|
-
export declare const getCompositionId: ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, }: {
|
|
3
|
+
export declare const getCompositionId: ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
4
4
|
args: (string | number)[];
|
|
5
5
|
compositionIdFromUi: string | null;
|
|
6
6
|
serializedInputPropsWithCustomSchema: string;
|
|
@@ -19,6 +19,7 @@ export declare const getCompositionId: ({ args, compositionIdFromUi, serializedI
|
|
|
19
19
|
binariesDirectory: string | null;
|
|
20
20
|
onBrowserDownload: OnBrowserDownload;
|
|
21
21
|
chromeMode: ChromeMode;
|
|
22
|
+
mediaCacheSizeInBytes: number | null;
|
|
22
23
|
}) => Promise<{
|
|
23
24
|
compositionId: string;
|
|
24
25
|
reason: string;
|
|
@@ -23,7 +23,7 @@ const getCompName = ({ cliArgs, compositionIdFromUi, }) => {
|
|
|
23
23
|
reason: 'Passed as argument',
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
const getCompositionId = async ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, }) => {
|
|
26
|
+
const getCompositionId = async ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }) => {
|
|
27
27
|
const compNameResult = getCompName({
|
|
28
28
|
cliArgs: args,
|
|
29
29
|
compositionIdFromUi,
|
|
@@ -49,6 +49,7 @@ const getCompositionId = async ({ args, compositionIdFromUi, serializedInputProp
|
|
|
49
49
|
onBrowserDownload,
|
|
50
50
|
onServeUrlVisited: () => undefined,
|
|
51
51
|
chromeMode,
|
|
52
|
+
mediaCacheSizeInBytes,
|
|
52
53
|
});
|
|
53
54
|
if (propsSize > 10000000) {
|
|
54
55
|
log_1.Log.warn({
|
|
@@ -84,6 +85,7 @@ const getCompositionId = async ({ args, compositionIdFromUi, serializedInputProp
|
|
|
84
85
|
binariesDirectory,
|
|
85
86
|
onBrowserDownload,
|
|
86
87
|
chromeMode,
|
|
88
|
+
mediaCacheSizeInBytes,
|
|
87
89
|
});
|
|
88
90
|
if (comps.length === 1) {
|
|
89
91
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BrowserExecutable, ChromeMode, ChromiumOptions, HeadlessBrowser, LogLevel, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
|
|
2
2
|
import type { VideoConfig } from 'remotion';
|
|
3
|
-
export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, }: {
|
|
3
|
+
export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
4
4
|
height: number | null;
|
|
5
5
|
width: number | null;
|
|
6
6
|
args: (string | number)[];
|
|
@@ -21,6 +21,7 @@ export declare const getCompositionWithDimensionOverride: ({ height, width, args
|
|
|
21
21
|
binariesDirectory: string | null;
|
|
22
22
|
onBrowserDownload: OnBrowserDownload;
|
|
23
23
|
chromeMode: ChromeMode;
|
|
24
|
+
mediaCacheSizeInBytes: number | null;
|
|
24
25
|
}) => Promise<{
|
|
25
26
|
compositionId: string;
|
|
26
27
|
reason: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCompositionWithDimensionOverride = void 0;
|
|
4
4
|
const get_composition_id_1 = require("./get-composition-id");
|
|
5
|
-
const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, }) => {
|
|
5
|
+
const getCompositionWithDimensionOverride = async ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }) => {
|
|
6
6
|
const returnValue = await (0, get_composition_id_1.getCompositionId)({
|
|
7
7
|
args,
|
|
8
8
|
compositionIdFromUi,
|
|
@@ -22,6 +22,7 @@ const getCompositionWithDimensionOverride = async ({ height, width, args, compos
|
|
|
22
22
|
onBrowserDownload,
|
|
23
23
|
chromeMode,
|
|
24
24
|
offthreadVideoThreads,
|
|
25
|
+
mediaCacheSizeInBytes,
|
|
25
26
|
});
|
|
26
27
|
return {
|
|
27
28
|
...returnValue,
|
|
@@ -5,7 +5,7 @@ const renderer_1 = require("@remotion/renderer");
|
|
|
5
5
|
const client_1 = require("@remotion/renderer/client");
|
|
6
6
|
const config_1 = require("./config");
|
|
7
7
|
const parsed_cli_1 = require("./parsed-cli");
|
|
8
|
-
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, } = client_1.BrowserSafeApis.options;
|
|
8
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
9
9
|
const getRenderDefaults = () => {
|
|
10
10
|
var _a;
|
|
11
11
|
const defaultJpegQuality = jpegQualityOption.getValue({
|
|
@@ -82,6 +82,9 @@ const getRenderDefaults = () => {
|
|
|
82
82
|
const chromeMode = chromeModeOption.getValue({
|
|
83
83
|
commandLine: parsed_cli_1.parsedCli,
|
|
84
84
|
}).value;
|
|
85
|
+
const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
|
|
86
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
87
|
+
}).value;
|
|
85
88
|
const everyNthFrame = config_1.ConfigInternals.getEveryNthFrame();
|
|
86
89
|
const stillImageFormat = config_1.ConfigInternals.getUserPreferredStillImageFormat();
|
|
87
90
|
const videoImageFormat = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
|
|
@@ -129,6 +132,7 @@ const getRenderDefaults = () => {
|
|
|
129
132
|
metadata,
|
|
130
133
|
hardwareAcceleration,
|
|
131
134
|
chromeMode,
|
|
135
|
+
mediaCacheSizeInBytes,
|
|
132
136
|
};
|
|
133
137
|
};
|
|
134
138
|
exports.getRenderDefaults = getRenderDefaults;
|
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export declare const CliInternals: {
|
|
|
141
141
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
142
142
|
logLevel: import("@remotion/renderer").LogLevel;
|
|
143
143
|
}) => boolean;
|
|
144
|
-
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, }: {
|
|
144
|
+
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
|
|
145
145
|
height: number | null;
|
|
146
146
|
width: number | null;
|
|
147
147
|
args: (string | number)[];
|
|
@@ -162,6 +162,7 @@ export declare const CliInternals: {
|
|
|
162
162
|
binariesDirectory: string | null;
|
|
163
163
|
onBrowserDownload: import("@remotion/renderer").OnBrowserDownload;
|
|
164
164
|
chromeMode: import("@remotion/renderer").ChromeMode;
|
|
165
|
+
mediaCacheSizeInBytes: number | null;
|
|
165
166
|
}) => Promise<{
|
|
166
167
|
compositionId: string;
|
|
167
168
|
reason: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AudioCodec, Browser, BrowserExecutable, CancelSignal, ChromeMode, ChromiumOptions, Codec, ColorSpace, Crf, FfmpegOverrideFn, FrameRange, LogLevel, NumberOfGifLoops, PixelFormat, ProResProfile, VideoImageFormat, X264Preset } from '@remotion/renderer';
|
|
2
2
|
import type { HardwareAccelerationOption } from '@remotion/renderer/client';
|
|
3
3
|
import type { JobProgressCallback } from '@remotion/studio-server';
|
|
4
|
-
export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, metadata, hardwareAcceleration, chromeMode, audioLatencyHint, imageSequencePattern, }: {
|
|
4
|
+
export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, metadata, hardwareAcceleration, chromeMode, audioLatencyHint, imageSequencePattern, mediaCacheSizeInBytes, }: {
|
|
5
5
|
remotionRoot: string;
|
|
6
6
|
fullEntryPoint: string;
|
|
7
7
|
entryPointReason: string;
|
|
@@ -60,4 +60,5 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
|
|
|
60
60
|
chromeMode: ChromeMode;
|
|
61
61
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
62
62
|
imageSequencePattern: string | null;
|
|
63
|
+
mediaCacheSizeInBytes: number | null;
|
|
63
64
|
}) => Promise<void>;
|
|
@@ -61,7 +61,7 @@ const setup_cache_1 = require("../setup-cache");
|
|
|
61
61
|
const should_use_non_overlaying_logger_1 = require("../should-use-non-overlaying-logger");
|
|
62
62
|
const truthy_1 = require("../truthy");
|
|
63
63
|
const user_passed_output_location_1 = require("../user-passed-output-location");
|
|
64
|
-
const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, metadata, hardwareAcceleration, chromeMode, audioLatencyHint, imageSequencePattern, }) => {
|
|
64
|
+
const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, metadata, hardwareAcceleration, chromeMode, audioLatencyHint, imageSequencePattern, mediaCacheSizeInBytes, }) => {
|
|
65
65
|
var _a;
|
|
66
66
|
const isVerbose = renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose');
|
|
67
67
|
(0, progress_bar_1.printFact)('verbose')({
|
|
@@ -203,6 +203,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
203
203
|
binariesDirectory,
|
|
204
204
|
onBrowserDownload,
|
|
205
205
|
chromeMode,
|
|
206
|
+
mediaCacheSizeInBytes,
|
|
206
207
|
});
|
|
207
208
|
const { onArtifact } = (0, on_artifact_1.handleOnArtifact)({
|
|
208
209
|
artifactState,
|
|
@@ -351,6 +352,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
351
352
|
onArtifact,
|
|
352
353
|
chromeMode,
|
|
353
354
|
imageSequencePattern,
|
|
355
|
+
mediaCacheSizeInBytes,
|
|
354
356
|
});
|
|
355
357
|
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`\n▶ ${absoluteOutputFile}`));
|
|
356
358
|
return;
|
|
@@ -439,6 +441,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
439
441
|
metadata: metadata !== null && metadata !== void 0 ? metadata : null,
|
|
440
442
|
hardwareAcceleration,
|
|
441
443
|
chromeMode,
|
|
444
|
+
mediaCacheSizeInBytes,
|
|
442
445
|
});
|
|
443
446
|
if (!updatesDontOverwrite) {
|
|
444
447
|
updateRenderProgress({ newline: true, printToConsole: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Browser, BrowserExecutable, CancelSignal, ChromeMode, ChromiumOptions, LogLevel, StillImageFormat } from '@remotion/renderer';
|
|
2
2
|
import type { JobProgressCallback } from '@remotion/studio-server';
|
|
3
|
-
export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, publicPath, chromeMode, offthreadVideoThreads, audioLatencyHint, }: {
|
|
3
|
+
export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, publicPath, chromeMode, offthreadVideoThreads, audioLatencyHint, mediaCacheSizeInBytes, }: {
|
|
4
4
|
remotionRoot: string;
|
|
5
5
|
fullEntryPoint: string;
|
|
6
6
|
entryPointReason: string;
|
|
@@ -33,4 +33,5 @@ export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPoin
|
|
|
33
33
|
publicPath: string | null;
|
|
34
34
|
chromeMode: ChromeMode;
|
|
35
35
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
36
|
+
mediaCacheSizeInBytes: number | null;
|
|
36
37
|
}) => Promise<void>;
|
|
@@ -27,7 +27,7 @@ const setup_cache_1 = require("../setup-cache");
|
|
|
27
27
|
const should_use_non_overlaying_logger_1 = require("../should-use-non-overlaying-logger");
|
|
28
28
|
const truthy_1 = require("../truthy");
|
|
29
29
|
const user_passed_output_location_1 = require("../user-passed-output-location");
|
|
30
|
-
const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, publicPath, chromeMode, offthreadVideoThreads, audioLatencyHint, }) => {
|
|
30
|
+
const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, publicPath, chromeMode, offthreadVideoThreads, audioLatencyHint, mediaCacheSizeInBytes, }) => {
|
|
31
31
|
var _a, _b;
|
|
32
32
|
const isVerbose = renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose');
|
|
33
33
|
log_1.Log.verbose({ indent, logLevel }, chalk_1.chalk.gray(`Entry point = ${fullEntryPoint} (${entryPointReason})`));
|
|
@@ -137,6 +137,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
137
137
|
binariesDirectory,
|
|
138
138
|
onBrowserDownload,
|
|
139
139
|
chromeMode,
|
|
140
|
+
mediaCacheSizeInBytes,
|
|
140
141
|
});
|
|
141
142
|
const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalStillImageFormat)({
|
|
142
143
|
cliFlag: (_a = parsed_cli_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
|
|
@@ -248,6 +249,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
248
249
|
onArtifact,
|
|
249
250
|
chromeMode,
|
|
250
251
|
offthreadVideoThreads,
|
|
252
|
+
mediaCacheSizeInBytes,
|
|
251
253
|
});
|
|
252
254
|
aggregate.rendering = {
|
|
253
255
|
frames: 1,
|
|
@@ -54,6 +54,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
|
|
|
54
54
|
publicPath: null,
|
|
55
55
|
chromeMode: job.chromeMode,
|
|
56
56
|
audioLatencyHint: null,
|
|
57
|
+
mediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
57
58
|
});
|
|
58
59
|
};
|
|
59
60
|
exports.processStill = processStill;
|
|
@@ -79,6 +79,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
|
|
|
79
79
|
hardwareAcceleration: job.type === 'video' ? job.hardwareAcceleration : 'disable',
|
|
80
80
|
chromeMode: job.chromeMode,
|
|
81
81
|
offthreadVideoThreads: job.offthreadVideoThreads,
|
|
82
|
+
mediaCacheSizeInBytes: job.mediaCacheSizeInBytes,
|
|
82
83
|
audioLatencyHint: null,
|
|
83
84
|
imageSequencePattern: null,
|
|
84
85
|
});
|
package/dist/render.js
CHANGED
|
@@ -11,7 +11,7 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
11
11
|
const log_1 = require("./log");
|
|
12
12
|
const parsed_cli_1 = require("./parsed-cli");
|
|
13
13
|
const render_1 = require("./render-flows/render");
|
|
14
|
-
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
15
15
|
const render = async (remotionRoot, args, logLevel) => {
|
|
16
16
|
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
|
|
17
17
|
if (!file) {
|
|
@@ -114,6 +114,9 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
114
114
|
const imageSequencePattern = imageSequencePatternOption.getValue({
|
|
115
115
|
commandLine: parsed_cli_1.parsedCli,
|
|
116
116
|
}).value;
|
|
117
|
+
const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
|
|
118
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
119
|
+
}).value;
|
|
117
120
|
await (0, render_1.renderVideoFlow)({
|
|
118
121
|
fullEntryPoint,
|
|
119
122
|
remotionRoot,
|
|
@@ -167,6 +170,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
167
170
|
audioCodec,
|
|
168
171
|
disallowParallelEncoding,
|
|
169
172
|
offthreadVideoCacheSizeInBytes,
|
|
173
|
+
mediaCacheSizeInBytes,
|
|
170
174
|
colorSpace,
|
|
171
175
|
repro,
|
|
172
176
|
binariesDirectory,
|
package/dist/still.js
CHANGED
|
@@ -11,7 +11,7 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
11
11
|
const log_1 = require("./log");
|
|
12
12
|
const parsed_cli_1 = require("./parsed-cli");
|
|
13
13
|
const still_1 = require("./render-flows/still");
|
|
14
|
-
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, publicPathOption, publicDirOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, mediaCacheSizeInBytesOption, } = client_1.BrowserSafeApis.options;
|
|
15
15
|
const still = async (remotionRoot, args, logLevel) => {
|
|
16
16
|
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
|
|
17
17
|
if (!file) {
|
|
@@ -41,6 +41,9 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
41
41
|
const offthreadVideoCacheSizeInBytes = offthreadVideoCacheSizeInBytesOption.getValue({
|
|
42
42
|
commandLine: parsed_cli_1.parsedCli,
|
|
43
43
|
}).value;
|
|
44
|
+
const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
|
|
45
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
46
|
+
}).value;
|
|
44
47
|
const offthreadVideoThreads = offthreadVideoThreadsOption.getValue({
|
|
45
48
|
commandLine: parsed_cli_1.parsedCli,
|
|
46
49
|
}).value;
|
|
@@ -115,6 +118,7 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
115
118
|
publicPath,
|
|
116
119
|
chromeMode,
|
|
117
120
|
audioLatencyHint,
|
|
121
|
+
mediaCacheSizeInBytes,
|
|
118
122
|
});
|
|
119
123
|
};
|
|
120
124
|
exports.still = still;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cli"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cli",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.352",
|
|
7
7
|
"description": "Control Remotion features using the `npx remotion` command",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"dotenv": "9.0.2",
|
|
34
34
|
"minimist": "1.2.6",
|
|
35
35
|
"prompts": "2.4.2",
|
|
36
|
-
"@remotion/bundler": "4.0.
|
|
37
|
-
"@remotion/media-utils": "4.0.
|
|
38
|
-
"@remotion/player": "4.0.
|
|
39
|
-
"@remotion/
|
|
40
|
-
"@remotion/
|
|
41
|
-
"@remotion/studio
|
|
42
|
-
"remotion": "4.0.
|
|
43
|
-
"
|
|
36
|
+
"@remotion/bundler": "4.0.352",
|
|
37
|
+
"@remotion/media-utils": "4.0.352",
|
|
38
|
+
"@remotion/player": "4.0.352",
|
|
39
|
+
"@remotion/studio-shared": "4.0.352",
|
|
40
|
+
"@remotion/renderer": "4.0.352",
|
|
41
|
+
"@remotion/studio": "4.0.352",
|
|
42
|
+
"@remotion/studio-server": "4.0.352",
|
|
43
|
+
"remotion": "4.0.352"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.8.0",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"react-dom": "19.0.0",
|
|
55
55
|
"zod": "3.22.3",
|
|
56
56
|
"eslint": "9.19.0",
|
|
57
|
-
"@remotion/zod-types": "4.0.
|
|
58
|
-
"@remotion/tailwind-v4": "4.0.
|
|
59
|
-
"@remotion/enable-scss": "4.0.
|
|
60
|
-
"@remotion/skia": "4.0.
|
|
61
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
57
|
+
"@remotion/zod-types": "4.0.352",
|
|
58
|
+
"@remotion/tailwind-v4": "4.0.352",
|
|
59
|
+
"@remotion/enable-scss": "4.0.352",
|
|
60
|
+
"@remotion/skia": "4.0.352",
|
|
61
|
+
"@remotion/eslint-config-internal": "4.0.352"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"remotion",
|