@remotion/cli 3.3.28 → 3.3.31

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,3 +1,3 @@
1
- export declare type Concurrency = number | null;
1
+ export declare type Concurrency = number | string | null;
2
2
  export declare const setConcurrency: (newConcurrency: Concurrency) => void;
3
- export declare const getConcurrency: () => number | null;
3
+ export declare const getConcurrency: () => string | number | null;
@@ -24,7 +24,7 @@ export declare const ConfigInternals: {
24
24
  getChromiumHeadlessMode: () => boolean;
25
25
  getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | null;
26
26
  getEveryNthFrame: () => number;
27
- getConcurrency: () => number | null;
27
+ getConcurrency: () => string | number | null;
28
28
  getCurrentPuppeteerTimeout: () => number;
29
29
  getQuality: () => number | undefined;
30
30
  getStillFrame: () => number;
@@ -14,7 +14,7 @@ export declare const getCliOptions: (options: {
14
14
  remotionRoot: string;
15
15
  }) => Promise<{
16
16
  puppeteerTimeout: number;
17
- concurrency: number | null;
17
+ concurrency: string | number | null;
18
18
  frameRange: FrameRange | null;
19
19
  shouldOutputImageSequence: boolean;
20
20
  inputProps: object;
@@ -9,6 +9,7 @@ const getOutputFilename = ({ codec, imageSequence, compositionName, defaultExten
9
9
  compositionId: compositionName,
10
10
  defaultExtension,
11
11
  args,
12
+ type: imageSequence ? 'sequence' : 'asset',
12
13
  });
13
14
  let extension = renderer_1.RenderInternals.getExtensionOfFilename(filename);
14
15
  if (imageSequence) {
package/dist/index.d.ts CHANGED
@@ -72,7 +72,7 @@ export declare const CliInternals: {
72
72
  remotionRoot: string;
73
73
  }) => Promise<{
74
74
  puppeteerTimeout: number;
75
- concurrency: number | null;
75
+ concurrency: string | number | null;
76
76
  frameRange: import("@remotion/renderer").FrameRange | null;
77
77
  shouldOutputImageSequence: boolean;
78
78
  inputProps: object;
@@ -135,7 +135,7 @@ export declare const CliInternals: {
135
135
  source: string;
136
136
  };
137
137
  minimist: typeof minimist;
138
- selectComposition: (validCompositions: import("remotion/.").TCompMetadata[]) => Promise<{
138
+ selectComposition: (validCompositions: import("remotion").TCompMetadata[]) => Promise<{
139
139
  compositionId: string;
140
140
  reason: string;
141
141
  }>;
@@ -145,5 +145,5 @@ export declare const CliInternals: {
145
145
  reason: string;
146
146
  };
147
147
  getImageFormat: (codec: import("@remotion/renderer").CodecOrUndefined) => "png" | "jpeg" | "none";
148
- printCompositions: (compositions: import("remotion/.").TCompMetadata[]) => void;
148
+ printCompositions: (compositions: import("remotion").TCompMetadata[]) => void;
149
149
  };
package/dist/still.js CHANGED
@@ -84,6 +84,7 @@ const still = async (remotionRoot, args) => {
84
84
  compositionId,
85
85
  defaultExtension: imageFormat,
86
86
  args: argsAfterComposition,
87
+ type: 'asset',
87
88
  });
88
89
  const absoluteOutputLocation = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite);
89
90
  (0, fs_1.mkdirSync)(path_1.default.join(absoluteOutputLocation, '..'), {
@@ -1,6 +1,7 @@
1
1
  export declare const getUserPassedOutputLocation: (args: string[]) => string;
2
- export declare const getOutputLocation: ({ compositionId, defaultExtension, args, }: {
2
+ export declare const getOutputLocation: ({ compositionId, defaultExtension, args, type, }: {
3
3
  compositionId: string;
4
4
  defaultExtension: string;
5
5
  args: string[];
6
+ type: 'asset' | 'sequence';
6
7
  }) => string;
@@ -8,12 +8,18 @@ const getUserPassedOutputLocation = (args) => {
8
8
  return filename;
9
9
  };
10
10
  exports.getUserPassedOutputLocation = getUserPassedOutputLocation;
11
- const getDefaultOutLocation = ({ compositionName, defaultExtension, }) => {
12
- const defaultName = `out/${compositionName}.${defaultExtension}`;
13
- return defaultName;
11
+ const getDefaultOutLocation = ({ compositionName, defaultExtension, type, }) => {
12
+ if (type === 'sequence') {
13
+ return `out/${compositionName}`;
14
+ }
15
+ return `out/${compositionName}.${defaultExtension}`;
14
16
  };
15
- const getOutputLocation = ({ compositionId, defaultExtension, args, }) => {
17
+ const getOutputLocation = ({ compositionId, defaultExtension, args, type, }) => {
16
18
  var _a;
17
- return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : getDefaultOutLocation({ compositionName: compositionId, defaultExtension }));
19
+ return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : getDefaultOutLocation({
20
+ compositionName: compositionId,
21
+ defaultExtension,
22
+ type,
23
+ }));
18
24
  };
19
25
  exports.getOutputLocation = getOutputLocation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.3.28",
3
+ "version": "3.3.31",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -22,16 +22,16 @@
22
22
  "author": "Jonny Burger <jonny@remotion.dev>",
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "dependencies": {
25
- "@remotion/bundler": "3.3.28",
26
- "@remotion/media-utils": "3.3.28",
27
- "@remotion/player": "3.3.28",
28
- "@remotion/renderer": "3.3.28",
25
+ "@remotion/bundler": "3.3.31",
26
+ "@remotion/media-utils": "3.3.31",
27
+ "@remotion/player": "3.3.31",
28
+ "@remotion/renderer": "3.3.31",
29
29
  "better-opn": "2.1.1",
30
30
  "dotenv": "9.0.2",
31
31
  "memfs": "3.4.3",
32
32
  "minimist": "1.2.6",
33
33
  "prompts": "2.4.1",
34
- "remotion": "3.3.28",
34
+ "remotion": "3.3.31",
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": "0caa0bec583b5e4c2b12b7375c365e02c2378eeb"
74
+ "gitHead": "4b89462c98236d59641272bd0649d880514e685f"
75
75
  }