@remotion/cli 4.0.481 → 4.0.483

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/benchmark.js CHANGED
@@ -12,7 +12,6 @@ const preview_server_1 = require("./config/preview-server");
12
12
  const convert_entry_point_to_serve_url_1 = require("./convert-entry-point-to-serve-url");
13
13
  const entry_point_1 = require("./entry-point");
14
14
  const get_cli_options_1 = require("./get-cli-options");
15
- const image_formats_1 = require("./image-formats");
16
15
  const log_1 = require("./log");
17
16
  const make_progress_bar_1 = require("./make-progress-bar");
18
17
  const parsed_cli_1 = require("./parsed-cli");
@@ -21,7 +20,7 @@ const setup_cache_1 = require("./setup-cache");
21
20
  const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
22
21
  const show_compositions_picker_1 = require("./show-compositions-picker");
23
22
  const truthy_1 = require("./truthy");
24
- const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, gopSizeOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, mediaCacheSizeInBytesOption, darkModeOption, askAIOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, rspackOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, concurrencyOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, bundleCacheOption, runsOption, sampleRateOption, } = client_1.BrowserSafeApis.options;
23
+ const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, gopSizeOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, videoCodecOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, mediaCacheSizeInBytesOption, darkModeOption, askAIOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, rspackOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, videoImageFormatOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, concurrencyOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, bundleCacheOption, runsOption, sampleRateOption, } = client_1.BrowserSafeApis.options;
25
24
  const { benchmarkConcurrenciesOption } = client_1.BrowserSafeApis.options;
26
25
  const getValidConcurrency = (cliConcurrency) => {
27
26
  const concurrencies = benchmarkConcurrenciesOption.getValue({
@@ -123,18 +122,12 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
123
122
  const durationInFrames = overrideDurationOption.getValue({
124
123
  commandLine: parsed_cli_1.parsedCli,
125
124
  }).value;
126
- const pixelFormat = pixelFormatOption.getValue({
127
- commandLine: parsed_cli_1.parsedCli,
128
- }).value;
129
125
  const browserExecutable = browserExecutableOption.getValue({
130
126
  commandLine: parsed_cli_1.parsedCli,
131
127
  }).value;
132
128
  const everyNthFrame = everyNthFrameOption.getValue({
133
129
  commandLine: parsed_cli_1.parsedCli,
134
130
  }).value;
135
- const proResProfile = proResProfileOption.getValue({
136
- commandLine: parsed_cli_1.parsedCli,
137
- }).value;
138
131
  const userAgent = userAgentOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
139
132
  const disableWebSecurity = disableWebSecurityOption.getValue({
140
133
  commandLine: parsed_cli_1.parsedCli,
@@ -354,14 +347,21 @@ const benchmarkCommand = async (remotionRoot, args, logLevel) => {
354
347
  gopSize,
355
348
  envVariables,
356
349
  frameRange: defaultFrameRange,
357
- imageFormat: (0, image_formats_1.getVideoImageFormat)({
350
+ imageFormat: videoImageFormatOption.getValue({ commandLine: parsed_cli_1.parsedCli }, {
358
351
  codec: videoCodec,
359
- uiImageFormat: null,
360
- }),
352
+ uiVideoImageFormat: null,
353
+ compositionDefaultVideoImageFormat: composition.defaultVideoImageFormat,
354
+ }).value,
361
355
  serializedInputPropsWithCustomSchema,
362
356
  overwrite,
363
- pixelFormat,
364
- proResProfile,
357
+ pixelFormat: pixelFormatOption.getValue({ commandLine: parsed_cli_1.parsedCli }, {
358
+ uiPixelFormat: null,
359
+ compositionDefaultPixelFormat: composition.defaultPixelFormat,
360
+ }).value,
361
+ proResProfile: proResProfileOption.getValue({ commandLine: parsed_cli_1.parsedCli }, {
362
+ uiProResProfile: undefined,
363
+ compositionDefaultProResProfile: composition.defaultProResProfile,
364
+ }).value,
365
365
  x264Preset,
366
366
  jpegQuality,
367
367
  chromiumOptions,
package/dist/index.d.ts CHANGED
@@ -124,10 +124,6 @@ export declare const CliInternals: {
124
124
  remainingArgs: (string | number)[];
125
125
  reason: "argument passed" | "argument passed - found in cwd" | "argument passed - found in root" | "common paths" | "config file" | "none found";
126
126
  };
127
- getVideoImageFormat: ({ codec, uiImageFormat, }: {
128
- codec: import("@remotion/renderer").CodecOrUndefined;
129
- uiImageFormat: "jpeg" | "none" | "png" | null;
130
- }) => "jpeg" | "none" | "png";
131
127
  printCompositions: (compositions: import("remotion").VideoConfig[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
132
128
  listOfRemotionPackages: string[];
133
129
  shouldUseNonOverlayingLogger: ({ logLevel, }: {
package/dist/index.js CHANGED
@@ -29,7 +29,6 @@ const get_github_repository_1 = require("./get-github-repository");
29
29
  const gpu_1 = require("./gpu");
30
30
  const is_supported_1 = require("./hyperlinks/is-supported");
31
31
  const make_link_1 = require("./hyperlinks/make-link");
32
- const image_formats_1 = require("./image-formats");
33
32
  const initialize_cli_1 = require("./initialize-cli");
34
33
  const lambda_command_1 = require("./lambda-command");
35
34
  const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
@@ -190,7 +189,6 @@ exports.CliInternals = {
190
189
  determineFinalStillImageFormat: determine_image_format_1.determineFinalStillImageFormat,
191
190
  minimist: minimist_1.default,
192
191
  findEntryPoint: entry_point_1.findEntryPoint,
193
- getVideoImageFormat: image_formats_1.getVideoImageFormat,
194
192
  printCompositions: print_compositions_1.printCompositions,
195
193
  listOfRemotionPackages: list_of_remotion_packages_1.listOfRemotionPackages,
196
194
  shouldUseNonOverlayingLogger: should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger,
@@ -435,7 +435,10 @@ declare const allowHtmlInCanvasOption: {
435
435
  type: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
436
436
  getValue: ({ commandLine }: {
437
437
  commandLine: Record<string, unknown>;
438
- }) => {
438
+ }, options?: {
439
+ uiPixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
440
+ compositionDefaultPixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
441
+ } | undefined) => {
439
442
  source: string;
440
443
  value: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
441
444
  };
@@ -480,7 +483,10 @@ declare const allowHtmlInCanvasOption: {
480
483
  type: import("@remotion/renderer/client").ProResProfile | undefined;
481
484
  getValue: ({ commandLine }: {
482
485
  commandLine: Record<string, unknown>;
483
- }) => {
486
+ }, options?: {
487
+ uiProResProfile: import("@remotion/renderer/client").ProResProfile | undefined;
488
+ compositionDefaultProResProfile: import("@remotion/renderer/client").ProResProfile | null;
489
+ } | undefined) => {
484
490
  source: string;
485
491
  value: import("@remotion/renderer/client").ProResProfile;
486
492
  } | {
@@ -45,7 +45,7 @@ export declare const renderVideoFlow: ({ remotionRoot, fullEntryPoint, indent, l
45
45
  enforceAudioTrack: boolean;
46
46
  proResProfile: "4444" | "4444-xq" | "hq" | "light" | "proxy" | "standard" | undefined;
47
47
  x264Preset: "fast" | "faster" | "medium" | "placebo" | "slow" | "slower" | "superfast" | "ultrafast" | "veryfast" | "veryslow" | null;
48
- pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le";
48
+ pixelFormat: "yuv420p" | "yuv420p10le" | "yuv422p" | "yuv422p10le" | "yuv444p" | "yuv444p10le" | "yuva420p" | "yuva444p10le" | null;
49
49
  numberOfGifLoops: NumberOfGifLoops;
50
50
  audioCodec: "aac" | "mp3" | "opus" | "pcm-16" | null;
51
51
  disallowParallelEncoding: boolean;
@@ -51,7 +51,6 @@ const get_cli_options_1 = require("../get-cli-options");
51
51
  const get_composition_with_dimension_override_1 = require("../get-composition-with-dimension-override");
52
52
  const get_filename_1 = require("../get-filename");
53
53
  const make_link_1 = require("../hyperlinks/make-link");
54
- const image_formats_1 = require("../image-formats");
55
54
  const log_1 = require("../log");
56
55
  const make_on_download_1 = require("../make-on-download");
57
56
  const on_artifact_1 = require("../on-artifact");
@@ -333,10 +332,14 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
333
332
  doneIn: null,
334
333
  timeRemainingInMilliseconds: null,
335
334
  };
336
- const imageFormat = (0, image_formats_1.getVideoImageFormat)({
335
+ const imageFormat = client_1.BrowserSafeApis.options.videoImageFormatOption.getValue({ commandLine: parsed_cli_1.parsedCli }, {
337
336
  codec: shouldOutputImageSequence ? undefined : codec,
338
- uiImageFormat,
339
- });
337
+ uiVideoImageFormat: uiImageFormat,
338
+ compositionDefaultVideoImageFormat: config.defaultVideoImageFormat,
339
+ }).value;
340
+ if (imageFormat === null) {
341
+ throw new Error('Expected image format to be resolved');
342
+ }
340
343
  const onLog = ({ logLevel: logLogLevel, previewString, tag }) => {
341
344
  (0, add_log_to_aggregate_progress_1.addLogToAggregateProgress)({
342
345
  logs: logsProgress,
@@ -449,8 +452,14 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
449
452
  frameRange,
450
453
  serializedInputPropsWithCustomSchema,
451
454
  overwrite,
452
- pixelFormat,
453
- proResProfile,
455
+ pixelFormat: client_1.BrowserSafeApis.options.pixelFormatOption.getValue({ commandLine: parsed_cli_1.parsedCli }, {
456
+ uiPixelFormat: pixelFormat,
457
+ compositionDefaultPixelFormat: config.defaultPixelFormat,
458
+ }).value,
459
+ proResProfile: client_1.BrowserSafeApis.options.proResProfileOption.getValue({ commandLine: parsed_cli_1.parsedCli }, {
460
+ uiProResProfile: proResProfile,
461
+ compositionDefaultProResProfile: config.defaultProResProfile,
462
+ }).value,
454
463
  x264Preset: x264Preset !== null && x264Preset !== void 0 ? x264Preset : null,
455
464
  jpegQuality: jpegQuality !== null && jpegQuality !== void 0 ? jpegQuality : renderer_1.RenderInternals.DEFAULT_JPEG_QUALITY,
456
465
  chromiumOptions,
package/dist/render.js CHANGED
@@ -11,7 +11,7 @@ const get_cli_options_1 = require("./get-cli-options");
11
11
  const log_1 = require("./log");
12
12
  const parsed_cli_1 = require("./parsed-cli");
13
13
  const render_1 = require("./render-flows/render");
14
- const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, gopSizeOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, mediaCacheSizeInBytesOption, darkModeOption, askAIOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, rspackOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, concurrencyOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, bundleCacheOption, sampleRateOption, } = client_1.BrowserSafeApis.options;
14
+ const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, gopSizeOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, disallowParallelEncodingOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, metadataOption, hardwareAccelerationOption, chromeModeOption, offthreadVideoThreadsOption, audioLatencyHintOption, imageSequencePatternOption, mediaCacheSizeInBytesOption, darkModeOption, askAIOption, experimentalClientSideRenderingOption, keyboardShortcutsOption, rspackOption, browserExecutableOption, everyNthFrameOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, concurrencyOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, bundleCacheOption, sampleRateOption, } = client_1.BrowserSafeApis.options;
15
15
  const render = async (remotionRoot, args, logLevel) => {
16
16
  const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
17
17
  if (!file) {
@@ -43,18 +43,12 @@ const render = async (remotionRoot, args, logLevel) => {
43
43
  const durationInFrames = overrideDurationOption.getValue({
44
44
  commandLine: parsed_cli_1.parsedCli,
45
45
  }).value;
46
- const pixelFormat = pixelFormatOption.getValue({
47
- commandLine: parsed_cli_1.parsedCli,
48
- }).value;
49
46
  const browserExecutable = browserExecutableOption.getValue({
50
47
  commandLine: parsed_cli_1.parsedCli,
51
48
  }).value;
52
49
  const everyNthFrame = everyNthFrameOption.getValue({
53
50
  commandLine: parsed_cli_1.parsedCli,
54
51
  }).value;
55
- const proResProfile = proResProfileOption.getValue({
56
- commandLine: parsed_cli_1.parsedCli,
57
- }).value;
58
52
  const userAgent = userAgentOption.getValue({ commandLine: parsed_cli_1.parsedCli }).value;
59
53
  const disableWebSecurity = disableWebSecurityOption.getValue({
60
54
  commandLine: parsed_cli_1.parsedCli,
@@ -212,9 +206,9 @@ const render = async (remotionRoot, args, logLevel) => {
212
206
  audioBitrate,
213
207
  muted,
214
208
  enforceAudioTrack,
215
- proResProfile,
209
+ proResProfile: undefined,
216
210
  x264Preset,
217
- pixelFormat,
211
+ pixelFormat: null,
218
212
  videoBitrate,
219
213
  encodingMaxRate,
220
214
  encodingBufferSize,
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.481",
6
+ "version": "4.0.483",
7
7
  "description": "Control Remotion features using the `npx remotion` command",
8
8
  "main": "dist/index.js",
9
9
  "bin": {
@@ -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.481",
40
- "@remotion/media-utils": "4.0.481",
41
- "@remotion/player": "4.0.481",
42
- "@remotion/renderer": "4.0.481",
43
- "@remotion/studio-shared": "4.0.481",
44
- "@remotion/studio-server": "4.0.481",
45
- "@remotion/studio": "4.0.481",
39
+ "@remotion/bundler": "4.0.483",
40
+ "@remotion/media-utils": "4.0.483",
41
+ "@remotion/player": "4.0.483",
42
+ "@remotion/renderer": "4.0.483",
43
+ "@remotion/studio-shared": "4.0.483",
44
+ "@remotion/studio-server": "4.0.483",
45
+ "@remotion/studio": "4.0.483",
46
46
  "dotenv": "17.3.1",
47
47
  "minimist": "1.2.6",
48
48
  "prompts": "2.4.2",
49
- "remotion": "4.0.481"
49
+ "remotion": "4.0.483"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=16.8.0",
@@ -57,14 +57,14 @@
57
57
  "@types/prompts": "2.4.9",
58
58
  "@types/prettier": "2.7.2",
59
59
  "@types/node": "20.12.14",
60
- "@remotion/zod-types": "4.0.481",
61
- "@remotion/tailwind-v4": "4.0.481",
62
- "@remotion/enable-scss": "4.0.481",
63
- "@remotion/skia": "4.0.481",
60
+ "@remotion/zod-types": "4.0.483",
61
+ "@remotion/tailwind-v4": "4.0.483",
62
+ "@remotion/enable-scss": "4.0.483",
63
+ "@remotion/skia": "4.0.483",
64
64
  "react": "19.2.3",
65
65
  "react-dom": "19.2.3",
66
66
  "zod": "4.3.6",
67
- "@remotion/eslint-config-internal": "4.0.481",
67
+ "@remotion/eslint-config-internal": "4.0.483",
68
68
  "eslint": "9.19.0",
69
69
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
70
70
  },