@remotion/renderer 4.0.250 → 4.0.251

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.
@@ -146,6 +146,9 @@ const downloadBrowser = async ({ logLevel, indent, onProgress, version, chromeMo
146
146
  fs.renameSync(chromeLinuxFolder, path.join(outputPath, 'chrome-headless-shell-linux-arm64'));
147
147
  }
148
148
  }
149
+ catch (err) {
150
+ return Promise.reject(err);
151
+ }
149
152
  finally {
150
153
  if (await existsAsync(archivePath)) {
151
154
  await unlinkAsync(archivePath);
@@ -100,6 +100,7 @@ const makeBrowserRunner = async ({ executablePath, processArguments, userDataDir
100
100
  // Killing the process group can fail due e.g. to missing permissions.
101
101
  // Let's kill the process via Node API. This delays killing of all child
102
102
  // processes of `this.proc` until the main Node.js process dies.
103
+ logger_1.Log.verbose({ indent, logLevel }, `Could not kill browser process group ${processGroupId}. Killing process via Node.js API`);
103
104
  proc.kill('SIGKILL');
104
105
  }
105
106
  }
package/dist/client.d.ts CHANGED
@@ -394,7 +394,7 @@ export declare const BrowserSafeApis: {
394
394
  webhookCustomDataOption: {
395
395
  name: string;
396
396
  cliFlag: "webhook-custom-data";
397
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
397
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
398
398
  ssrName: "customData";
399
399
  docLink: string;
400
400
  type: Record<string, unknown> | null;
@@ -807,7 +807,7 @@ export declare const BrowserSafeApis: {
807
807
  metadataOption: {
808
808
  name: string;
809
809
  cliFlag: "metadata";
810
- description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
810
+ description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
811
811
  docLink: string;
812
812
  type: import("./options/metadata").Metadata;
813
813
  getValue: ({ commandLine }: {
@@ -9,7 +9,7 @@ export declare const hasSpecifiedUnsupportedHardwareQualifySettings: ({ encoding
9
9
  encodingMaxRate: string | null;
10
10
  encodingBufferSize: string | null;
11
11
  crf: unknown;
12
- }) => "encodingMaxRate" | "encodingBufferSize" | "crf" | null;
12
+ }) => "crf" | "encodingBufferSize" | "encodingMaxRate" | null;
13
13
  export declare const getCodecName: ({ codec, encodingMaxRate, encodingBufferSize, crf, hardwareAcceleration, logLevel, indent, }: {
14
14
  codec: Codec;
15
15
  hardwareAcceleration: HardwareAccelerationOption;
package/dist/index.d.ts CHANGED
@@ -140,7 +140,7 @@ export declare const RenderInternals: {
140
140
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
141
141
  DEFAULT_BROWSER: "chrome";
142
142
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
143
- DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
143
+ DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
144
144
  validateOpenGlRenderer: (option: unknown) => import("./options/gl").OpenGlRenderer | null;
145
145
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
146
146
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
@@ -353,8 +353,8 @@ export declare const RenderInternals: {
353
353
  }) => execa.ExecaChildProcess<string>;
354
354
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
355
355
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
356
- DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
357
- DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
356
+ DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
357
+ DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
358
358
  DEFAULT_JPEG_QUALITY: number;
359
359
  chalk: {
360
360
  enabled: () => boolean;
@@ -1,7 +1,7 @@
1
1
  export declare const validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
2
2
  export type OpenGlRenderer = (typeof validOpenGlRenderers)[number];
3
3
  export declare const DEFAULT_OPENGL_RENDERER: OpenGlRenderer | null;
4
- export declare const getChromiumOpenGlRenderer: () => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
4
+ export declare const getChromiumOpenGlRenderer: () => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
5
5
  export declare const setChromiumOpenGlRenderer: (renderer: OpenGlRenderer) => void;
6
6
  export declare const glOption: {
7
7
  cliFlag: "gl";
@@ -171,7 +171,7 @@ export declare const allOptions: {
171
171
  webhookCustomDataOption: {
172
172
  name: string;
173
173
  cliFlag: "webhook-custom-data";
174
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
174
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
175
175
  ssrName: "customData";
176
176
  docLink: string;
177
177
  type: Record<string, unknown> | null;
@@ -584,7 +584,7 @@ export declare const allOptions: {
584
584
  metadataOption: {
585
585
  name: string;
586
586
  cliFlag: "metadata";
587
- description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
587
+ description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
588
588
  docLink: string;
589
589
  type: import("./metadata").Metadata;
590
590
  getValue: ({ commandLine }: {
@@ -2,7 +2,7 @@ export type Metadata = Record<string, string>;
2
2
  export declare const metadataOption: {
3
3
  name: string;
4
4
  cliFlag: "metadata";
5
- description: (mode: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
5
+ description: (mode: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
6
6
  docLink: string;
7
7
  type: Metadata;
8
8
  getValue: ({ commandLine }: {
@@ -1,7 +1,7 @@
1
1
  export declare const webhookCustomDataOption: {
2
2
  name: string;
3
3
  cliFlag: "webhook-custom-data";
4
- description: (type: "cli" | "ssr") => import("react/jsx-runtime").JSX.Element;
4
+ description: (type: "ssr" | "cli") => import("react/jsx-runtime").JSX.Element;
5
5
  ssrName: "customData";
6
6
  docLink: string;
7
7
  type: Record<string, unknown> | null;
@@ -55,7 +55,7 @@ export type InternalRenderMediaOptions = {
55
55
  port: number | null;
56
56
  cancelSignal: CancelSignal | undefined;
57
57
  browserExecutable: BrowserExecutable | null;
58
- onCtrlCExit: (fn: () => void) => void;
58
+ onCtrlCExit: (label: string, fn: () => void) => void;
59
59
  indent: boolean;
60
60
  server: RemotionServer | undefined;
61
61
  preferLossless: boolean;
@@ -169,7 +169,7 @@ const internalRenderMediaRaw = ({ proResProfile, x264Preset, crf, composition, s
169
169
  ? node_path_1.default.join(workingDir, 'pre-encode.' + (0, get_extension_from_codec_1.getFileExtensionFromCodec)(codec, audioCodec))
170
170
  : null;
171
171
  if (onCtrlCExit && workingDir) {
172
- onCtrlCExit(() => (0, delete_directory_1.deleteDirectory)(workingDir));
172
+ onCtrlCExit(`Delete ${workingDir}`, () => (0, delete_directory_1.deleteDirectory)(workingDir));
173
173
  }
174
174
  (0, validate_even_dimensions_with_codec_1.validateEvenDimensionsWithCodec)({
175
175
  codec,
@@ -2710,7 +2710,7 @@ var chalk = (() => {
2710
2710
  })();
2711
2711
 
2712
2712
  // src/log-level.ts
2713
- var logLevels = ["verbose", "info", "warn", "error"];
2713
+ var logLevels = ["trace", "verbose", "info", "warn", "error"];
2714
2714
  var getNumberForLogLevel = (level) => {
2715
2715
  return logLevels.indexOf(level);
2716
2716
  };
@@ -2745,6 +2745,19 @@ var verboseTag = (str) => {
2745
2745
  return isColorSupported() ? chalk.bgBlack(` ${str} `) : `[${str}]`;
2746
2746
  };
2747
2747
  var Log = {
2748
+ trace: (options, ...args) => {
2749
+ writeInRepro("trace", ...args);
2750
+ if (isEqualOrBelowLogLevel(options.logLevel, "trace")) {
2751
+ if (args.length === 0) {
2752
+ return process.stdout.write(`
2753
+ `);
2754
+ }
2755
+ return console.log(...[
2756
+ options.indent ? INDENT_TOKEN : null,
2757
+ options.tag ? verboseTag(options.tag) : null
2758
+ ].filter(truthy).concat(args.map((a) => chalk.gray(a))));
2759
+ }
2760
+ },
2748
2761
  verbose: (options, ...args) => {
2749
2762
  writeInRepro("verbose", ...args);
2750
2763
  if (isEqualOrBelowLogLevel(options.logLevel, "verbose")) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
4
4
  },
5
5
  "name": "@remotion/renderer",
6
- "version": "4.0.250",
6
+ "version": "4.0.251",
7
7
  "description": "Render Remotion videos using Node.js or Bun",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "extract-zip": "2.0.1",
19
19
  "source-map": "^0.8.0-beta.0",
20
20
  "ws": "8.17.1",
21
- "remotion": "4.0.250",
22
- "@remotion/streaming": "4.0.250"
21
+ "remotion": "4.0.251",
22
+ "@remotion/streaming": "4.0.251"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8.0",
@@ -33,17 +33,17 @@
33
33
  "react-dom": "19.0.0",
34
34
  "@types/ws": "8.5.10",
35
35
  "eslint": "9.14.0",
36
- "@remotion/example-videos": "4.0.250",
37
- "@remotion/eslint-config-internal": "4.0.250"
36
+ "@remotion/example-videos": "4.0.251",
37
+ "@remotion/eslint-config-internal": "4.0.251"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@remotion/compositor-darwin-arm64": "4.0.250",
41
- "@remotion/compositor-darwin-x64": "4.0.250",
42
- "@remotion/compositor-linux-arm64-gnu": "4.0.250",
43
- "@remotion/compositor-win32-x64-msvc": "4.0.250",
44
- "@remotion/compositor-linux-arm64-musl": "4.0.250",
45
- "@remotion/compositor-linux-x64-gnu": "4.0.250",
46
- "@remotion/compositor-linux-x64-musl": "4.0.250"
40
+ "@remotion/compositor-darwin-x64": "4.0.251",
41
+ "@remotion/compositor-linux-arm64-gnu": "4.0.251",
42
+ "@remotion/compositor-linux-arm64-musl": "4.0.251",
43
+ "@remotion/compositor-linux-x64-gnu": "4.0.251",
44
+ "@remotion/compositor-win32-x64-msvc": "4.0.251",
45
+ "@remotion/compositor-linux-x64-musl": "4.0.251",
46
+ "@remotion/compositor-darwin-arm64": "4.0.251"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",