@remotion/cli 3.2.0 → 3.2.1
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/drop-silent-audio-if-silent.d.ts +2 -0
- package/dist/config/drop-silent-audio-if-silent.js +13 -0
- package/dist/config/enforce-audio-track.d.ts +2 -0
- package/dist/config/enforce-audio-track.js +13 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.js +8 -0
- package/dist/config/muted.d.ts +2 -0
- package/dist/config/muted.js +13 -0
- package/dist/get-cli-options.d.ts +2 -0
- package/dist/get-cli-options.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/parse-command-line.d.ts +2 -0
- package/dist/parse-command-line.js +8 -0
- package/dist/progress-bar.js +7 -2
- package/dist/render.js +3 -1
- package/package.json +7 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDropAudioIfSilent = exports.setDropAudioIfSilent = void 0;
|
|
4
|
+
const DEFAULT_DROP_AUDIO_IF_SILENT_STATE = true;
|
|
5
|
+
let mutedState = DEFAULT_DROP_AUDIO_IF_SILENT_STATE;
|
|
6
|
+
const setDropAudioIfSilent = (muted) => {
|
|
7
|
+
mutedState = muted;
|
|
8
|
+
};
|
|
9
|
+
exports.setDropAudioIfSilent = setDropAudioIfSilent;
|
|
10
|
+
const getDropAudioIfSilent = () => {
|
|
11
|
+
return mutedState;
|
|
12
|
+
};
|
|
13
|
+
exports.getDropAudioIfSilent = getDropAudioIfSilent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEnforceAudioTrack = exports.setEnforceAudioTrack = void 0;
|
|
4
|
+
const DEFAULT_ENFORCE_AUDIO_TRACK = true;
|
|
5
|
+
let enforceAudioTrackState = DEFAULT_ENFORCE_AUDIO_TRACK;
|
|
6
|
+
const setEnforceAudioTrack = (enforceAudioTrack) => {
|
|
7
|
+
enforceAudioTrackState = enforceAudioTrack;
|
|
8
|
+
};
|
|
9
|
+
exports.setEnforceAudioTrack = setEnforceAudioTrack;
|
|
10
|
+
const getEnforceAudioTrack = () => {
|
|
11
|
+
return enforceAudioTrackState;
|
|
12
|
+
};
|
|
13
|
+
exports.getEnforceAudioTrack = getEnforceAudioTrack;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -39,5 +39,9 @@ export declare const ConfigInternals: {
|
|
|
39
39
|
setStillFrame: (frame: number) => void;
|
|
40
40
|
getMaxTimelineTracks: () => number;
|
|
41
41
|
defaultOverrideFunction: WebpackOverrideFn;
|
|
42
|
+
setMuted: (muted: boolean) => void;
|
|
43
|
+
getMuted: () => boolean;
|
|
44
|
+
getEnforceAudioTrack: () => boolean;
|
|
45
|
+
setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
|
|
42
46
|
};
|
|
43
47
|
export declare const overrideRemotion: () => void;
|
package/dist/config/index.js
CHANGED
|
@@ -57,6 +57,7 @@ const chromium_flags_2 = require("./chromium-flags");
|
|
|
57
57
|
const codec_2 = require("./codec");
|
|
58
58
|
const concurrency_2 = require("./concurrency");
|
|
59
59
|
const crf_2 = require("./crf");
|
|
60
|
+
const enforce_audio_track_1 = require("./enforce-audio-track");
|
|
60
61
|
const env_file_2 = require("./env-file");
|
|
61
62
|
const every_nth_frame_2 = require("./every-nth-frame");
|
|
62
63
|
const ffmpeg_executable_2 = require("./ffmpeg-executable");
|
|
@@ -65,6 +66,7 @@ const image_format_2 = require("./image-format");
|
|
|
65
66
|
const image_sequence_2 = require("./image-sequence");
|
|
66
67
|
const log_1 = require("./log");
|
|
67
68
|
const max_timeline_tracks_2 = require("./max-timeline-tracks");
|
|
69
|
+
const muted_1 = require("./muted");
|
|
68
70
|
const number_of_gif_loops_2 = require("./number-of-gif-loops");
|
|
69
71
|
const output_location_2 = require("./output-location");
|
|
70
72
|
const override_webpack_2 = require("./override-webpack");
|
|
@@ -107,6 +109,8 @@ exports.Config = {
|
|
|
107
109
|
setScale: scale_2.setScale,
|
|
108
110
|
setEveryNthFrame: every_nth_frame_2.setEveryNthFrame,
|
|
109
111
|
setNumberOfGifLoops: number_of_gif_loops_2.setNumberOfGifLoops,
|
|
112
|
+
setMuted: muted_1.setMuted,
|
|
113
|
+
setEnforceAudioTrack: enforce_audio_track_1.setEnforceAudioTrack,
|
|
110
114
|
},
|
|
111
115
|
Output: {
|
|
112
116
|
setOutputLocation: output_location_2.setOutputLocation,
|
|
@@ -154,6 +158,10 @@ exports.ConfigInternals = {
|
|
|
154
158
|
setStillFrame: still_frame_1.setStillFrame,
|
|
155
159
|
getMaxTimelineTracks: max_timeline_tracks_1.getMaxTimelineTracks,
|
|
156
160
|
defaultOverrideFunction: override_webpack_1.defaultOverrideFunction,
|
|
161
|
+
setMuted: muted_1.setMuted,
|
|
162
|
+
getMuted: muted_1.getMuted,
|
|
163
|
+
getEnforceAudioTrack: enforce_audio_track_1.getEnforceAudioTrack,
|
|
164
|
+
setEnforceAudioTrack: enforce_audio_track_1.setEnforceAudioTrack,
|
|
157
165
|
};
|
|
158
166
|
const overrideRemotion = () => {
|
|
159
167
|
Object.assign(remotion_1.Config, exports.Config);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMuted = exports.setMuted = void 0;
|
|
4
|
+
const DEFAULT_MUTED_STATE = false;
|
|
5
|
+
let mutedState = DEFAULT_MUTED_STATE;
|
|
6
|
+
const setMuted = (muted) => {
|
|
7
|
+
mutedState = muted;
|
|
8
|
+
};
|
|
9
|
+
exports.setMuted = setMuted;
|
|
10
|
+
const getMuted = () => {
|
|
11
|
+
return mutedState;
|
|
12
|
+
};
|
|
13
|
+
exports.getMuted = getMuted;
|
package/dist/get-cli-options.js
CHANGED
|
@@ -179,6 +179,8 @@ const getCliOptions = async (options) => {
|
|
|
179
179
|
chromiumOptions,
|
|
180
180
|
overwrite,
|
|
181
181
|
port: port !== null && port !== void 0 ? port : null,
|
|
182
|
+
muted: config_1.ConfigInternals.getMuted(),
|
|
183
|
+
enforceAudioTrack: config_1.ConfigInternals.getEnforceAudioTrack(),
|
|
182
184
|
};
|
|
183
185
|
};
|
|
184
186
|
exports.getCliOptions = getCliOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,8 @@ export declare const CliInternals: {
|
|
|
95
95
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
96
96
|
overwrite: boolean;
|
|
97
97
|
port: number | null;
|
|
98
|
+
muted: boolean;
|
|
99
|
+
enforceAudioTrack: boolean;
|
|
98
100
|
}>;
|
|
99
101
|
parseCommandLine: (type: "sequence" | "still" | "lambda" | "preview" | "versions") => void;
|
|
100
102
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
@@ -16,6 +16,8 @@ exports.BooleanFlags = [
|
|
|
16
16
|
'help',
|
|
17
17
|
'quiet',
|
|
18
18
|
'q',
|
|
19
|
+
'muted',
|
|
20
|
+
'enforce-audio-track',
|
|
19
21
|
// Lambda flags
|
|
20
22
|
'force',
|
|
21
23
|
'disable-chunk-optimization',
|
|
@@ -126,6 +128,12 @@ const parseCommandLine = (type) => {
|
|
|
126
128
|
if (typeof exports.parsedCli.port !== 'undefined') {
|
|
127
129
|
config_1.Config.Bundling.setPort(exports.parsedCli.port);
|
|
128
130
|
}
|
|
131
|
+
if (typeof exports.parsedCli.muted !== 'undefined') {
|
|
132
|
+
config_1.Config.Rendering.setMuted(exports.parsedCli.muted);
|
|
133
|
+
}
|
|
134
|
+
if (typeof exports.parsedCli['enforce-audio-track'] !== 'undefined') {
|
|
135
|
+
config_1.Config.Rendering.setEnforceAudioTrack(exports.parsedCli['enforce-audio-track']);
|
|
136
|
+
}
|
|
129
137
|
};
|
|
130
138
|
exports.parseCommandLine = parseCommandLine;
|
|
131
139
|
const quietFlagProvided = () => exports.parsedCli.quiet || exports.parsedCli.q;
|
package/dist/progress-bar.js
CHANGED
|
@@ -50,12 +50,17 @@ const makeRenderingProgress = ({ frames, totalFrames, steps, concurrency, doneIn
|
|
|
50
50
|
exports.makeRenderingProgress = makeRenderingProgress;
|
|
51
51
|
const makeStitchingProgress = ({ frames, totalFrames, steps, doneIn, stage, codec, }) => {
|
|
52
52
|
const progress = frames / totalFrames;
|
|
53
|
+
const mediaType = codec === 'gif'
|
|
54
|
+
? 'GIF'
|
|
55
|
+
: renderer_1.RenderInternals.isAudioCodec(codec)
|
|
56
|
+
? 'audio'
|
|
57
|
+
: 'video';
|
|
53
58
|
return [
|
|
54
59
|
`(${steps.indexOf('stitching') + 1}/${steps.length})`,
|
|
55
60
|
(0, make_progress_bar_1.makeProgressBar)(progress),
|
|
56
61
|
stage === 'muxing' && renderer_1.RenderInternals.canUseParallelEncoding(codec)
|
|
57
|
-
? `${doneIn ? 'Muxed' : 'Muxing'}
|
|
58
|
-
: `${doneIn ? 'Encoded' : 'Encoding'} ${
|
|
62
|
+
? `${doneIn ? 'Muxed' : 'Muxing'} ${mediaType}`
|
|
63
|
+
: `${doneIn ? 'Encoded' : 'Encoding'} ${mediaType}`,
|
|
59
64
|
doneIn === null ? `${frames}/${totalFrames}` : chalk_1.chalk.gray(`${doneIn}ms`),
|
|
60
65
|
].join(' ');
|
|
61
66
|
};
|
package/dist/render.js
CHANGED
|
@@ -36,7 +36,7 @@ const render = async (remotionRoot) => {
|
|
|
36
36
|
const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
|
|
37
37
|
await (0, initialize_render_cli_1.initializeRenderCli)(remotionRoot, 'sequence');
|
|
38
38
|
log_1.Log.verbose('Asset dirs', downloadMap.assetDir);
|
|
39
|
-
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, puppeteerTimeout, } = await (0, get_cli_options_1.getCliOptions)({
|
|
39
|
+
const { codec, proResProfile, parallelism, frameRange, shouldOutputImageSequence, overwrite, inputProps, envVariables, quality, browser, crf, pixelFormat, imageFormat, browserExecutable, ffmpegExecutable, ffprobeExecutable, scale, chromiumOptions, port, numberOfGifLoops, everyNthFrame, puppeteerTimeout, muted, enforceAudioTrack, } = await (0, get_cli_options_1.getCliOptions)({
|
|
40
40
|
isLambda: false,
|
|
41
41
|
type: 'series',
|
|
42
42
|
});
|
|
@@ -232,6 +232,8 @@ const render = async (remotionRoot) => {
|
|
|
232
232
|
everyNthFrame,
|
|
233
233
|
verbose: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
234
234
|
downloadMap,
|
|
235
|
+
muted,
|
|
236
|
+
enforceAudioTrack,
|
|
235
237
|
});
|
|
236
238
|
log_1.Log.info();
|
|
237
239
|
log_1.Log.info();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/bundler": "3.2.
|
|
27
|
-
"@remotion/media-utils": "3.2.
|
|
28
|
-
"@remotion/player": "3.2.
|
|
29
|
-
"@remotion/renderer": "3.2.
|
|
26
|
+
"@remotion/bundler": "3.2.1",
|
|
27
|
+
"@remotion/media-utils": "3.2.1",
|
|
28
|
+
"@remotion/player": "3.2.1",
|
|
29
|
+
"@remotion/renderer": "3.2.1",
|
|
30
30
|
"better-opn": "2.1.1",
|
|
31
31
|
"dotenv": "9.0.2",
|
|
32
32
|
"memfs": "3.4.3",
|
|
33
33
|
"minimist": "1.2.6",
|
|
34
|
-
"remotion": "3.2.
|
|
34
|
+
"remotion": "3.2.1",
|
|
35
35
|
"semver": "7.3.5",
|
|
36
36
|
"source-map": "0.6.1"
|
|
37
37
|
},
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "0c4f0e1fdd423b882bf3dbc48b50037f9d5251c8"
|
|
75
75
|
}
|