@remotion/cli 4.0.266 → 4.0.268

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.
@@ -1,7 +1,8 @@
1
1
  import type { LogLevel } from '@remotion/renderer';
2
- export declare const getOutputFilename: ({ imageSequence, compositionName, defaultExtension, args, fromUi, indent, logLevel, }: {
2
+ export declare const getOutputFilename: ({ imageSequence, compositionName, compositionDefaultOutName, defaultExtension, args, fromUi, indent, logLevel, }: {
3
3
  imageSequence: boolean;
4
4
  compositionName: string;
5
+ compositionDefaultOutName: string | null;
5
6
  defaultExtension: string;
6
7
  args: (string | number)[];
7
8
  fromUi: string | null;
@@ -4,7 +4,7 @@ exports.getOutputFilename = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
5
  const log_1 = require("./log");
6
6
  const user_passed_output_location_1 = require("./user-passed-output-location");
7
- const getOutputFilename = ({ imageSequence, compositionName, defaultExtension, args, fromUi, indent, logLevel, }) => {
7
+ const getOutputFilename = ({ imageSequence, compositionName, compositionDefaultOutName, defaultExtension, args, fromUi, indent, logLevel, }) => {
8
8
  if (fromUi) {
9
9
  return fromUi;
10
10
  }
@@ -14,6 +14,7 @@ const getOutputFilename = ({ imageSequence, compositionName, defaultExtension, a
14
14
  args,
15
15
  type: imageSequence ? 'sequence' : 'asset',
16
16
  outputLocationFromUi: null,
17
+ compositionDefaultOutName,
17
18
  });
18
19
  const extension = renderer_1.RenderInternals.getExtensionOfFilename(String(filename));
19
20
  if (imageSequence) {
@@ -25,7 +25,7 @@ declare const beepOnFinishOption: {
25
25
  commandLine: Record<string, unknown>;
26
26
  }) => {
27
27
  source: string;
28
- value: import("@remotion/renderer").ColorSpace;
28
+ value: import("@remotion/renderer/dist/options/color-space").ColorSpace;
29
29
  };
30
30
  setConfig: (value: "default" | "bt709" | "bt2020-ncl" | null) => void;
31
31
  }, offthreadVideoCacheSizeInBytesOption: {
@@ -151,13 +151,13 @@ declare const beepOnFinishOption: {
151
151
  getValue: ({ commandLine }: {
152
152
  commandLine: Record<string, unknown>;
153
153
  }) => {
154
- value: import("@remotion/renderer").X264Preset;
154
+ value: import("@remotion/renderer/dist/options/x264-preset").X264Preset;
155
155
  source: string;
156
156
  } | {
157
157
  value: null;
158
158
  source: string;
159
159
  };
160
- setConfig: (profile: import("@remotion/renderer").X264Preset | null) => void;
160
+ setConfig: (profile: import("@remotion/renderer/dist/options/x264-preset").X264Preset | null) => void;
161
161
  }, enforceAudioOption: {
162
162
  name: string;
163
163
  cliFlag: "enforce-audio-track";
@@ -222,6 +222,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
222
222
  const relativeOutputLocation = (0, get_filename_1.getOutputFilename)({
223
223
  imageSequence: shouldOutputImageSequence,
224
224
  compositionName: compositionId,
225
+ compositionDefaultOutName: config.defaultOutName,
225
226
  defaultExtension: renderer_1.RenderInternals.getFileExtensionFromCodec(codec, audioCodec),
226
227
  args: argsAfterComposition,
227
228
  indent,
@@ -151,6 +151,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
151
151
  args: argsAfterComposition,
152
152
  type: 'asset',
153
153
  outputLocationFromUi,
154
+ compositionDefaultOutName: config.defaultOutName,
154
155
  });
155
156
  const absoluteOutputLocation = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite, logLevel);
156
157
  const exists = (0, node_fs_1.existsSync)(absoluteOutputLocation);
@@ -1,7 +1,8 @@
1
1
  export declare const getUserPassedOutputLocation: (args: (string | number)[], uiPassedOutName: string | null) => string | null;
2
- export declare const getOutputLocation: ({ compositionId, defaultExtension, args, type, outputLocationFromUi, }: {
2
+ export declare const getOutputLocation: ({ compositionId, defaultExtension, args, type, outputLocationFromUi, compositionDefaultOutName, }: {
3
3
  compositionId: string;
4
4
  outputLocationFromUi: string | null;
5
+ compositionDefaultOutName: string | null;
5
6
  defaultExtension: string;
6
7
  args: (string | number)[];
7
8
  type: "asset" | "sequence";
@@ -10,7 +10,7 @@ const getUserPassedOutputLocation = (args, uiPassedOutName) => {
10
10
  return filename ? String(filename) : null;
11
11
  };
12
12
  exports.getUserPassedOutputLocation = getUserPassedOutputLocation;
13
- const getOutputLocation = ({ compositionId, defaultExtension, args, type, outputLocationFromUi, }) => {
13
+ const getOutputLocation = ({ compositionId, defaultExtension, args, type, outputLocationFromUi, compositionDefaultOutName, }) => {
14
14
  var _a;
15
15
  if (typeof args[0] !== 'undefined' &&
16
16
  typeof parsed_cli_1.parsedCli.output !== 'undefined') {
@@ -20,6 +20,7 @@ const getOutputLocation = ({ compositionId, defaultExtension, args, type, output
20
20
  compositionName: compositionId,
21
21
  defaultExtension,
22
22
  type,
23
+ compositionDefaultOutName,
23
24
  }));
24
25
  };
25
26
  exports.getOutputLocation = getOutputLocation;
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.266",
6
+ "version": "4.0.268",
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.266",
37
- "@remotion/media-utils": "4.0.266",
38
- "@remotion/renderer": "4.0.266",
39
- "@remotion/player": "4.0.266",
40
- "@remotion/studio-shared": "4.0.266",
41
- "@remotion/studio": "4.0.266",
42
- "remotion": "4.0.266",
43
- "@remotion/studio-server": "4.0.266"
36
+ "@remotion/bundler": "4.0.268",
37
+ "@remotion/media-utils": "4.0.268",
38
+ "@remotion/renderer": "4.0.268",
39
+ "@remotion/studio": "4.0.268",
40
+ "remotion": "4.0.268",
41
+ "@remotion/studio-server": "4.0.268",
42
+ "@remotion/player": "4.0.268",
43
+ "@remotion/studio-shared": "4.0.268"
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.266",
58
- "@remotion/tailwind-v4": "4.0.266",
59
- "@remotion/enable-scss": "4.0.266",
60
- "@remotion/skia": "4.0.266",
61
- "@remotion/eslint-config-internal": "4.0.266"
57
+ "@remotion/zod-types": "4.0.268",
58
+ "@remotion/tailwind-v4": "4.0.268",
59
+ "@remotion/enable-scss": "4.0.268",
60
+ "@remotion/eslint-config-internal": "4.0.268",
61
+ "@remotion/skia": "4.0.268"
62
62
  },
63
63
  "keywords": [
64
64
  "remotion",
package/remotion-cli.js CHANGED
@@ -6,7 +6,6 @@ const {cli} = require('./dist/index');
6
6
  cli()
7
7
  .then(() => process.exit(0))
8
8
  .catch((err) => {
9
- // eslint-disable-next-line no-console
10
9
  console.error(err);
11
10
  process.exit(1);
12
11
  });
package/remotionb-cli.js CHANGED
@@ -5,7 +5,6 @@ const {cli} = require('./dist/index');
5
5
  cli()
6
6
  .then(() => process.exit(0))
7
7
  .catch((err) => {
8
- // eslint-disable-next-line no-console
9
8
  console.error(err);
10
9
  process.exit(1);
11
10
  });
package/remotiond-cli.js CHANGED
@@ -5,7 +5,6 @@ const {cli} = require('./dist/index');
5
5
  cli()
6
6
  .then(() => process.exit(0))
7
7
  .catch((err) => {
8
- // eslint-disable-next-line no-console
9
8
  console.error(err);
10
9
  process.exit(1);
11
10
  });