@remotion/cli 4.0.110 → 4.0.112
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 +2 -0
- package/dist/bundle.js +2 -0
- package/dist/compositions.js +2 -0
- package/dist/config/buffer-state-delay-in-milliseconds.d.ts +2 -0
- package/dist/config/buffer-state-delay-in-milliseconds.js +12 -0
- package/dist/config/index.d.ts +6 -1
- package/dist/config/index.js +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/render-flows/render.js +2 -0
- package/dist/render-flows/still.js +2 -0
- package/dist/setup-cache.d.ts +6 -2
- package/dist/setup-cache.js +6 -2
- package/dist/studio.js +2 -2
- package/package.json +10 -10
package/dist/benchmark.js
CHANGED
|
@@ -129,6 +129,8 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
|
|
|
129
129
|
outDir: null,
|
|
130
130
|
// Not needed for benchmark
|
|
131
131
|
gitSource: null,
|
|
132
|
+
bufferStateDelayInMilliseconds: null,
|
|
133
|
+
maxTimlineTracks: null,
|
|
132
134
|
});
|
|
133
135
|
(0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
|
|
134
136
|
const puppeteerInstance = await browserInstance;
|
package/dist/bundle.js
CHANGED
|
@@ -83,6 +83,8 @@ const bundleCommand = async (remotionRoot, args, logLevel) => {
|
|
|
83
83
|
quietFlag: (0, parse_command_line_1.quietFlagProvided)(),
|
|
84
84
|
outDir: outputPath,
|
|
85
85
|
gitSource,
|
|
86
|
+
bufferStateDelayInMilliseconds: null,
|
|
87
|
+
maxTimlineTracks: null,
|
|
86
88
|
});
|
|
87
89
|
log_1.Log.infoAdvanced({ indent: false, logLevel }, chalk_1.chalk.blue(`${existed ? '○' : '+'} ${output}`));
|
|
88
90
|
if (!gitignoreFolder) {
|
package/dist/compositions.js
CHANGED
|
@@ -43,6 +43,8 @@ const listCompositionsCommand = async (remotionRoot, args, logLevel) => {
|
|
|
43
43
|
outDir: null,
|
|
44
44
|
// Not needed for compositions
|
|
45
45
|
gitSource: null,
|
|
46
|
+
bufferStateDelayInMilliseconds: null,
|
|
47
|
+
maxTimlineTracks: null,
|
|
46
48
|
});
|
|
47
49
|
(0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
|
|
48
50
|
const compositions = await renderer_1.RenderInternals.internalGetCompositions({
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setBufferStateDelayInMilliseconds = exports.getBufferStateDelayInMilliseconds = void 0;
|
|
4
|
+
let value = null;
|
|
5
|
+
const getBufferStateDelayInMilliseconds = () => {
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
exports.getBufferStateDelayInMilliseconds = getBufferStateDelayInMilliseconds;
|
|
9
|
+
const setBufferStateDelayInMilliseconds = (val) => {
|
|
10
|
+
value = val;
|
|
11
|
+
};
|
|
12
|
+
exports.setBufferStateDelayInMilliseconds = setBufferStateDelayInMilliseconds;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -288,9 +288,13 @@ type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
|
|
|
288
288
|
setOffthreadVideoCacheSizeInBytes: (size: number | null) => void;
|
|
289
289
|
setDeleteAfter: (day: '1-day' | '3-days' | '7-days' | '30-days' | null) => void;
|
|
290
290
|
/**
|
|
291
|
-
*
|
|
291
|
+
* Set whether S3 buckets should be allowed to expire.
|
|
292
292
|
*/
|
|
293
293
|
setEnableFolderExpiry: (value: boolean | null) => void;
|
|
294
|
+
/**
|
|
295
|
+
* Set the amount of milliseconds after which the Player in the Studio will display a buffering UI after the Player has entered a buffer state.
|
|
296
|
+
*/
|
|
297
|
+
setBufferStateDelayInMilliseconds: (delay: number | null) => void;
|
|
294
298
|
/**
|
|
295
299
|
* @deprecated 'The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.'
|
|
296
300
|
*/
|
|
@@ -380,4 +384,5 @@ export declare const ConfigInternals: {
|
|
|
380
384
|
getColorSpace: () => "default" | "bt709" | "bt2020-ncl";
|
|
381
385
|
getEnableFolderExpiry: () => boolean | null;
|
|
382
386
|
getChromiumMultiProcessOnLinux: () => boolean;
|
|
387
|
+
getBufferStateDelayInMilliseconds: () => number | null;
|
|
383
388
|
};
|
package/dist/config/index.js
CHANGED
|
@@ -53,6 +53,7 @@ const audio_codec_1 = require("./audio-codec");
|
|
|
53
53
|
const beep_on_finish_1 = require("./beep-on-finish");
|
|
54
54
|
const bitrate_1 = require("./bitrate");
|
|
55
55
|
const browser_executable_2 = require("./browser-executable");
|
|
56
|
+
const buffer_state_delay_in_milliseconds_1 = require("./buffer-state-delay-in-milliseconds");
|
|
56
57
|
const chromium_flags_2 = require("./chromium-flags");
|
|
57
58
|
const codec_2 = require("./codec");
|
|
58
59
|
const color_space_1 = require("./color-space");
|
|
@@ -113,6 +114,7 @@ exports.Config = {
|
|
|
113
114
|
setNumberOfSharedAudioTags: number_of_shared_audio_tags_1.setNumberOfSharedAudioTags,
|
|
114
115
|
setWebpackPollingInMilliseconds: webpack_poll_1.setWebpackPollingInMilliseconds,
|
|
115
116
|
setShouldOpenBrowser: open_browser_1.setShouldOpenBrowser,
|
|
117
|
+
setBufferStateDelayInMilliseconds: buffer_state_delay_in_milliseconds_1.setBufferStateDelayInMilliseconds,
|
|
116
118
|
overrideWebpackConfig: override_webpack_2.overrideWebpackConfig,
|
|
117
119
|
setCachingEnabled: webpack_caching_2.setWebpackCaching,
|
|
118
120
|
setPort: preview_server_2.setPort,
|
|
@@ -231,4 +233,5 @@ exports.ConfigInternals = {
|
|
|
231
233
|
getColorSpace: color_space_1.getColorSpace,
|
|
232
234
|
getEnableFolderExpiry: enable_folder_expiry_1.getEnableFolderExpiry,
|
|
233
235
|
getChromiumMultiProcessOnLinux: chromium_flags_1.getChromiumMultiProcessOnLinux,
|
|
236
|
+
getBufferStateDelayInMilliseconds: buffer_state_delay_in_milliseconds_1.getBufferStateDelayInMilliseconds,
|
|
234
237
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export declare const CliInternals: {
|
|
|
124
124
|
parsedCli: {
|
|
125
125
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
126
126
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
127
|
-
"image-format": "png" | "jpeg" | "
|
|
127
|
+
"image-format": "png" | "jpeg" | "pdf" | "webp" | "none";
|
|
128
128
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
129
129
|
"x264-preset": "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo";
|
|
130
130
|
"bundle-cache": string;
|
|
@@ -194,7 +194,7 @@ export declare const CliInternals: {
|
|
|
194
194
|
downloadName: string | null;
|
|
195
195
|
outName: string | null;
|
|
196
196
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
197
|
-
cliFlag: "png" | "jpeg" | "
|
|
197
|
+
cliFlag: "png" | "jpeg" | "pdf" | "webp" | "none" | null;
|
|
198
198
|
isLambda: boolean;
|
|
199
199
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
200
200
|
}) => {
|
|
@@ -122,6 +122,8 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
122
122
|
outDir: null,
|
|
123
123
|
// Not needed for render
|
|
124
124
|
gitSource: null,
|
|
125
|
+
bufferStateDelayInMilliseconds: null,
|
|
126
|
+
maxTimlineTracks: null,
|
|
125
127
|
});
|
|
126
128
|
addCleanupCallback(() => cleanupBundle());
|
|
127
129
|
const onDownload = (0, make_on_download_1.makeOnDownload)({
|
|
@@ -86,6 +86,8 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
86
86
|
outDir: null,
|
|
87
87
|
// Not needed for still
|
|
88
88
|
gitSource: null,
|
|
89
|
+
bufferStateDelayInMilliseconds: null,
|
|
90
|
+
maxTimlineTracks: null,
|
|
89
91
|
});
|
|
90
92
|
const server = await renderer_1.RenderInternals.prepareServer({
|
|
91
93
|
concurrency: 1,
|
package/dist/setup-cache.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LogLevel } from '@remotion/renderer';
|
|
2
2
|
import type { GitSource } from '@remotion/studio';
|
|
3
3
|
import type { BundlingState, CopyingState } from '@remotion/studio-server';
|
|
4
|
-
export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, }: {
|
|
4
|
+
export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimlineTracks, }: {
|
|
5
5
|
fullPath: string;
|
|
6
6
|
remotionRoot: string;
|
|
7
7
|
publicDir: string | null;
|
|
@@ -18,11 +18,13 @@ export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publi
|
|
|
18
18
|
quietFlag: boolean;
|
|
19
19
|
outDir: string | null;
|
|
20
20
|
gitSource: GitSource | null;
|
|
21
|
+
bufferStateDelayInMilliseconds: number | null;
|
|
22
|
+
maxTimlineTracks: number | null;
|
|
21
23
|
}) => Promise<{
|
|
22
24
|
urlOrBundle: string;
|
|
23
25
|
cleanup: () => void;
|
|
24
26
|
}>;
|
|
25
|
-
export declare const bundleOnCli: ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, }: {
|
|
27
|
+
export declare const bundleOnCli: ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, maxTimlineTracks, bufferStateDelayInMilliseconds, }: {
|
|
26
28
|
fullPath: string;
|
|
27
29
|
remotionRoot: string;
|
|
28
30
|
publicDir: string | null;
|
|
@@ -39,4 +41,6 @@ export declare const bundleOnCli: ({ fullPath, remotionRoot, publicDir, onProgre
|
|
|
39
41
|
quietFlag: boolean;
|
|
40
42
|
outDir: string | null;
|
|
41
43
|
gitSource: GitSource | null;
|
|
44
|
+
maxTimlineTracks: number | null;
|
|
45
|
+
bufferStateDelayInMilliseconds: number | null;
|
|
42
46
|
}) => Promise<string>;
|
package/dist/setup-cache.js
CHANGED
|
@@ -7,7 +7,7 @@ const config_1 = require("./config");
|
|
|
7
7
|
const log_1 = require("./log");
|
|
8
8
|
const progress_bar_1 = require("./progress-bar");
|
|
9
9
|
const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
|
|
10
|
-
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, }) => {
|
|
10
|
+
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimlineTracks, }) => {
|
|
11
11
|
if (renderer_1.RenderInternals.isServeUrl(fullPath)) {
|
|
12
12
|
onProgress({
|
|
13
13
|
bundling: {
|
|
@@ -38,6 +38,8 @@ const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, on
|
|
|
38
38
|
quietFlag,
|
|
39
39
|
outDir,
|
|
40
40
|
gitSource,
|
|
41
|
+
bufferStateDelayInMilliseconds,
|
|
42
|
+
maxTimlineTracks,
|
|
41
43
|
});
|
|
42
44
|
return {
|
|
43
45
|
urlOrBundle: bundled,
|
|
@@ -45,7 +47,7 @@ const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, on
|
|
|
45
47
|
};
|
|
46
48
|
};
|
|
47
49
|
exports.bundleOnCliOrTakeServeUrl = bundleOnCliOrTakeServeUrl;
|
|
48
|
-
const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, }) => {
|
|
50
|
+
const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, maxTimlineTracks, bufferStateDelayInMilliseconds, }) => {
|
|
49
51
|
var _a;
|
|
50
52
|
const shouldCache = config_1.ConfigInternals.getWebpackCaching();
|
|
51
53
|
const symlinkState = {
|
|
@@ -102,6 +104,8 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
102
104
|
onProgress,
|
|
103
105
|
options,
|
|
104
106
|
resolvedRemotionRoot: remotionRoot,
|
|
107
|
+
bufferStateDelayInMilliseconds,
|
|
108
|
+
maxTimelineTracks: maxTimlineTracks,
|
|
105
109
|
});
|
|
106
110
|
const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash);
|
|
107
111
|
if (cacheExistedBefore !== 'does-not-exist' && !shouldCache) {
|
package/dist/studio.js
CHANGED
|
@@ -53,7 +53,6 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
}, logLevel, false);
|
|
56
|
-
const maxTimelineTracks = config_1.ConfigInternals.getMaxTimelineTracks();
|
|
57
56
|
const keyboardShortcutsEnabled = config_1.ConfigInternals.getKeyboardShortcutsEnabled();
|
|
58
57
|
const gitSource = (0, get_github_repository_1.getGitSource)(remotionRoot);
|
|
59
58
|
await studio_server_1.StudioServerInternals.startStudio({
|
|
@@ -67,7 +66,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
67
66
|
getEnvVariables: () => envVariables,
|
|
68
67
|
desiredPort,
|
|
69
68
|
keyboardShortcutsEnabled,
|
|
70
|
-
maxTimelineTracks,
|
|
69
|
+
maxTimelineTracks: config_1.ConfigInternals.getMaxTimelineTracks(),
|
|
71
70
|
remotionRoot,
|
|
72
71
|
userPassedPublicDir: config_1.ConfigInternals.getPublicDir(),
|
|
73
72
|
webpackOverride: config_1.ConfigInternals.getWebpackOverrideFn(),
|
|
@@ -84,6 +83,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
84
83
|
// @ts-expect-error
|
|
85
84
|
parsedCliOpen: parse_command_line_1.parsedCli.open,
|
|
86
85
|
gitSource,
|
|
86
|
+
bufferStateDelayInMilliseconds: config_1.ConfigInternals.getBufferStateDelayInMilliseconds(),
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
exports.studioCommand = studioCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.112",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"dotenv": "9.0.2",
|
|
32
32
|
"minimist": "1.2.6",
|
|
33
33
|
"prompts": "2.4.2",
|
|
34
|
-
"@remotion/bundler": "4.0.
|
|
35
|
-
"@remotion/
|
|
36
|
-
"@remotion/renderer": "4.0.
|
|
37
|
-
"@remotion/
|
|
38
|
-
"@remotion/studio
|
|
39
|
-
"remotion": "4.0.
|
|
40
|
-
"
|
|
34
|
+
"@remotion/bundler": "4.0.112",
|
|
35
|
+
"@remotion/media-utils": "4.0.112",
|
|
36
|
+
"@remotion/renderer": "4.0.112",
|
|
37
|
+
"@remotion/player": "4.0.112",
|
|
38
|
+
"@remotion/studio": "4.0.112",
|
|
39
|
+
"@remotion/studio-server": "4.0.112",
|
|
40
|
+
"remotion": "4.0.112"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"react-dom": "18.2.0",
|
|
63
63
|
"vitest": "0.31.1",
|
|
64
64
|
"zod": "^3.22.3",
|
|
65
|
-
"@remotion/tailwind": "4.0.
|
|
66
|
-
"@remotion/zod-types": "4.0.
|
|
65
|
+
"@remotion/tailwind": "4.0.112",
|
|
66
|
+
"@remotion/zod-types": "4.0.112"
|
|
67
67
|
},
|
|
68
68
|
"keywords": [
|
|
69
69
|
"remotion",
|