@remotion/cli 4.0.397 → 4.0.398

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.
@@ -327,6 +327,12 @@ declare global {
327
327
  * @param pattern The pattern string, e.g. 'frame_[frame].[ext]'.
328
328
  */
329
329
  readonly setImageSequencePattern: (pattern: string | null) => void;
330
+ /**
331
+ * Set the public license key for your company license.
332
+ * Obtain it from the "Usage" tab on https://remotion.pro
333
+ * Pass "free-license" if you are eligible for the free license.
334
+ */
335
+ readonly setPublicLicenseKey: (key: string | null) => void;
330
336
  }
331
337
  }
332
338
  type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
@@ -43,7 +43,7 @@ const user_agent_1 = require("./user-agent");
43
43
  const webpack_caching_2 = require("./webpack-caching");
44
44
  const webpack_poll_1 = require("./webpack-poll");
45
45
  const width_1 = require("./width");
46
- const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, darkModeOption, } = client_1.BrowserSafeApis.options;
46
+ const { offthreadVideoCacheSizeInBytesOption, x264Option, audioBitrateOption, videoBitrateOption, scaleOption, crfOption, jpegQualityOption, enforceAudioOption, overwriteOption, chromeModeOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, enableLambdaInsights, logLevelOption, delayRenderTimeoutInMillisecondsOption, publicDirOption, binariesDirectoryOption, preferLosslessOption, forSeamlessAacConcatenationOption, audioCodecOption, publicPathOption, hardwareAccelerationOption, audioLatencyHintOption, enableCrossSiteIsolationOption, imageSequencePatternOption, darkModeOption, publicLicenseKeyOption, } = client_1.BrowserSafeApis.options;
47
47
  exports.Config = {
48
48
  get Bundling() {
49
49
  throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
@@ -141,6 +141,7 @@ exports.Config = {
141
141
  setImageSequencePattern: imageSequencePatternOption.setConfig,
142
142
  setHardwareAcceleration: hardwareAccelerationOption.setConfig,
143
143
  setEnableCrossSiteIsolation: enableCrossSiteIsolationOption.setConfig,
144
+ setPublicLicenseKey: publicLicenseKeyOption.setConfig,
144
145
  };
145
146
  exports.ConfigInternals = {
146
147
  getRange: frame_range_1.getRange,
@@ -5,7 +5,7 @@ const renderer_1 = require("@remotion/renderer");
5
5
  const client_1 = require("@remotion/renderer/client");
6
6
  const config_1 = require("./config");
7
7
  const parsed_cli_1 = require("./parsed-cli");
8
- const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, darkModeOption, } = client_1.BrowserSafeApis.options;
8
+ const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, beepOnFinishOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, logLevelOption, delayRenderTimeoutInMillisecondsOption, headlessOption, forSeamlessAacConcatenationOption, audioCodecOption, hardwareAccelerationOption, chromeModeOption, mediaCacheSizeInBytesOption, darkModeOption, publicLicenseKeyOption, } = client_1.BrowserSafeApis.options;
9
9
  const getRenderDefaults = () => {
10
10
  var _a;
11
11
  const defaultJpegQuality = jpegQualityOption.getValue({
@@ -85,6 +85,9 @@ const getRenderDefaults = () => {
85
85
  const mediaCacheSizeInBytes = mediaCacheSizeInBytesOption.getValue({
86
86
  commandLine: parsed_cli_1.parsedCli,
87
87
  }).value;
88
+ const publicLicenseKey = publicLicenseKeyOption.getValue({
89
+ commandLine: parsed_cli_1.parsedCli,
90
+ }).value;
88
91
  const everyNthFrame = config_1.ConfigInternals.getEveryNthFrame();
89
92
  const stillImageFormat = config_1.ConfigInternals.getUserPreferredStillImageFormat();
90
93
  const videoImageFormat = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
@@ -137,6 +140,7 @@ const getRenderDefaults = () => {
137
140
  hardwareAcceleration,
138
141
  chromeMode,
139
142
  mediaCacheSizeInBytes,
143
+ publicLicenseKey,
140
144
  };
141
145
  };
142
146
  exports.getRenderDefaults = getRenderDefaults;
@@ -300,6 +300,20 @@ declare const beepOnFinishOption: {
300
300
  value: boolean;
301
301
  };
302
302
  setConfig: (value: boolean) => void;
303
+ }, publicLicenseKeyOption: {
304
+ name: string;
305
+ cliFlag: "public-license-key";
306
+ description: () => import("react/jsx-runtime").JSX.Element;
307
+ ssrName: "publicLicenseKey";
308
+ docLink: string;
309
+ getValue: ({ commandLine }: {
310
+ commandLine: Record<string, unknown>;
311
+ }) => {
312
+ source: string;
313
+ value: string | null;
314
+ };
315
+ setConfig: (value: string | null) => void;
316
+ type: string | null;
303
317
  };
304
318
  export type CommandLineOptions = {
305
319
  ['browser-executable']: BrowserExecutable;
@@ -372,6 +386,8 @@ export type CommandLineOptions = {
372
386
  [enableMultiprocessOnLinuxOption.cliFlag]: TypeOfOption<typeof enableMultiprocessOnLinuxOption>;
373
387
  repro: boolean;
374
388
  'image-sequence-pattern': string;
389
+ 'license-key': string;
390
+ [publicLicenseKeyOption.cliFlag]: string;
375
391
  };
376
392
  export declare const parseCommandLine: () => void;
377
393
  export {};
@@ -5,7 +5,7 @@ const client_1 = require("@remotion/renderer/client");
5
5
  const config_1 = require("./config");
6
6
  const log_1 = require("./log");
7
7
  const parsed_cli_1 = require("./parsed-cli");
8
- const { beepOnFinishOption, colorSpaceOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, } = client_1.BrowserSafeApis.options;
8
+ const { beepOnFinishOption, colorSpaceOption, disallowParallelEncodingOption, offthreadVideoCacheSizeInBytesOption, encodingBufferSizeOption, encodingMaxRateOption, deleteAfterOption, folderExpiryOption, enableMultiprocessOnLinuxOption, numberOfGifLoopsOption, x264Option, enforceAudioOption, jpegQualityOption, audioBitrateOption, videoBitrateOption, audioCodecOption, publicPathOption, audioLatencyHintOption, darkModeOption, publicLicenseKeyOption, } = client_1.BrowserSafeApis.options;
9
9
  const parseCommandLine = () => {
10
10
  if (parsed_cli_1.parsedCli['pixel-format']) {
11
11
  config_1.Config.setPixelFormat(parsed_cli_1.parsedCli['pixel-format']);
@@ -55,6 +55,13 @@ const parseCommandLine = () => {
55
55
  if (parsed_cli_1.parsedCli['prores-profile']) {
56
56
  config_1.Config.setProResProfile(String(parsed_cli_1.parsedCli['prores-profile']));
57
57
  }
58
+ if (parsed_cli_1.parsedCli['license-key'] &&
59
+ parsed_cli_1.parsedCli['license-key'].startsWith('rm_pub_')) {
60
+ config_1.Config.setPublicLicenseKey(parsed_cli_1.parsedCli['license-key']);
61
+ }
62
+ if (parsed_cli_1.parsedCli['public-license-key']) {
63
+ config_1.Config.setPublicLicenseKey(parsed_cli_1.parsedCli['public-license-key']);
64
+ }
58
65
  if (typeof parsed_cli_1.parsedCli.quality !== 'undefined') {
59
66
  log_1.Log.warn({ indent: false, logLevel: 'info' }, 'The --quality flag has been renamed to --jpeg-quality instead.');
60
67
  config_1.Config.setJpegQuality(parsed_cli_1.parsedCli.quality);
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.397",
6
+ "version": "4.0.398",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -36,17 +36,17 @@
36
36
  "author": "Jonny Burger <jonny@remotion.dev>",
37
37
  "license": "SEE LICENSE IN LICENSE.md",
38
38
  "dependencies": {
39
- "@remotion/bundler": "4.0.397",
40
- "@remotion/media-utils": "4.0.397",
41
- "@remotion/player": "4.0.397",
42
- "@remotion/renderer": "4.0.397",
43
- "@remotion/studio-shared": "4.0.397",
44
- "@remotion/studio-server": "4.0.397",
45
- "@remotion/studio": "4.0.397",
39
+ "@remotion/bundler": "4.0.398",
40
+ "@remotion/media-utils": "4.0.398",
41
+ "@remotion/player": "4.0.398",
42
+ "@remotion/renderer": "4.0.398",
43
+ "@remotion/studio-shared": "4.0.398",
44
+ "@remotion/studio-server": "4.0.398",
45
+ "@remotion/studio": "4.0.398",
46
46
  "dotenv": "9.0.2",
47
47
  "minimist": "1.2.6",
48
48
  "prompts": "2.4.2",
49
- "remotion": "4.0.397"
49
+ "remotion": "4.0.398"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=16.8.0",
@@ -57,14 +57,14 @@
57
57
  "@types/prompts": "^2.4.1",
58
58
  "@types/prettier": "^2.7.2",
59
59
  "@types/node": "20.12.14",
60
- "@remotion/zod-types": "4.0.397",
61
- "@remotion/tailwind-v4": "4.0.397",
62
- "@remotion/enable-scss": "4.0.397",
63
- "@remotion/skia": "4.0.397",
60
+ "@remotion/zod-types": "4.0.398",
61
+ "@remotion/tailwind-v4": "4.0.398",
62
+ "@remotion/enable-scss": "4.0.398",
63
+ "@remotion/skia": "4.0.398",
64
64
  "react": "19.2.3",
65
65
  "react-dom": "19.2.3",
66
66
  "zod": "3.22.3",
67
- "@remotion/eslint-config-internal": "4.0.397",
67
+ "@remotion/eslint-config-internal": "4.0.398",
68
68
  "eslint": "9.19.0"
69
69
  },
70
70
  "keywords": [