@remotion/cli 4.0.422 → 4.0.424

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.
Files changed (68) hide show
  1. package/dist/add.d.ts +1 -2
  2. package/dist/benchmark.d.ts +1 -2
  3. package/dist/browser/ensure.d.ts +1 -2
  4. package/dist/browser/index.d.ts +1 -2
  5. package/dist/browser-download-bar.d.ts +2 -2
  6. package/dist/bundle.d.ts +1 -2
  7. package/dist/chalk/index.js +1 -1
  8. package/dist/check-for-npm-run-flag-pass.d.ts +1 -2
  9. package/dist/cleanup-before-quit.d.ts +2 -3
  10. package/dist/cloudrun-command.d.ts +1 -2
  11. package/dist/code-frame.d.ts +2 -2
  12. package/dist/compositions.d.ts +1 -2
  13. package/dist/config/image-format.d.ts +4 -5
  14. package/dist/config/index.d.ts +3 -5
  15. package/dist/config/index.js +3 -6
  16. package/dist/config/pixel-format.d.ts +2 -3
  17. package/dist/config/prores-profile.d.ts +2 -3
  18. package/dist/determine-image-format.d.ts +4 -6
  19. package/dist/determine-image-format.js +10 -17
  20. package/dist/entry-point.d.ts +1 -2
  21. package/dist/extra-packages.js +1 -1
  22. package/dist/ffmpeg.d.ts +6 -7
  23. package/dist/get-cli-options.d.ts +4 -6
  24. package/dist/get-cli-options.js +0 -1
  25. package/dist/get-composition-id.d.ts +3 -3
  26. package/dist/get-composition-with-dimension-override.d.ts +4 -4
  27. package/dist/get-env.d.ts +1 -2
  28. package/dist/get-filename.d.ts +1 -2
  29. package/dist/get-github-repository.d.ts +2 -3
  30. package/dist/get-input-props.d.ts +1 -2
  31. package/dist/get-render-defaults.js +9 -3
  32. package/dist/gpu.d.ts +1 -2
  33. package/dist/image-formats.d.ts +3 -5
  34. package/dist/image-formats.js +6 -11
  35. package/dist/index.d.ts +28 -30
  36. package/dist/initialize-cli.d.ts +1 -2
  37. package/dist/lambda-command.d.ts +1 -2
  38. package/dist/log.js +1 -1
  39. package/dist/make-on-download.d.ts +2 -2
  40. package/dist/parse-command-line.d.ts +26 -3
  41. package/dist/print-compositions.d.ts +1 -2
  42. package/dist/print-error.d.ts +1 -2
  43. package/dist/print-help.d.ts +1 -2
  44. package/dist/progress-bar.d.ts +4 -4
  45. package/dist/render-flows/add-log-to-aggregate-progress.d.ts +3 -5
  46. package/dist/render-flows/render.d.ts +13 -15
  47. package/dist/render-flows/still.d.ts +5 -5
  48. package/dist/render-flows/still.js +4 -4
  49. package/dist/render-queue/process-video.d.ts +1 -2
  50. package/dist/render-queue/queue.d.ts +1 -2
  51. package/dist/render.d.ts +1 -2
  52. package/dist/setup-cache.d.ts +2 -3
  53. package/dist/should-use-non-overlaying-logger.d.ts +1 -2
  54. package/dist/show-compositions-picker.d.ts +2 -5
  55. package/dist/skills.d.ts +2 -3
  56. package/dist/still.d.ts +1 -2
  57. package/dist/studio.d.ts +1 -2
  58. package/dist/upgrade.d.ts +1 -2
  59. package/dist/user-passed-output-location.js +0 -1
  60. package/dist/versions.d.ts +2 -3
  61. package/package.json +18 -17
  62. package/remotion-cli.js +1 -1
  63. package/dist/config/number-of-shared-audio-tags.d.ts +0 -2
  64. package/dist/config/number-of-shared-audio-tags.js +0 -12
  65. package/dist/detect-remotion-server.d.ts +0 -9
  66. package/dist/detect-remotion-server.js +0 -45
  67. package/dist/is-port-open.d.ts +0 -1
  68. package/dist/is-port-open.js +0 -24
package/dist/add.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { type LogLevel } from '@remotion/renderer';
2
1
  export declare const addCommand: ({ remotionRoot, packageManager, packageNames, logLevel, args, }: {
3
2
  remotionRoot: string;
4
3
  packageManager: string | undefined;
5
4
  packageNames: string[];
6
- logLevel: LogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
7
6
  args: string[];
8
7
  }) => Promise<void>;
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const benchmarkCommand: (remotionRoot: string, args: string[], logLevel: LogLevel) => Promise<void>;
1
+ export declare const benchmarkCommand: (remotionRoot: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const ENSURE_COMMAND = "ensure";
3
- export declare const ensureCommand: (logLevel: LogLevel) => Promise<void>;
2
+ export declare const ensureCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const BROWSER_COMMAND = "browser";
3
- export declare const browserCommand: (args: string[], logLevel: LogLevel) => Promise<void> | undefined;
2
+ export declare const browserCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void> | undefined;
@@ -1,8 +1,8 @@
1
- import type { LogLevel, OnBrowserDownload } from '@remotion/renderer';
1
+ import type { OnBrowserDownload } from '@remotion/renderer';
2
2
  import type { BrowserDownloadState } from '@remotion/studio-shared';
3
3
  export declare const defaultBrowserDownloadProgress: ({ indent, logLevel, quiet, onProgress, }: {
4
4
  indent: boolean;
5
- logLevel: LogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
6
6
  quiet: boolean;
7
7
  onProgress: (progress: BrowserDownloadState) => void;
8
8
  }) => OnBrowserDownload;
package/dist/bundle.d.ts CHANGED
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const bundleCommand: (remotionRoot: string, args: string[], logLevel: LogLevel) => Promise<void>;
1
+ export declare const bundleCommand: (remotionRoot: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.chalk = void 0;
4
4
  const renderer_1 = require("@remotion/renderer");
5
- exports.chalk = renderer_1.RenderInternals.chalk;
5
+ ({ chalk: exports.chalk } = renderer_1.RenderInternals);
@@ -1,5 +1,4 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const checkForNpmRunFlagPass: ({ indent, logLevel, }: {
3
2
  indent: boolean;
4
- logLevel: LogLevel;
3
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
5
4
  }) => void;
@@ -1,10 +1,9 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const cleanupBeforeQuit: ({ indent, logLevel, }: {
3
2
  indent: boolean;
4
- logLevel: LogLevel;
3
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
5
4
  }) => void;
6
5
  export declare const registerCleanupJob: (label: string, job: () => void) => void;
7
6
  export declare const handleCtrlC: ({ indent, logLevel, }: {
8
7
  indent: boolean;
9
- logLevel: LogLevel;
8
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
10
9
  }) => void;
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const cloudrunCommand: (remotionRoot: string, args: string[], logLevel: LogLevel) => Promise<never>;
1
+ export declare const cloudrunCommand: (remotionRoot: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<never>;
@@ -1,5 +1,5 @@
1
- import type { ErrorWithStackFrame, LogLevel } from '@remotion/renderer';
1
+ import type { ErrorWithStackFrame } from '@remotion/renderer';
2
2
  export declare const printCodeFrameAndStack: ({ symbolicated, logLevel, }: {
3
3
  symbolicated: ErrorWithStackFrame;
4
- logLevel: LogLevel;
4
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
5
5
  }) => void;
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const listCompositionsCommand: (remotionRoot: string, args: string[], logLevel: LogLevel) => Promise<void>;
1
+ export declare const listCompositionsCommand: (remotionRoot: string, args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,5 +1,4 @@
1
- import type { StillImageFormat, VideoImageFormat } from '@remotion/renderer';
2
- export declare const setStillImageFormat: (format: StillImageFormat) => void;
3
- export declare const setVideoImageFormat: (format: VideoImageFormat) => void;
4
- export declare const getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
5
- export declare const getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
1
+ export declare const setStillImageFormat: (format: "jpeg" | "pdf" | "png" | "webp") => void;
2
+ export declare const setVideoImageFormat: (format: "jpeg" | "none" | "png") => void;
3
+ export declare const getUserPreferredStillImageFormat: () => "jpeg" | "pdf" | "png" | "webp" | undefined;
4
+ export declare const getUserPreferredVideoImageFormat: () => "jpeg" | "none" | "png" | undefined;
@@ -410,8 +410,8 @@ export declare const Config: FlatConfig;
410
410
  export declare const ConfigInternals: {
411
411
  getRange: () => FrameRange | null;
412
412
  getBrowser: () => null;
413
- getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
414
- getProResProfile: () => import("remotion")._InternalTypes["ProResProfile"] | undefined;
413
+ getPixelFormat: () => "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
414
+ getProResProfile: () => "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | undefined;
415
415
  getBrowserExecutable: () => BrowserExecutable;
416
416
  getStudioPort: () => number | undefined;
417
417
  getRendererPortFromConfigFile: () => number | null;
@@ -423,8 +423,6 @@ export declare const ConfigInternals: {
423
423
  getStillFrame: () => number;
424
424
  getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
425
425
  getDotEnvLocation: () => string | null;
426
- getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
427
- getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
428
426
  getWebpackOverrideFn: () => WebpackOverrideFn;
429
427
  getWebpackCaching: () => boolean;
430
428
  getOutputLocation: () => string | null;
@@ -441,5 +439,5 @@ export declare const ConfigInternals: {
441
439
  getShouldOpenBrowser: () => boolean;
442
440
  getChromiumUserAgent: () => string | null;
443
441
  getBufferStateDelayInMilliseconds: () => number | null;
444
- getOutputCodecOrUndefined: () => import("@remotion/renderer/dist/codec").CodecOrUndefined;
442
+ getOutputCodecOrUndefined: () => CodecOrUndefined;
445
443
  };
@@ -7,7 +7,6 @@ const chromium_flags_1 = require("./chromium-flags");
7
7
  const concurrency_1 = require("./concurrency");
8
8
  const env_file_1 = require("./env-file");
9
9
  const frame_range_1 = require("./frame-range");
10
- const image_format_1 = require("./image-format");
11
10
  const image_sequence_1 = require("./image-sequence");
12
11
  const output_location_1 = require("./output-location");
13
12
  const override_webpack_1 = require("./override-webpack");
@@ -40,7 +39,7 @@ const user_agent_1 = require("./user-agent");
40
39
  const webpack_caching_2 = require("./webpack-caching");
41
40
  const webpack_poll_1 = require("./webpack-poll");
42
41
  const width_1 = require("./width");
43
- 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, askAIOption, publicLicenseKeyOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, forceNewStudioOption, numberOfSharedAudioTagsOption, ipv4Option, } = client_1.BrowserSafeApis.options;
42
+ 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, askAIOption, publicLicenseKeyOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, forceNewStudioOption, numberOfSharedAudioTagsOption, ipv4Option, stillImageFormatOption, videoImageFormatOption, } = client_1.BrowserSafeApis.options;
44
43
  exports.Config = {
45
44
  get Bundling() {
46
45
  throw new Error('The config format has changed. Change `Config.Bundling.*()` calls to `Config.*()` in your config file.');
@@ -94,8 +93,8 @@ exports.Config = {
94
93
  throw new Error('Config.setImageFormat() has been renamed - use Config.setVideoImageFormat() instead (default "jpeg"). For rendering stills, use Config.setStillImageFormat() (default "png")');
95
94
  },
96
95
  setJpegQuality: jpegQualityOption.setConfig,
97
- setStillImageFormat: image_format_1.setStillImageFormat,
98
- setVideoImageFormat: image_format_1.setVideoImageFormat,
96
+ setStillImageFormat: stillImageFormatOption.setConfig,
97
+ setVideoImageFormat: videoImageFormatOption.setConfig,
99
98
  setMetadata: metadata_1.setMetadata,
100
99
  setEncodingMaxRate: encodingMaxRateOption.setConfig,
101
100
  setEncodingBufferSize: encodingBufferSizeOption.setConfig,
@@ -159,8 +158,6 @@ exports.ConfigInternals = {
159
158
  getStillFrame: still_frame_1.getStillFrame,
160
159
  getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
161
160
  getDotEnvLocation: env_file_1.getDotEnvLocation,
162
- getUserPreferredStillImageFormat: image_format_1.getUserPreferredStillImageFormat,
163
- getUserPreferredVideoImageFormat: image_format_1.getUserPreferredVideoImageFormat,
164
161
  getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
165
162
  getWebpackCaching: webpack_caching_1.getWebpackCaching,
166
163
  getOutputLocation: output_location_1.getOutputLocation,
@@ -1,3 +1,2 @@
1
- import type { PixelFormat } from '@remotion/renderer';
2
- export declare const setPixelFormat: (format: PixelFormat) => void;
3
- export declare const getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
1
+ export declare const setPixelFormat: (format: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le") => void;
2
+ export declare const getPixelFormat: () => "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
@@ -1,3 +1,2 @@
1
- import type { _InternalTypes } from 'remotion';
2
- export declare const getProResProfile: () => _InternalTypes["ProResProfile"] | undefined;
3
- export declare const setProResProfile: (profile: _InternalTypes["ProResProfile"] | undefined) => void;
1
+ export declare const getProResProfile: () => "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | undefined;
2
+ export declare const setProResProfile: (profile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | undefined) => void;
@@ -1,12 +1,10 @@
1
- import type { StillImageFormat, VideoImageFormat } from '@remotion/renderer';
2
- export declare const determineFinalStillImageFormat: ({ downloadName, outName, configImageFormat, cliFlag, isLambda, fromUi, }: {
1
+ export declare const determineFinalStillImageFormat: ({ downloadName, outName, configuredImageFormat, isLambda, fromUi, }: {
3
2
  downloadName: string | null;
4
3
  outName: string | null;
5
- configImageFormat: StillImageFormat | null;
6
- cliFlag: StillImageFormat | VideoImageFormat | null;
4
+ configuredImageFormat: "jpeg" | "pdf" | "png" | "webp" | null;
7
5
  isLambda: boolean;
8
- fromUi: StillImageFormat | null;
6
+ fromUi: "jpeg" | "pdf" | "png" | "webp" | null;
9
7
  }) => {
10
- format: StillImageFormat;
8
+ format: "jpeg" | "pdf" | "png" | "webp";
11
9
  source: string;
12
10
  };
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.determineFinalStillImageFormat = void 0;
4
+ const client_1 = require("@remotion/renderer/client");
5
+ const { cliFlag } = client_1.BrowserSafeApis.options.stillImageFormatOption;
4
6
  const deriveExtensionFromFilename = (filename) => {
5
7
  if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.png')) {
6
8
  return 'png';
@@ -19,7 +21,7 @@ const deriveExtensionFromFilename = (filename) => {
19
21
  }
20
22
  return null;
21
23
  };
22
- const determineFinalStillImageFormat = ({ downloadName, outName, configImageFormat, cliFlag, isLambda, fromUi, }) => {
24
+ const determineFinalStillImageFormat = ({ downloadName, outName, configuredImageFormat, isLambda, fromUi, }) => {
23
25
  if (fromUi) {
24
26
  return { format: fromUi, source: 'via UI' };
25
27
  }
@@ -32,29 +34,20 @@ const determineFinalStillImageFormat = ({ downloadName, outName, configImageForm
32
34
  throw new TypeError(`Image format mismatch: ${outName} was given as the ${outNameDescription} and ${downloadName} was given as the download name, but the extensions don't match.`);
33
35
  }
34
36
  if (downloadNameExtension) {
35
- if (cliFlag && downloadNameExtension !== cliFlag) {
36
- throw new TypeError(`Image format mismatch: ${downloadName} was given as the download name, but --image-format=${cliFlag} was passed. The image formats must match.`);
37
+ if (configuredImageFormat &&
38
+ downloadNameExtension !== configuredImageFormat) {
39
+ throw new TypeError(`Image format mismatch: ${downloadName} was given as the download name, but the image format "${configuredImageFormat}" was configured via --${cliFlag} or Config.setStillImageFormat(). The image formats must match.`);
37
40
  }
38
41
  return { format: downloadNameExtension, source: 'Download name extension' };
39
42
  }
40
43
  if (outNameExtension) {
41
- if (cliFlag && outNameExtension !== cliFlag) {
42
- throw new TypeError(`Image format mismatch: ${outName} was given as the ${outNameDescription}, but --image-format=${cliFlag} was passed. The image formats must match.`);
44
+ if (configuredImageFormat && outNameExtension !== configuredImageFormat) {
45
+ throw new TypeError(`Image format mismatch: ${outName} was given as the ${outNameDescription}, but the image format "${configuredImageFormat}" was configured via --${cliFlag} or Config.setStillImageFormat(). The image formats must match.`);
43
46
  }
44
47
  return { format: outNameExtension, source: 'Out name extension' };
45
48
  }
46
- if (cliFlag === 'none') {
47
- throw new TypeError('The --image-format flag must not be "none" for stills.');
48
- }
49
- if (cliFlag !== null) {
50
- return { format: cliFlag, source: '--image-format flag' };
51
- }
52
- if (configImageFormat !== null) {
53
- // @ts-expect-error
54
- if (configImageFormat === 'none') {
55
- throw new Error('The still simage format in the config file must not be "none"');
56
- }
57
- return { format: configImageFormat, source: 'Config file' };
49
+ if (configuredImageFormat !== null) {
50
+ return { format: configuredImageFormat, source: `--${cliFlag} or config` };
58
51
  }
59
52
  return { format: 'png', source: 'Default' };
60
53
  };
@@ -1,9 +1,8 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  type FoundReason = 'argument passed - found in cwd' | 'argument passed - found in root' | 'argument passed' | 'config file' | 'common paths' | 'none found';
3
2
  export declare const findEntryPoint: ({ args, logLevel, remotionRoot, allowDirectory, }: {
4
3
  args: (string | number)[];
5
4
  remotionRoot: string;
6
- logLevel: LogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
7
6
  allowDirectory: boolean;
8
7
  }) => {
9
8
  file: string | null;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EXTRA_PACKAGES_DOCS = exports.EXTRA_PACKAGES = void 0;
4
4
  exports.EXTRA_PACKAGES = {
5
5
  zod: '3.22.3',
6
- mediabunny: '1.29.0',
6
+ mediabunny: '1.34.4',
7
7
  };
8
8
  exports.EXTRA_PACKAGES_DOCS = {
9
9
  zod: 'https://www.remotion.dev/docs/schemas#prerequisites',
package/dist/ffmpeg.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const dynamicLibEnv: (indent: boolean, logLevel: LogLevel, binariesDirectory: string | null) => {
3
- DYLD_LIBRARY_PATH: string;
1
+ export declare const dynamicLibEnv: (indent: boolean, logLevel: "error" | "info" | "trace" | "verbose" | "warn", binariesDirectory: string | null) => {
4
2
  RUST_BACKTRACE: string;
3
+ DYLD_LIBRARY_PATH: string;
5
4
  } | {
6
- PATH: string;
7
5
  RUST_BACKTRACE: string;
6
+ PATH: string;
8
7
  } | {
9
- LD_LIBRARY_PATH: string;
10
8
  RUST_BACKTRACE: string;
9
+ LD_LIBRARY_PATH: string;
11
10
  };
12
- export declare const ffmpegCommand: (args: string[], logLevel: LogLevel) => never;
13
- export declare const ffprobeCommand: (args: string[], logLevel: LogLevel) => never;
11
+ export declare const ffmpegCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => never;
12
+ export declare const ffprobeCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => never;
@@ -1,8 +1,7 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const getAndValidateAbsoluteOutputFile: (relativeOutputLocation: string, overwrite: boolean, logLevel: LogLevel) => string;
1
+ export declare const getAndValidateAbsoluteOutputFile: (relativeOutputLocation: string, overwrite: boolean, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => string;
3
2
  export declare const getCliOptions: (options: {
4
3
  isStill: boolean;
5
- logLevel: LogLevel;
4
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
6
5
  indent: boolean;
7
6
  }) => {
8
7
  concurrency: string | number | null;
@@ -10,8 +9,8 @@ export declare const getCliOptions: (options: {
10
9
  shouldOutputImageSequence: boolean;
11
10
  inputProps: Record<string, unknown>;
12
11
  envVariables: Record<string, string>;
13
- pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
14
- proResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
12
+ pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
13
+ proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | undefined;
15
14
  everyNthFrame: number;
16
15
  stillFrame: number;
17
16
  browserExecutable: import("@remotion/renderer").BrowserExecutable;
@@ -21,5 +20,4 @@ export declare const getCliOptions: (options: {
21
20
  ffmpegOverride: import("@remotion/renderer").FfmpegOverrideFn;
22
21
  height: number | null;
23
22
  width: number | null;
24
- configFileImageFormat: "png" | "jpeg" | "none" | undefined;
25
23
  };
@@ -70,7 +70,6 @@ const getCliOptions = (options) => {
70
70
  ffmpegOverride: config_1.ConfigInternals.getFfmpegOverrideFunction(),
71
71
  height,
72
72
  width,
73
- configFileImageFormat: config_1.ConfigInternals.getUserPreferredVideoImageFormat(),
74
73
  };
75
74
  };
76
75
  exports.getCliOptions = getCliOptions;
@@ -1,4 +1,4 @@
1
- import type { BrowserExecutable, ChromeMode, ChromiumOptions, HeadlessBrowser, LogLevel, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
1
+ import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
2
2
  import type { VideoConfig } from 'remotion';
3
3
  export declare const getCompositionId: ({ args, compositionIdFromUi, serializedInputPropsWithCustomSchema, puppeteerInstance, envVariables, timeoutInMilliseconds, chromiumOptions, port, browserExecutable, serveUrlOrWebpackUrl, logLevel, indent, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
4
4
  args: (string | number)[];
@@ -11,14 +11,14 @@ export declare const getCompositionId: ({ args, compositionIdFromUi, serializedI
11
11
  port: number | null;
12
12
  browserExecutable: BrowserExecutable;
13
13
  serveUrlOrWebpackUrl: string;
14
- logLevel: LogLevel;
14
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
15
15
  indent: boolean;
16
16
  server: RemotionServer;
17
17
  offthreadVideoCacheSizeInBytes: number | null;
18
18
  offthreadVideoThreads: number | null;
19
19
  binariesDirectory: string | null;
20
20
  onBrowserDownload: OnBrowserDownload;
21
- chromeMode: ChromeMode;
21
+ chromeMode: "chrome-for-testing" | "headless-shell";
22
22
  mediaCacheSizeInBytes: number | null;
23
23
  }) => Promise<{
24
24
  compositionId: string;
@@ -1,4 +1,4 @@
1
- import type { BrowserExecutable, ChromeMode, ChromiumOptions, HeadlessBrowser, LogLevel, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
1
+ import type { BrowserExecutable, ChromiumOptions, HeadlessBrowser, OnBrowserDownload, RemotionServer } from '@remotion/renderer';
2
2
  import type { VideoConfig } from 'remotion';
3
3
  export declare const getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, offthreadVideoThreads, binariesDirectory, onBrowserDownload, chromeMode, mediaCacheSizeInBytes, }: {
4
4
  height: number | null;
@@ -10,17 +10,17 @@ export declare const getCompositionWithDimensionOverride: ({ height, width, args
10
10
  envVariables: Record<string, string>;
11
11
  chromiumOptions: ChromiumOptions;
12
12
  port: number | null;
13
- browserExecutable: BrowserExecutable | null;
13
+ browserExecutable: BrowserExecutable;
14
14
  serveUrlOrWebpackUrl: string;
15
15
  indent: boolean;
16
- logLevel: LogLevel;
16
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
17
17
  serializedInputPropsWithCustomSchema: string;
18
18
  server: RemotionServer;
19
19
  offthreadVideoCacheSizeInBytes: number | null;
20
20
  offthreadVideoThreads: number | null;
21
21
  binariesDirectory: string | null;
22
22
  onBrowserDownload: OnBrowserDownload;
23
- chromeMode: ChromeMode;
23
+ chromeMode: "chrome-for-testing" | "headless-shell";
24
24
  mediaCacheSizeInBytes: number | null;
25
25
  }) => Promise<{
26
26
  compositionId: string;
package/dist/get-env.d.ts CHANGED
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const getEnvironmentVariables: (onUpdate: null | ((newProps: Record<string, string>) => void), logLevel: LogLevel, indent: boolean) => Record<string, string>;
1
+ export declare const getEnvironmentVariables: (onUpdate: ((newProps: Record<string, string>) => void) | null, logLevel: "error" | "info" | "trace" | "verbose" | "warn", indent: boolean) => Record<string, string>;
@@ -1,4 +1,3 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const getOutputFilename: ({ imageSequence, compositionName, compositionDefaultOutName, defaultExtension, args, fromUi, indent, logLevel, }: {
3
2
  imageSequence: boolean;
4
3
  compositionName: string;
@@ -7,5 +6,5 @@ export declare const getOutputFilename: ({ imageSequence, compositionName, compo
7
6
  args: (string | number)[];
8
7
  fromUi: string | null;
9
8
  indent: boolean;
10
- logLevel: LogLevel;
9
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
11
10
  }) => string;
@@ -1,4 +1,3 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  import type { GitSource } from '@remotion/studio-shared';
3
2
  export type ParsedGitRemote = {
4
3
  type: 'github';
@@ -11,9 +10,9 @@ export declare const getGitRemoteOrigin: (gitConfig: string) => {
11
10
  url: string | null;
12
11
  } | null;
13
12
  export declare const normalizeGitRemoteUrl: (url: string) => ParsedGitRemote | null;
14
- export declare const getGifRef: (logLevel: LogLevel) => string | null;
13
+ export declare const getGifRef: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => string | null;
15
14
  export declare const getGitSource: ({ remotionRoot, disableGitSource, logLevel, }: {
16
15
  remotionRoot: string;
17
16
  disableGitSource: boolean;
18
- logLevel: LogLevel;
17
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
19
18
  }) => GitSource | null;
@@ -1,2 +1 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
- export declare const getInputProps: (onUpdate: ((newProps: Record<string, unknown>) => void) | null, logLevel: LogLevel) => Record<string, unknown>;
1
+ export declare const getInputProps: (onUpdate: ((newProps: Record<string, unknown>) => void) | null, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Record<string, unknown>;
@@ -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, publicLicenseKeyOption, } = 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, stillImageFormatOption, videoImageFormatOption, } = client_1.BrowserSafeApis.options;
9
9
  const getRenderDefaults = () => {
10
10
  var _a;
11
11
  const defaultJpegQuality = jpegQualityOption.getValue({
@@ -89,8 +89,12 @@ const getRenderDefaults = () => {
89
89
  commandLine: parsed_cli_1.parsedCli,
90
90
  }).value;
91
91
  const everyNthFrame = config_1.ConfigInternals.getEveryNthFrame();
92
- const stillImageFormat = config_1.ConfigInternals.getUserPreferredStillImageFormat();
93
- const videoImageFormat = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
92
+ const stillImageFormat = stillImageFormatOption.getValue({
93
+ commandLine: parsed_cli_1.parsedCli,
94
+ }).value;
95
+ const videoImageFormat = videoImageFormatOption.getValue({
96
+ commandLine: parsed_cli_1.parsedCli,
97
+ }).value;
94
98
  const disableWebSecurity = config_1.ConfigInternals.getChromiumDisableWebSecurity();
95
99
  const ignoreCertificateErrors = config_1.ConfigInternals.getIgnoreCertificateErrors();
96
100
  const darkMode = darkModeOption.getValue({
@@ -98,6 +102,7 @@ const getRenderDefaults = () => {
98
102
  }).value;
99
103
  const userAgent = config_1.ConfigInternals.getChromiumUserAgent();
100
104
  const metadata = config_1.ConfigInternals.getMetadata();
105
+ const outputLocation = config_1.ConfigInternals.getOutputLocation();
101
106
  const maxConcurrency = renderer_1.RenderInternals.getMaxConcurrency();
102
107
  const minConcurrency = renderer_1.RenderInternals.getMinConcurrency();
103
108
  return {
@@ -141,6 +146,7 @@ const getRenderDefaults = () => {
141
146
  chromeMode,
142
147
  mediaCacheSizeInBytes,
143
148
  publicLicenseKey,
149
+ outputLocation,
144
150
  };
145
151
  };
146
152
  exports.getRenderDefaults = getRenderDefaults;
package/dist/gpu.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import type { LogLevel } from '@remotion/renderer';
2
1
  export declare const GPU_COMMAND = "gpu";
3
- export declare const gpuCommand: (logLevel: LogLevel) => Promise<void>;
2
+ export declare const gpuCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
@@ -1,6 +1,4 @@
1
- import type { VideoImageFormat } from '@remotion/renderer';
2
- import { ConfigInternals } from './config';
3
1
  export declare const getVideoImageFormat: ({ codec, uiImageFormat, }: {
4
- codec: ReturnType<typeof ConfigInternals.getOutputCodecOrUndefined>;
5
- uiImageFormat: VideoImageFormat | null;
6
- }) => VideoImageFormat;
2
+ codec: import("@remotion/renderer").CodecOrUndefined;
3
+ uiImageFormat: "jpeg" | "none" | "png" | null;
4
+ }) => "jpeg" | "none" | "png";
@@ -1,23 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getVideoImageFormat = void 0;
4
- const renderer_1 = require("@remotion/renderer");
4
+ const client_1 = require("@remotion/renderer/client");
5
5
  const pure_1 = require("@remotion/renderer/pure");
6
- const config_1 = require("./config");
7
6
  const parsed_cli_1 = require("./parsed-cli");
8
7
  const getVideoImageFormat = ({ codec, uiImageFormat, }) => {
9
8
  if (uiImageFormat !== null) {
10
9
  return uiImageFormat;
11
10
  }
12
- if (typeof parsed_cli_1.parsedCli['image-format'] !== 'undefined') {
13
- if (!renderer_1.RenderInternals.validVideoImageFormats.includes(parsed_cli_1.parsedCli['image-format'])) {
14
- throw new Error(`Invalid image format: ${parsed_cli_1.parsedCli['image-format']}`);
15
- }
16
- return parsed_cli_1.parsedCli['image-format'];
17
- }
18
- const configFileOption = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
19
- if (typeof configFileOption !== 'undefined') {
20
- return configFileOption;
11
+ const configured = client_1.BrowserSafeApis.options.videoImageFormatOption.getValue({
12
+ commandLine: parsed_cli_1.parsedCli,
13
+ }).value;
14
+ if (configured !== null) {
15
+ return configured;
21
16
  }
22
17
  if (pure_1.NoReactAPIs.isAudioCodec(codec)) {
23
18
  return 'none';