@remotion/cli 4.0.312 → 4.0.314
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/config/image-sequence-pattern.d.ts +2 -0
- package/dist/config/image-sequence-pattern.js +12 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.js +2 -1
- package/dist/parse-command-line.d.ts +1 -0
- package/dist/render-flows/render.d.ts +2 -1
- package/dist/render-flows/render.js +3 -2
- package/dist/render-queue/process-video.js +1 -0
- package/dist/render.js +5 -1
- package/package.json +14 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getImageSequencePattern = exports.setImageSequencePattern = void 0;
|
|
4
|
+
let currentImageSequencePattern;
|
|
5
|
+
const setImageSequencePattern = (pattern) => {
|
|
6
|
+
currentImageSequencePattern = pattern;
|
|
7
|
+
};
|
|
8
|
+
exports.setImageSequencePattern = setImageSequencePattern;
|
|
9
|
+
const getImageSequencePattern = () => {
|
|
10
|
+
return currentImageSequencePattern;
|
|
11
|
+
};
|
|
12
|
+
exports.getImageSequencePattern = getImageSequencePattern;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -304,6 +304,11 @@ declare global {
|
|
|
304
304
|
* Prefer lossless audio encoding. Default: false
|
|
305
305
|
*/
|
|
306
306
|
readonly setPublicPath: (publicPath: string | null) => void;
|
|
307
|
+
/**
|
|
308
|
+
* Set the pattern for naming image sequence files. Supports [frame] and [ext] replacements.
|
|
309
|
+
* @param pattern The pattern string, e.g. 'frame_[frame].[ext]'.
|
|
310
|
+
*/
|
|
311
|
+
readonly setImageSequencePattern: (pattern: string | null) => void;
|
|
307
312
|
}
|
|
308
313
|
}
|
|
309
314
|
type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
|
package/dist/config/index.js
CHANGED
|
@@ -42,7 +42,7 @@ const user_agent_1 = require("./user-agent");
|
|
|
42
42
|
const webpack_caching_2 = require("./webpack-caching");
|
|
43
43
|
const webpack_poll_1 = require("./webpack-poll");
|
|
44
44
|
const width_1 = require("./width");
|
|
45
|
-
const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, } = client_1.BrowserSafeApis.options;
|
|
45
|
+
const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, } = client_1.BrowserSafeApis.options;
|
|
46
46
|
exports.Config = {
|
|
47
47
|
get Bundling() {
|
|
48
48
|
throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
|
|
@@ -134,6 +134,7 @@ exports.Config = {
|
|
|
134
134
|
setBinariesDirectory: binariesDirectoryOption.setConfig,
|
|
135
135
|
setPreferLosslessAudio: preferLosslessOption.setConfig,
|
|
136
136
|
setPublicPath: publicPathOption.setConfig,
|
|
137
|
+
setImageSequencePattern: imageSequencePatternOption.setConfig,
|
|
137
138
|
setHardwareAcceleration: hardwareAccelerationOption.setConfig,
|
|
138
139
|
setEnableCrossSiteIsolation: enableCrossSiteIsolationOption.setConfig,
|
|
139
140
|
};
|
|
@@ -339,6 +339,7 @@ export type CommandLineOptions = {
|
|
|
339
339
|
[folderExpiryOption.cliFlag]: TypeOfOption<typeof folderExpiryOption>;
|
|
340
340
|
[enableMultiprocessOnLinuxOption.cliFlag]: TypeOfOption<typeof enableMultiprocessOnLinuxOption>;
|
|
341
341
|
repro: boolean;
|
|
342
|
+
'image-sequence-pattern': string;
|
|
342
343
|
};
|
|
343
344
|
export declare const parseCommandLine: () => void;
|
|
344
345
|
export {};
|
|
@@ -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, }: {
|
|
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, }: {
|
|
5
5
|
remotionRoot: string;
|
|
6
6
|
fullEntryPoint: string;
|
|
7
7
|
entryPointReason: string;
|
|
@@ -59,4 +59,5 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
|
|
|
59
59
|
hardwareAcceleration: HardwareAccelerationOption;
|
|
60
60
|
chromeMode: ChromeMode;
|
|
61
61
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
62
|
+
imageSequencePattern: string | null;
|
|
62
63
|
}) => 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, }) => {
|
|
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, }) => {
|
|
65
65
|
var _a;
|
|
66
66
|
const isVerbose = renderer_1.RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose');
|
|
67
67
|
(0, progress_bar_1.printFact)('verbose')({
|
|
@@ -350,8 +350,9 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
350
350
|
onBrowserDownload,
|
|
351
351
|
onArtifact,
|
|
352
352
|
chromeMode,
|
|
353
|
+
imageSequencePattern,
|
|
353
354
|
});
|
|
354
|
-
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(
|
|
355
|
+
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`\n▶ ${absoluteOutputFile}`));
|
|
355
356
|
return;
|
|
356
357
|
}
|
|
357
358
|
stitchingProgress = {
|
|
@@ -80,6 +80,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
|
|
|
80
80
|
chromeMode: job.chromeMode,
|
|
81
81
|
offthreadVideoThreads: job.offthreadVideoThreads,
|
|
82
82
|
audioLatencyHint: null,
|
|
83
|
+
imageSequencePattern: null,
|
|
83
84
|
});
|
|
84
85
|
};
|
|
85
86
|
exports.processVideoJob = processVideoJob;
|
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, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, 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;
|
|
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) {
|
|
@@ -108,6 +108,9 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
108
108
|
const audioLatencyHint = audioLatencyHintOption.getValue({
|
|
109
109
|
commandLine: parsed_cli_1.parsedCli,
|
|
110
110
|
}).value;
|
|
111
|
+
const imageSequencePattern = imageSequencePatternOption.getValue({
|
|
112
|
+
commandLine: parsed_cli_1.parsedCli,
|
|
113
|
+
}).value;
|
|
111
114
|
await (0, render_1.renderVideoFlow)({
|
|
112
115
|
fullEntryPoint,
|
|
113
116
|
remotionRoot,
|
|
@@ -172,6 +175,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
172
175
|
chromeMode,
|
|
173
176
|
offthreadVideoThreads,
|
|
174
177
|
audioLatencyHint,
|
|
178
|
+
imageSequencePattern,
|
|
175
179
|
});
|
|
176
180
|
};
|
|
177
181
|
exports.render = render;
|
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.314",
|
|
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/player": "4.0.
|
|
38
|
-
"@remotion/renderer": "4.0.
|
|
39
|
-
"@remotion/
|
|
40
|
-
"@remotion/studio": "4.0.
|
|
41
|
-
"remotion": "4.0.
|
|
42
|
-
"@remotion/studio-server": "4.0.
|
|
43
|
-
"@remotion/
|
|
36
|
+
"@remotion/bundler": "4.0.314",
|
|
37
|
+
"@remotion/player": "4.0.314",
|
|
38
|
+
"@remotion/renderer": "4.0.314",
|
|
39
|
+
"@remotion/media-utils": "4.0.314",
|
|
40
|
+
"@remotion/studio-shared": "4.0.314",
|
|
41
|
+
"remotion": "4.0.314",
|
|
42
|
+
"@remotion/studio-server": "4.0.314",
|
|
43
|
+
"@remotion/studio": "4.0.314"
|
|
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/
|
|
60
|
-
"@remotion/
|
|
61
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
57
|
+
"@remotion/zod-types": "4.0.314",
|
|
58
|
+
"@remotion/tailwind-v4": "4.0.314",
|
|
59
|
+
"@remotion/skia": "4.0.314",
|
|
60
|
+
"@remotion/enable-scss": "4.0.314",
|
|
61
|
+
"@remotion/eslint-config-internal": "4.0.314"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"remotion",
|