@remotion/cli 3.0.0-processing.7 → 3.0.0-wrapped.214
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/get-cli-options.d.ts +7 -2
- package/dist/get-cli-options.d.ts.map +1 -1
- package/dist/get-cli-options.js +41 -21
- package/dist/get-cli-options.js.map +1 -1
- package/dist/get-config-file-name.d.ts +1 -1
- package/dist/get-config-file-name.d.ts.map +1 -1
- package/dist/get-config-file-name.js +1 -1
- package/dist/get-config-file-name.js.map +1 -1
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/initialize-render-cli.d.ts +1 -1
- package/dist/initialize-render-cli.d.ts.map +1 -1
- package/dist/initialize-render-cli.js +2 -2
- package/dist/initialize-render-cli.js.map +1 -1
- package/dist/lambda-command.js +1 -1
- package/dist/lambda-command.js.map +1 -1
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.d.ts.map +1 -1
- package/dist/load-config.js +28 -18
- package/dist/load-config.js.map +1 -1
- package/dist/log.d.ts.map +1 -1
- package/dist/log.js +4 -4
- package/dist/log.js.map +1 -1
- package/dist/parse-command-line.d.ts +4 -1
- package/dist/parse-command-line.d.ts.map +1 -1
- package/dist/parse-command-line.js +20 -2
- package/dist/parse-command-line.js.map +1 -1
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +3 -9
- package/dist/preview.js.map +1 -1
- package/dist/progress-bar.d.ts +26 -6
- package/dist/progress-bar.d.ts.map +1 -1
- package/dist/progress-bar.js +33 -13
- package/dist/progress-bar.js.map +1 -1
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +139 -149
- package/dist/render.js.map +1 -1
- package/dist/setup-cache.d.ts +2 -1
- package/dist/setup-cache.d.ts.map +1 -1
- package/dist/setup-cache.js +6 -2
- package/dist/setup-cache.js.map +1 -1
- package/dist/still.d.ts.map +1 -1
- package/dist/still.js +41 -32
- package/dist/still.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +1 -1
- package/dist/upgrade.js.map +1 -1
- package/package.json +8 -7
- package/remotion-cli.js +3 -0
package/dist/preview.js
CHANGED
|
@@ -10,29 +10,23 @@ const bundler_1 = require("@remotion/bundler");
|
|
|
10
10
|
const better_opn_1 = __importDefault(require("better-opn"));
|
|
11
11
|
const path_1 = __importDefault(require("path"));
|
|
12
12
|
const remotion_1 = require("remotion");
|
|
13
|
-
const get_config_file_name_1 = require("./get-config-file-name");
|
|
14
13
|
const get_env_1 = require("./get-env");
|
|
15
14
|
const get_input_props_1 = require("./get-input-props");
|
|
16
|
-
const
|
|
15
|
+
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
17
16
|
const parse_command_line_1 = require("./parse-command-line");
|
|
18
17
|
const noop = () => undefined;
|
|
19
18
|
const previewCommand = async () => {
|
|
20
19
|
const file = parse_command_line_1.parsedCli._[1];
|
|
21
20
|
const { port: desiredPort } = parse_command_line_1.parsedCli;
|
|
22
21
|
const fullPath = path_1.default.join(process.cwd(), file);
|
|
23
|
-
|
|
24
|
-
if (appliedName) {
|
|
25
|
-
log_1.Log.verbose(`Applied configuration from ${appliedName}.`);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
log_1.Log.verbose('No config file loaded.');
|
|
29
|
-
}
|
|
22
|
+
await (0, initialize_render_cli_1.initializeRenderCli)('preview');
|
|
30
23
|
const inputProps = (0, get_input_props_1.getInputProps)();
|
|
31
24
|
const envVariables = await (0, get_env_1.getEnvironmentVariables)();
|
|
32
25
|
const port = await bundler_1.BundlerInternals.startServer(path_1.default.resolve(__dirname, 'previewEntry.js'), fullPath, {
|
|
33
26
|
inputProps,
|
|
34
27
|
envVariables,
|
|
35
28
|
port: desiredPort,
|
|
29
|
+
publicPath: '',
|
|
36
30
|
maxTimelineTracks: remotion_1.Internals.getMaxTimelineTracks(),
|
|
37
31
|
});
|
|
38
32
|
(0, better_opn_1.default)(`http://localhost:${port}`);
|
package/dist/preview.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../src/preview.ts"],"names":[],"mappings":";;;;;;AAAA,qEAAqE;AACrE,aAAa;AACb,+CAAmD;AACnD,4DAAmC;AACnC,gDAAwB;AACxB,uCAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../src/preview.ts"],"names":[],"mappings":";;;;;;AAAA,qEAAqE;AACrE,aAAa;AACb,+CAAmD;AACnD,4DAAmC;AACnC,gDAAwB;AACxB,uCAAmC;AACnC,uCAAkD;AAClD,uDAAgD;AAChD,mEAA4D;AAC5D,6DAA+C;AAE/C,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAEtB,MAAM,cAAc,GAAG,KAAK,IAAI,EAAE;IACxC,MAAM,IAAI,GAAG,8BAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,EAAC,IAAI,EAAE,WAAW,EAAC,GAAG,8BAAS,CAAC;IACtC,MAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;IAEhD,MAAM,IAAA,2CAAmB,EAAC,SAAS,CAAC,CAAC;IAErC,MAAM,UAAU,GAAG,IAAA,+BAAa,GAAE,CAAC;IACnC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAuB,GAAE,CAAC;IAErD,MAAM,IAAI,GAAG,MAAM,0BAAgB,CAAC,WAAW,CAC9C,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,EAC1C,QAAQ,EACR;QACC,UAAU;QACV,YAAY;QACZ,IAAI,EAAE,WAAW;QACjB,UAAU,EAAE,EAAE;QACd,iBAAiB,EAAE,oBAAS,CAAC,oBAAoB,EAAE;KACnD,CACD,CAAC;IACF,IAAA,oBAAS,EAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IACtC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC,CAAC;AAvBW,QAAA,cAAc,kBAuBzB"}
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -1,23 +1,43 @@
|
|
|
1
|
+
import { StitchingState } from '@remotion/renderer';
|
|
2
|
+
import { RenderStep } from './step';
|
|
1
3
|
export declare const createProgressBar: () => {
|
|
2
4
|
update: (str: string) => boolean;
|
|
3
5
|
};
|
|
6
|
+
export declare const createOverwriteableCliOutput: () => {
|
|
7
|
+
update: (up: string) => boolean;
|
|
8
|
+
};
|
|
4
9
|
export declare const makeProgressBar: (percentage: number) => string;
|
|
5
10
|
export declare const makeBundlingProgress: ({ progress, steps, doneIn, }: {
|
|
6
11
|
progress: number;
|
|
7
|
-
steps:
|
|
12
|
+
steps: RenderStep[];
|
|
8
13
|
doneIn: number | null;
|
|
9
14
|
}) => string;
|
|
10
|
-
|
|
15
|
+
declare type RenderingProgressInput = {
|
|
11
16
|
frames: number;
|
|
12
17
|
totalFrames: number;
|
|
13
|
-
steps:
|
|
18
|
+
steps: RenderStep[];
|
|
14
19
|
concurrency: number;
|
|
15
20
|
doneIn: number | null;
|
|
16
|
-
}
|
|
17
|
-
export declare const
|
|
21
|
+
};
|
|
22
|
+
export declare const makeRenderingProgress: ({ frames, totalFrames, steps, concurrency, doneIn, }: RenderingProgressInput) => string;
|
|
23
|
+
declare type StitchingProgressInput = {
|
|
18
24
|
frames: number;
|
|
19
25
|
totalFrames: number;
|
|
20
|
-
steps:
|
|
26
|
+
steps: RenderStep[];
|
|
21
27
|
doneIn: number | null;
|
|
28
|
+
stage: StitchingState;
|
|
29
|
+
};
|
|
30
|
+
export declare const makeDownloadProgress: (progress: DownloadProgress) => string;
|
|
31
|
+
export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, }: StitchingProgressInput) => string;
|
|
32
|
+
export declare type DownloadProgress = {
|
|
33
|
+
name: string;
|
|
34
|
+
id: number;
|
|
35
|
+
progress: number;
|
|
36
|
+
};
|
|
37
|
+
export declare const makeRenderingAndStitchingProgress: ({ rendering, stitching, downloads, }: {
|
|
38
|
+
rendering: RenderingProgressInput;
|
|
39
|
+
stitching: StitchingProgressInput | null;
|
|
40
|
+
downloads: DownloadProgress[];
|
|
22
41
|
}) => string;
|
|
42
|
+
export {};
|
|
23
43
|
//# sourceMappingURL=progress-bar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../src/progress-bar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../src/progress-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAKlD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,eAAO,MAAM,iBAAiB;kBACf,MAAM,KAAK,OAAO;CAYhC,CAAC;AAEF,eAAO,MAAM,4BAA4B;iBAG1B,MAAM,KAAG,OAAO;CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eAAgB,MAAM,WAIjD,CAAC;AAEF,eAAO,MAAM,oBAAoB;cAKtB,MAAM;WACT,UAAU,EAAE;YACX,MAAM,GAAG,IAAI;YASV,CAAC;AAEb,aAAK,sBAAsB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,qBAAqB,yDAM/B,sBAAsB,WAUxB,CAAC;AAEF,aAAK,sBAAsB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,cAAc,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,aAAc,gBAAgB,WAM9D,CAAC;AAEF,eAAO,MAAM,qBAAqB,mDAM/B,sBAAsB,WAUxB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iCAAiC;eAKlC,sBAAsB;eACtB,sBAAsB,GAAG,IAAI;eAC7B,gBAAgB,EAAE;YAO7B,CAAC"}
|
package/dist/progress-bar.js
CHANGED
|
@@ -3,22 +3,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.makeStitchingProgress = exports.makeRenderingProgress = exports.makeBundlingProgress = exports.makeProgressBar = exports.createProgressBar = void 0;
|
|
6
|
+
exports.makeRenderingAndStitchingProgress = exports.makeStitchingProgress = exports.makeDownloadProgress = exports.makeRenderingProgress = exports.makeBundlingProgress = exports.makeProgressBar = exports.createOverwriteableCliOutput = exports.createProgressBar = void 0;
|
|
7
7
|
// @ts-expect-error
|
|
8
8
|
const ansi_diff_1 = __importDefault(require("ansi-diff"));
|
|
9
9
|
const chalk_1 = __importDefault(require("chalk"));
|
|
10
10
|
const remotion_1 = require("remotion");
|
|
11
11
|
const createProgressBar = () => {
|
|
12
|
-
if (!remotion_1.Internals.Logging.isEqualOrBelowLogLevel('info')) {
|
|
12
|
+
if (!remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'info')) {
|
|
13
13
|
return { update: () => false };
|
|
14
14
|
}
|
|
15
|
+
return (0, exports.createOverwriteableCliOutput)();
|
|
16
|
+
};
|
|
17
|
+
exports.createProgressBar = createProgressBar;
|
|
18
|
+
const createOverwriteableCliOutput = () => {
|
|
15
19
|
const diff = (0, ansi_diff_1.default)();
|
|
16
|
-
process.stdout.write('');
|
|
17
20
|
return {
|
|
18
21
|
update: (up) => process.stdout.write(diff.update(up)),
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
|
-
exports.
|
|
24
|
+
exports.createOverwriteableCliOutput = createOverwriteableCliOutput;
|
|
22
25
|
const makeProgressBar = (percentage) => {
|
|
23
26
|
const totalBars = 20;
|
|
24
27
|
const barsToShow = Math.floor(percentage * totalBars);
|
|
@@ -26,8 +29,7 @@ const makeProgressBar = (percentage) => {
|
|
|
26
29
|
};
|
|
27
30
|
exports.makeProgressBar = makeProgressBar;
|
|
28
31
|
const makeBundlingProgress = ({ progress, steps, doneIn, }) => [
|
|
29
|
-
'
|
|
30
|
-
`(1/${steps})`,
|
|
32
|
+
`(${steps.indexOf('bundling') + 1}/${steps.length})`,
|
|
31
33
|
(0, exports.makeProgressBar)(progress),
|
|
32
34
|
`${doneIn ? 'Bundled' : 'Bundling'} code`,
|
|
33
35
|
doneIn === null
|
|
@@ -38,23 +40,41 @@ exports.makeBundlingProgress = makeBundlingProgress;
|
|
|
38
40
|
const makeRenderingProgress = ({ frames, totalFrames, steps, concurrency, doneIn, }) => {
|
|
39
41
|
const progress = frames / totalFrames;
|
|
40
42
|
return [
|
|
41
|
-
'
|
|
42
|
-
`(2/${steps})`,
|
|
43
|
+
`(${steps.indexOf('rendering') + 1}/${steps.length})`,
|
|
43
44
|
(0, exports.makeProgressBar)(progress),
|
|
44
|
-
|
|
45
|
+
[doneIn ? 'Rendered' : 'Rendering', `frames (${concurrency}x)`]
|
|
46
|
+
.filter(remotion_1.Internals.truthy)
|
|
47
|
+
.join(' '),
|
|
45
48
|
doneIn === null ? `${frames}/${totalFrames}` : chalk_1.default.gray(`${doneIn}ms`),
|
|
46
49
|
].join(' ');
|
|
47
50
|
};
|
|
48
51
|
exports.makeRenderingProgress = makeRenderingProgress;
|
|
49
|
-
const
|
|
52
|
+
const makeDownloadProgress = (progress) => {
|
|
53
|
+
return [
|
|
54
|
+
`(-/-)`,
|
|
55
|
+
(0, exports.makeProgressBar)(progress.progress),
|
|
56
|
+
`Downloading ${progress.name}`,
|
|
57
|
+
].join(' ');
|
|
58
|
+
};
|
|
59
|
+
exports.makeDownloadProgress = makeDownloadProgress;
|
|
60
|
+
const makeStitchingProgress = ({ frames, totalFrames, steps, doneIn, stage, }) => {
|
|
50
61
|
const progress = frames / totalFrames;
|
|
51
62
|
return [
|
|
52
|
-
'
|
|
53
|
-
`(3/${steps})`,
|
|
63
|
+
`(${steps.indexOf('stitching') + 1}/${steps.length})`,
|
|
54
64
|
(0, exports.makeProgressBar)(progress),
|
|
55
|
-
|
|
65
|
+
stage === 'muxing'
|
|
66
|
+
? `${doneIn ? 'Muxed' : 'Muxing'} audio`
|
|
67
|
+
: `${doneIn ? 'Encoded' : 'Encoding'} video`,
|
|
56
68
|
doneIn === null ? `${frames}/${totalFrames}` : chalk_1.default.gray(`${doneIn}ms`),
|
|
57
69
|
].join(' ');
|
|
58
70
|
};
|
|
59
71
|
exports.makeStitchingProgress = makeStitchingProgress;
|
|
72
|
+
const makeRenderingAndStitchingProgress = ({ rendering, stitching, downloads, }) => {
|
|
73
|
+
return [
|
|
74
|
+
(0, exports.makeRenderingProgress)(rendering),
|
|
75
|
+
...downloads.map((d) => (0, exports.makeDownloadProgress)(d)),
|
|
76
|
+
stitching === null ? null : (0, exports.makeStitchingProgress)(stitching),
|
|
77
|
+
].join('\n');
|
|
78
|
+
};
|
|
79
|
+
exports.makeRenderingAndStitchingProgress = makeRenderingAndStitchingProgress;
|
|
60
80
|
//# sourceMappingURL=progress-bar.js.map
|
package/dist/progress-bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.js","sourceRoot":"","sources":["../src/progress-bar.ts"],"names":[],"mappings":";;;;;;
|
|
1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dist/render.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.tsx"],"names":[],"mappings":"AA2BA,eAAO,MAAM,MAAM,qBAiPlB,CAAC"}
|
package/dist/render.js
CHANGED
|
@@ -10,53 +10,45 @@ const fs_1 = __importDefault(require("fs"));
|
|
|
10
10
|
const os_1 = __importDefault(require("os"));
|
|
11
11
|
const path_1 = __importDefault(require("path"));
|
|
12
12
|
const remotion_1 = require("remotion");
|
|
13
|
-
const delete_directory_1 = require("./delete-directory");
|
|
14
13
|
const get_cli_options_1 = require("./get-cli-options");
|
|
15
14
|
const get_composition_id_1 = require("./get-composition-id");
|
|
16
|
-
const handle_common_errors_1 = require("./handle-common-errors");
|
|
17
15
|
const initialize_render_cli_1 = require("./initialize-render-cli");
|
|
18
16
|
const log_1 = require("./log");
|
|
19
17
|
const parse_command_line_1 = require("./parse-command-line");
|
|
20
18
|
const progress_bar_1 = require("./progress-bar");
|
|
21
19
|
const setup_cache_1 = require("./setup-cache");
|
|
22
20
|
const validate_ffmpeg_version_1 = require("./validate-ffmpeg-version");
|
|
23
|
-
const onError = async (info) => {
|
|
24
|
-
log_1.Log.error();
|
|
25
|
-
if (info.frame === null) {
|
|
26
|
-
log_1.Log.error('The following error occured when trying to initialize the video rendering:');
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
log_1.Log.error(`The following error occurred when trying to render frame ${info.frame}:`);
|
|
30
|
-
}
|
|
31
|
-
(0, handle_common_errors_1.handleCommonError)(info.error);
|
|
32
|
-
process.exit(1);
|
|
33
|
-
};
|
|
34
21
|
const render = async () => {
|
|
35
|
-
var _a, _b;
|
|
36
22
|
const startTime = Date.now();
|
|
37
23
|
const file = parse_command_line_1.parsedCli._[1];
|
|
38
|
-
const fullPath =
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
const fullPath = renderer_1.RenderInternals.isServeUrl(file)
|
|
25
|
+
? file
|
|
26
|
+
: path_1.default.join(process.cwd(), file);
|
|
27
|
+
await (0, initialize_render_cli_1.initializeRenderCli)('sequence');
|
|
28
|
+
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, absoluteOutputFile, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, } = await (0, get_cli_options_1.getCliOptions)({ isLambda: false, type: 'series' });
|
|
29
|
+
if (!absoluteOutputFile) {
|
|
30
|
+
throw new Error('assertion error - expected absoluteOutputFile to not be null');
|
|
31
|
+
}
|
|
41
32
|
await (0, validate_ffmpeg_version_1.checkAndValidateFfmpegVersion)({
|
|
42
33
|
ffmpegExecutable: remotion_1.Internals.getCustomFfmpegExecutable(),
|
|
43
34
|
});
|
|
44
|
-
const browserInstance = renderer_1.
|
|
35
|
+
const browserInstance = (0, renderer_1.openBrowser)(browser, {
|
|
45
36
|
browserExecutable,
|
|
46
|
-
shouldDumpIo: remotion_1.Internals.Logging.isEqualOrBelowLogLevel('verbose'),
|
|
37
|
+
shouldDumpIo: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
|
|
47
38
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
39
|
+
const steps = [
|
|
40
|
+
renderer_1.RenderInternals.isServeUrl(fullPath) ? null : 'bundling',
|
|
41
|
+
'rendering',
|
|
42
|
+
shouldOutputImageSequence ? null : 'stitching',
|
|
43
|
+
].filter(remotion_1.Internals.truthy);
|
|
44
|
+
const urlOrBundle = renderer_1.RenderInternals.isServeUrl(fullPath)
|
|
45
|
+
? Promise.resolve(fullPath)
|
|
46
|
+
: await (0, setup_cache_1.bundleOnCli)(fullPath, steps);
|
|
47
|
+
const { serveUrl, closeServer } = await renderer_1.RenderInternals.prepareServer(await urlOrBundle);
|
|
48
|
+
const puppeteerInstance = await browserInstance;
|
|
49
|
+
const comps = await (0, renderer_1.getCompositions)(serveUrl, {
|
|
58
50
|
inputProps,
|
|
59
|
-
|
|
51
|
+
puppeteerInstance,
|
|
60
52
|
envVariables,
|
|
61
53
|
});
|
|
62
54
|
const compositionId = (0, get_composition_id_1.getCompositionId)(comps);
|
|
@@ -73,135 +65,121 @@ const render = async () => {
|
|
|
73
65
|
? absoluteOutputFile
|
|
74
66
|
: await fs_1.default.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'react-motion-render'));
|
|
75
67
|
log_1.Log.verbose('Output dir', outputDir);
|
|
76
|
-
const renderProgress = (0, progress_bar_1.
|
|
68
|
+
const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)();
|
|
77
69
|
let totalFrames = 0;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
let encodedFrames = 0;
|
|
71
|
+
let renderedFrames = 0;
|
|
72
|
+
let encodedDoneIn = null;
|
|
73
|
+
let renderedDoneIn = null;
|
|
74
|
+
let stitchStage = 'encoding';
|
|
75
|
+
const downloads = [];
|
|
76
|
+
const updateRenderProgress = () => {
|
|
77
|
+
if (totalFrames === null) {
|
|
78
|
+
throw new Error('totalFrames should not be 0');
|
|
79
|
+
}
|
|
80
|
+
return renderProgress.update((0, progress_bar_1.makeRenderingAndStitchingProgress)({
|
|
81
|
+
rendering: {
|
|
82
|
+
frames: renderedFrames,
|
|
84
83
|
totalFrames,
|
|
85
84
|
concurrency: renderer_1.RenderInternals.getActualConcurrency(parallelism),
|
|
86
|
-
doneIn:
|
|
87
|
-
steps,
|
|
88
|
-
}));
|
|
89
|
-
},
|
|
90
|
-
parallelism,
|
|
91
|
-
compositionId,
|
|
92
|
-
outputDir,
|
|
93
|
-
onError,
|
|
94
|
-
onStart: ({ frameCount: fc }) => {
|
|
95
|
-
renderProgress.update((0, progress_bar_1.makeRenderingProgress)({
|
|
96
|
-
frames: 0,
|
|
97
|
-
totalFrames: fc,
|
|
98
|
-
concurrency: renderer_1.RenderInternals.getActualConcurrency(parallelism),
|
|
99
|
-
doneIn: null,
|
|
85
|
+
doneIn: renderedDoneIn,
|
|
100
86
|
steps,
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
const closeBrowserPromise = openedBrowser.close();
|
|
115
|
-
renderProgress.update((0, progress_bar_1.makeRenderingProgress)({
|
|
116
|
-
frames: totalFrames,
|
|
117
|
-
totalFrames,
|
|
118
|
-
steps,
|
|
119
|
-
concurrency: renderer_1.RenderInternals.getActualConcurrency(parallelism),
|
|
120
|
-
doneIn: Date.now() - renderStart,
|
|
121
|
-
}) + '\n');
|
|
122
|
-
if (process.env.DEBUG) {
|
|
123
|
-
remotion_1.Internals.perf.logPerf();
|
|
124
|
-
}
|
|
87
|
+
},
|
|
88
|
+
stitching: shouldOutputImageSequence
|
|
89
|
+
? null
|
|
90
|
+
: {
|
|
91
|
+
doneIn: encodedDoneIn,
|
|
92
|
+
frames: encodedFrames,
|
|
93
|
+
stage: stitchStage,
|
|
94
|
+
steps,
|
|
95
|
+
totalFrames,
|
|
96
|
+
},
|
|
97
|
+
downloads,
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
125
100
|
if (shouldOutputImageSequence) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (!fs_1.default.existsSync(dirName)) {
|
|
134
|
-
fs_1.default.mkdirSync(dirName, {
|
|
135
|
-
recursive: true,
|
|
136
|
-
});
|
|
101
|
+
fs_1.default.mkdirSync(absoluteOutputFile, {
|
|
102
|
+
recursive: true,
|
|
103
|
+
});
|
|
104
|
+
if (imageFormat === 'none') {
|
|
105
|
+
log_1.Log.error('Cannot render an image sequence with a codec that renders no images.');
|
|
106
|
+
log_1.Log.error(`codec = ${codec}, imageFormat = ${imageFormat}`);
|
|
107
|
+
process.exit(1);
|
|
137
108
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
doneIn: null,
|
|
141
|
-
frames: 0,
|
|
142
|
-
steps,
|
|
143
|
-
totalFrames,
|
|
144
|
-
}));
|
|
145
|
-
const stitchStart = Date.now();
|
|
146
|
-
await (0, renderer_1.stitchFramesToVideo)({
|
|
147
|
-
dir: outputDir,
|
|
148
|
-
width: config.width,
|
|
149
|
-
height: config.height,
|
|
150
|
-
fps: config.fps,
|
|
151
|
-
outputLocation: absoluteOutputFile,
|
|
152
|
-
force: overwrite,
|
|
109
|
+
await (0, renderer_1.renderFrames)({
|
|
110
|
+
config,
|
|
153
111
|
imageFormat,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
assetsInfo,
|
|
159
|
-
parallelism,
|
|
160
|
-
ffmpegExecutable,
|
|
161
|
-
onProgress: (frame) => {
|
|
162
|
-
stitchingProgress.update((0, progress_bar_1.makeStitchingProgress)({
|
|
163
|
-
doneIn: null,
|
|
164
|
-
frames: frame,
|
|
165
|
-
steps,
|
|
166
|
-
totalFrames,
|
|
167
|
-
}));
|
|
112
|
+
inputProps,
|
|
113
|
+
onFrameUpdate: (rendered) => {
|
|
114
|
+
renderedFrames = rendered;
|
|
115
|
+
updateRenderProgress();
|
|
168
116
|
},
|
|
169
|
-
|
|
170
|
-
|
|
117
|
+
onStart: ({ frameCount }) => {
|
|
118
|
+
totalFrames = frameCount;
|
|
119
|
+
return updateRenderProgress();
|
|
171
120
|
},
|
|
172
|
-
|
|
121
|
+
outputDir,
|
|
122
|
+
serveUrl,
|
|
123
|
+
dumpBrowserLogs: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
|
|
124
|
+
envVariables,
|
|
125
|
+
frameRange,
|
|
126
|
+
parallelism,
|
|
127
|
+
puppeteerInstance,
|
|
128
|
+
quality,
|
|
173
129
|
});
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
log_1.Log.verbose('Cleaning up...');
|
|
181
|
-
try {
|
|
182
|
-
if (process.platform === 'win32') {
|
|
183
|
-
// Properly delete directories because Windows doesn't seem to like fs.
|
|
184
|
-
await (0, delete_directory_1.deleteDirectory)(outputDir);
|
|
185
|
-
await (0, delete_directory_1.deleteDirectory)(bundled);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
await Promise.all([
|
|
189
|
-
((_a = fs_1.default.promises.rm) !== null && _a !== void 0 ? _a : fs_1.default.promises.rmdir)(outputDir, {
|
|
190
|
-
recursive: true,
|
|
191
|
-
}),
|
|
192
|
-
((_b = fs_1.default.promises.rm) !== null && _b !== void 0 ? _b : fs_1.default.promises.rmdir)(bundled, {
|
|
193
|
-
recursive: true,
|
|
194
|
-
}),
|
|
195
|
-
]);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
catch (err) {
|
|
199
|
-
log_1.Log.warn('Could not clean up directory.');
|
|
200
|
-
log_1.Log.warn(err);
|
|
201
|
-
log_1.Log.warn('Do you have minimum required Node.js version?');
|
|
202
|
-
}
|
|
203
|
-
log_1.Log.info(chalk_1.default.green('\nYour video is ready!'));
|
|
130
|
+
renderedDoneIn = Date.now() - startTime;
|
|
131
|
+
updateRenderProgress();
|
|
132
|
+
log_1.Log.info();
|
|
133
|
+
log_1.Log.info();
|
|
134
|
+
log_1.Log.info(chalk_1.default.green('\nYour image sequence is ready!'));
|
|
135
|
+
return;
|
|
204
136
|
}
|
|
137
|
+
await (0, renderer_1.renderMedia)({
|
|
138
|
+
outputLocation: absoluteOutputFile,
|
|
139
|
+
codec,
|
|
140
|
+
composition: config,
|
|
141
|
+
crf,
|
|
142
|
+
envVariables,
|
|
143
|
+
ffmpegExecutable,
|
|
144
|
+
frameRange,
|
|
145
|
+
imageFormat,
|
|
146
|
+
inputProps,
|
|
147
|
+
onProgress: (update) => {
|
|
148
|
+
encodedDoneIn = update.encodedDoneIn;
|
|
149
|
+
encodedFrames = update.encodedFrames;
|
|
150
|
+
renderedDoneIn = update.renderedDoneIn;
|
|
151
|
+
stitchStage = update.stitchStage;
|
|
152
|
+
renderedFrames = update.renderedFrames;
|
|
153
|
+
updateRenderProgress();
|
|
154
|
+
},
|
|
155
|
+
puppeteerInstance,
|
|
156
|
+
overwrite,
|
|
157
|
+
parallelism,
|
|
158
|
+
pixelFormat,
|
|
159
|
+
proResProfile,
|
|
160
|
+
quality,
|
|
161
|
+
serveUrl,
|
|
162
|
+
onDownload: (src) => {
|
|
163
|
+
const id = Math.random();
|
|
164
|
+
const download = {
|
|
165
|
+
id,
|
|
166
|
+
name: src,
|
|
167
|
+
progress: 0,
|
|
168
|
+
};
|
|
169
|
+
downloads.push(download);
|
|
170
|
+
updateRenderProgress();
|
|
171
|
+
return ({ percent }) => {
|
|
172
|
+
download.progress = percent;
|
|
173
|
+
updateRenderProgress();
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
dumpBrowserLogs: remotion_1.Internals.Logging.isEqualOrBelowLogLevel(remotion_1.Internals.Logging.getLogLevel(), 'verbose'),
|
|
177
|
+
onStart: ({ frameCount }) => {
|
|
178
|
+
totalFrames = frameCount;
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
log_1.Log.info();
|
|
182
|
+
log_1.Log.info();
|
|
205
183
|
const seconds = Math.round((Date.now() - startTime) / 1000);
|
|
206
184
|
log_1.Log.info([
|
|
207
185
|
'- Total render time:',
|
|
@@ -210,7 +188,19 @@ const render = async () => {
|
|
|
210
188
|
].join(' '));
|
|
211
189
|
log_1.Log.info('-', 'Output can be found at:');
|
|
212
190
|
log_1.Log.info(chalk_1.default.cyan(`▶️ ${absoluteOutputFile}`));
|
|
213
|
-
|
|
191
|
+
log_1.Log.verbose('Cleaning up...');
|
|
192
|
+
try {
|
|
193
|
+
await renderer_1.RenderInternals.deleteDirectory(await urlOrBundle);
|
|
194
|
+
}
|
|
195
|
+
catch (err) {
|
|
196
|
+
log_1.Log.warn('Could not clean up directory.');
|
|
197
|
+
log_1.Log.warn(err);
|
|
198
|
+
log_1.Log.warn('Do you have minimum required Node.js version?');
|
|
199
|
+
}
|
|
200
|
+
log_1.Log.info(chalk_1.default.green('\nYour video is ready!'));
|
|
201
|
+
closeServer().catch((err) => {
|
|
202
|
+
log_1.Log.error('Could not close web server', err);
|
|
203
|
+
});
|
|
214
204
|
};
|
|
215
205
|
exports.render = render;
|
|
216
206
|
//# sourceMappingURL=render.js.map
|
package/dist/render.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../src/render.tsx"],"names":[],"mappings":";;;;;;AAAA,iDAO4B;AAC5B,kDAA0B;AAC1B,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,uCAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../src/render.tsx"],"names":[],"mappings":";;;;;;AAAA,iDAO4B;AAC5B,kDAA0B;AAC1B,4CAAoB;AACpB,4CAAoB;AACpB,gDAAwB;AACxB,uCAAmC;AACnC,uDAAgD;AAChD,6DAAsD;AACtD,mEAA4D;AAC5D,+BAA0B;AAC1B,6DAA+C;AAC/C,iDAIwB;AACxB,+CAA0C;AAE1C,uEAAwE;AAEjE,MAAM,MAAM,GAAG,KAAK,IAAI,EAAE;IAChC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,8BAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5B,MAAM,QAAQ,GAAG,0BAAe,C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AAC,CAAC;QAC1C,SAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACd,SAAG,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;KAC1D;IAED,SAAG,CAAC,IAAI,CAAC,eAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QAC3B,SAAG,CAAC,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAjPW,QAAA,MAAM,UAiPjB"}
|
package/dist/setup-cache.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-cache.d.ts","sourceRoot":"","sources":["../src/setup-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-cache.d.ts","sourceRoot":"","sources":["../src/setup-cache.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,eAAO,MAAM,WAAW,aAAoB,MAAM,SAAS,UAAU,EAAE,oBAuCtE,CAAC"}
|
package/dist/setup-cache.js
CHANGED
|
@@ -13,9 +13,13 @@ const bundleOnCli = async (fullPath, steps) => {
|
|
|
13
13
|
await bundler_1.BundlerInternals.clearCache('production', null);
|
|
14
14
|
}
|
|
15
15
|
const bundleStartTime = Date.now();
|
|
16
|
-
const bundlingProgress = (0, progress_bar_1.
|
|
16
|
+
const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)();
|
|
17
17
|
const bundled = await (0, bundler_1.bundle)(fullPath, (progress) => {
|
|
18
|
-
bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
|
|
18
|
+
bundlingProgress.update((0, progress_bar_1.makeBundlingProgress)({
|
|
19
|
+
progress: progress / 100,
|
|
20
|
+
steps,
|
|
21
|
+
doneIn: null,
|
|
22
|
+
}));
|
|
19
23
|
}, {
|
|
20
24
|
enableCaching: shouldCache,
|
|
21
25
|
});
|
package/dist/setup-cache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-cache.js","sourceRoot":"","sources":["../src/setup-cache.ts"],"names":[],"mappings":";;;AAAA,+CAA2D;AAC3D,uCAAmC;AACnC,+BAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"setup-cache.js","sourceRoot":"","sources":["../src/setup-cache.ts"],"names":[],"mappings":";;;AAAA,+CAA2D;AAC3D,uCAAmC;AACnC,+BAA0B;AAC1B,iDAGwB;AAGjB,MAAM,WAAW,GAAG,KAAK,EAAE,QAAgB,EAAE,KAAmB,EAAE,EAAE;IAC1E,MAAM,WAAW,GAAG,oBAAS,CAAC,iBAAiB,EAAE,CAAC;IAClD,MAAM,kBAAkB,GAAG,0BAAgB,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAC5E,IAAI,kBAAkB,IAAI,CAAC,WAAW,EAAE;QACvC,SAAG,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAC;QACtD,MAAM,0BAAgB,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;KACtD;IAED,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACnC,MAAM,gBAAgB,GAAG,IAAA,2CAA4B,GAAE,CAAC;IACxD,MAAM,OAAO,GAAG,MAAM,IAAA,gBAAM,EAC3B,QAAQ,EACR,CAAC,QAAQ,EAAE,EAAE;QACZ,gBAAgB,CAAC,MAAM,CACtB,IAAA,mCAAoB,EAAC;YACpB,QAAQ,EAAE,QAAQ,GAAG,GAAG;YACxB,KAAK;YACL,MAAM,EAAE,IAAI;SACZ,CAAC,CACF,CAAC;IACH,CAAC,EACD;QACC,aAAa,EAAE,WAAW;KAC1B,CACD,CAAC;IACF,gBAAgB,CAAC,MAAM,CACtB,IAAA,mCAAoB,EAAC;QACpB,QAAQ,EAAE,CAAC;QACX,KAAK;Q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