@remotion/renderer 4.0.208 → 4.0.210

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.
@@ -49,7 +49,6 @@ const extract_zip_1 = __importDefault(require("extract-zip"));
49
49
  const node_util_1 = require("node:util");
50
50
  const download_file_1 = require("../assets/download-file");
51
51
  const make_file_executable_1 = require("../compositor/make-file-executable");
52
- const logger_1 = require("../logger");
53
52
  const get_download_destination_1 = require("./get-download-destination");
54
53
  const TESTED_VERSION = '123.0.6312.86';
55
54
  // https://github.com/microsoft/playwright/tree/v1.42.0
@@ -128,7 +127,6 @@ const downloadBrowser = async ({ logLevel, indent, onProgress, version, }) => {
128
127
  indent,
129
128
  logLevel,
130
129
  });
131
- logger_1.Log.info({ indent, logLevel });
132
130
  await (0, extract_zip_1.default)(archivePath, { dir: outputPath });
133
131
  const chromePath = path.join(outputPath, 'chrome-linux', 'chrome');
134
132
  const chromeHeadlessShellPath = path.join(outputPath, 'chrome-linux', 'chrome-headless-shell');
@@ -6,9 +6,9 @@ const to_megabytes_1 = require("../to-megabytes");
6
6
  const defaultBrowserDownloadProgress = ({ indent, logLevel, api, }) => () => {
7
7
  logger_1.Log.info({ indent, logLevel }, 'Downloading Chrome Headless Shell https://www.remotion.dev/docs/miscellaneous/chrome-headless-shell');
8
8
  logger_1.Log.info({ indent, logLevel }, `Customize this behavior by adding a onBrowserDownload function to ${api}.`);
9
+ let lastProgress = 0;
9
10
  return {
10
11
  onProgress: (progress) => {
11
- let lastProgress = 0;
12
12
  if (progress.downloadedBytes > lastProgress + 10000000) {
13
13
  lastProgress = progress.downloadedBytes;
14
14
  logger_1.Log.info({ indent, logLevel }, `Downloading Chrome Headless Shell - ${(0, to_megabytes_1.toMegabytes)(progress.downloadedBytes)}/${(0, to_megabytes_1.toMegabytes)(progress.totalSizeInBytes)}`);
package/dist/client.d.ts CHANGED
@@ -10,10 +10,10 @@ export declare const BrowserSafeApis: {
10
10
  x264PresetOptions: readonly ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"];
11
11
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
12
12
  validOpenGlRenderers: readonly ["swangle", "angle", "egl", "swiftshader", "vulkan", "angle-egl"];
13
- validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
13
+ validPixelFormatsForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif") => readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"] | ("yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le")[];
14
14
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
15
15
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
16
- DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
16
+ DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
17
17
  DEFAULT_TIMEOUT: number;
18
18
  DEFAULT_JPEG_QUALITY: number;
19
19
  DEFAULT_COLOR_SPACE: "default";
@@ -4,6 +4,9 @@ export declare const createFfmpegComplexFilter: ({ filters, downloadMap, }: {
4
4
  filters: PreprocessedAudioTrack[];
5
5
  downloadMap: DownloadMap;
6
6
  }) => Promise<{
7
- complexFilterFlag: [string, string] | null;
7
+ complexFilterFlag: [
8
+ string,
9
+ string
10
+ ] | null;
8
11
  cleanup: () => void;
9
12
  }>;
@@ -30,4 +30,5 @@ export declare const exampleVideos: {
30
30
  matroskaH265Aac: string;
31
31
  opusWebm: string;
32
32
  avi: string;
33
+ opus51Webm: string;
33
34
  };
@@ -39,4 +39,5 @@ exports.exampleVideos = {
39
39
  matroskaH265Aac: node_path_1.default.join(examplePackage, 'public', 'matroska-h265-aac.mkv'),
40
40
  opusWebm: node_path_1.default.join(examplePackage, 'public', 'opus.webm'),
41
41
  avi: node_path_1.default.join(examplePackage, 'public', 'example.avi'),
42
+ opus51Webm: node_path_1.default.join(examplePackage, 'public', 'vp8-opus-5-1-channels.webm'),
42
43
  };
package/dist/index.d.ts CHANGED
@@ -144,7 +144,7 @@ export declare const RenderInternals: {
144
144
  DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
145
145
  validateOpenGlRenderer: (option: unknown) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
146
146
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "h264-ts", "gif"];
147
- DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
147
+ DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuv422p" | "yuv444p" | "yuva420p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
148
148
  validateJpegQuality: (q: unknown) => void;
149
149
  DEFAULT_TIMEOUT: number;
150
150
  DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "h264-ts" | "gif";
@@ -354,8 +354,8 @@ export declare const RenderInternals: {
354
354
  }) => execa.ExecaChildProcess<string>;
355
355
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
356
356
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
357
- DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
358
- DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
357
+ DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
358
+ DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
359
359
  DEFAULT_JPEG_QUALITY: number;
360
360
  chalk: {
361
361
  enabled: () => boolean;
@@ -453,7 +453,7 @@ export declare const RenderInternals: {
453
453
  frame: number;
454
454
  serializedInputPropsWithCustomSchema: string;
455
455
  serializedResolvedPropsWithCustomSchema: string;
456
- imageFormat: "png" | "jpeg" | "pdf" | "webp";
456
+ imageFormat: "jpeg" | "png" | "webp" | "pdf";
457
457
  jpegQuality: number;
458
458
  puppeteerInstance: HeadlessBrowser | null;
459
459
  envVariables: Record<string, string>;
@@ -754,7 +754,7 @@ export declare const RenderInternals: {
754
754
  onFrameUpdate: ((framesRendered: number, frameIndex: number, timeToRenderInMilliseconds: number) => void) | null;
755
755
  outputDir: string | null;
756
756
  envVariables: Record<string, string>;
757
- imageFormat: "png" | "jpeg" | "none";
757
+ imageFormat: "jpeg" | "png" | "none";
758
758
  jpegQuality: number;
759
759
  frameRange: import("./frame-range").FrameRange | null;
760
760
  everyNthFrame: number;
@@ -990,6 +990,7 @@ export declare const RenderInternals: {
990
990
  matroskaH265Aac: string;
991
991
  opusWebm: string;
992
992
  avi: string;
993
+ opus51Webm: string;
993
994
  };
994
995
  printUsefulErrorMessage: (err: Error, logLevel: "verbose" | "info" | "warn" | "error", indent: boolean) => void;
995
996
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  /// <reference types="bun-types" />
2
3
  /// <reference types="node" />
3
4
  /// <reference types="node" />
@@ -6,7 +7,6 @@
6
7
  /// <reference types="node" />
7
8
  /// <reference types="bun-types" />
8
9
  /// <reference types="bun-types" />
9
- /// <reference types="node" />
10
10
  import type { NetworkInterfaceInfo } from 'os';
11
11
  import os from 'os';
12
12
  type PortConfig = {
@@ -14,7 +14,7 @@ type PortConfig = {
14
14
  hostsToTry: string[];
15
15
  };
16
16
  export declare const getPortConfig: (preferIpv4: boolean) => PortConfig;
17
- export declare const getHostToBind: (flattened: os.NetworkInterfaceInfo[], preferIpv4: boolean) => "0.0.0.0" | "::";
17
+ export declare const getHostToBind: (flattened: os.NetworkInterfaceInfo[], preferIpv4: boolean) => "::" | "0.0.0.0";
18
18
  export declare const getHostsToTry: (flattened: os.NetworkInterfaceInfo[]) => string[];
19
19
  export declare const flattenNetworkInterfaces: (networkInterfaces: NodeJS.Dict<NetworkInterfaceInfo[]>) => NetworkInterfaceInfo[];
20
20
  export declare const isIpV6Supported: (flattened: os.NetworkInterfaceInfo[]) => boolean;