@remotion/renderer 4.0.81 → 4.0.83

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/client.d.ts CHANGED
@@ -313,7 +313,7 @@ export declare const BrowserSafeApis: {
313
313
  cliFlag: "gl";
314
314
  docLink: string;
315
315
  name: string;
316
- type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
316
+ type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
317
317
  ssrName: string;
318
318
  description: () => JSX.Element;
319
319
  };
@@ -34,7 +34,8 @@ const generateFfmpegArgs = ({ hasPreencoded, proResProfileName, pixelFormat, x26
34
34
  ['-colorspace:v', 'bt709'],
35
35
  ['-color_primaries:v', 'bt709'],
36
36
  ['-color_trc:v', 'bt709'],
37
- ['-color_range:v', 'tv'],
37
+ ['-color_range', 'tv'],
38
+ hasPreencoded ? [] : ['-vf', 'zscale=m=709:min=709:r=limited'],
38
39
  ]
39
40
  : [];
40
41
  return [
package/dist/index.d.ts CHANGED
@@ -138,8 +138,8 @@ export declare const RenderInternals: {
138
138
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
139
139
  DEFAULT_BROWSER: "chrome";
140
140
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
141
- DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
142
- validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
141
+ DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
142
+ validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null) => "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl" | null;
143
143
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
144
144
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
145
145
  validateJpegQuality: (q: number | undefined) => void;
@@ -330,8 +330,8 @@ export declare const RenderInternals: {
330
330
  };
331
331
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
332
332
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
333
- DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
334
- DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
333
+ DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
334
+ DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
335
335
  DEFAULT_JPEG_QUALITY: number;
336
336
  chalk: {
337
337
  enabled: () => boolean;
@@ -430,7 +430,7 @@ export declare const RenderInternals: {
430
430
  frame: number;
431
431
  serializedInputPropsWithCustomSchema: string;
432
432
  serializedResolvedPropsWithCustomSchema: string;
433
- imageFormat: "jpeg" | "png" | "webp" | "pdf";
433
+ imageFormat: "png" | "jpeg" | "pdf" | "webp";
434
434
  jpegQuality: number;
435
435
  puppeteerInstance: HeadlessBrowser | null;
436
436
  envVariables: Record<string, string>;
@@ -6,7 +6,7 @@ exports.validColorSpaces = ['default', 'bt709'];
6
6
  exports.colorSpaceOption = {
7
7
  name: 'Color space',
8
8
  cliFlag: 'color-space',
9
- description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Color space to use for the video. Acceptable values:", ' ', (0, jsx_runtime_1.jsxs)("code", { children: ['"', "default", '"'] }), ",", ' ', (0, jsx_runtime_1.jsxs)("code", { children: ['"', "bt709", '"'] })] })),
9
+ description: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Color space to use for the video. Acceptable values:", ' ', (0, jsx_runtime_1.jsxs)("code", { children: ['"', "default", '"'] }), ",", ' ', (0, jsx_runtime_1.jsxs)("code", { children: ['"', "bt709", '"'] }), ".", (0, jsx_runtime_1.jsx)("br", {}), "If", ' ', (0, jsx_runtime_1.jsxs)("code", { children: ['"', "bt709", '"'] }), ' ', "is used, it is recommended to also use", ' ', (0, jsx_runtime_1.jsxs)("code", { children: ['"', "png", '"'] }), ' ', "as the image format to have accurate color transformations throughout. Only since v4.0.83, colorspace conversion is actually performed, previously it would only tag the metadata of the video."] })),
10
10
  docLink: 'https://www.remotion.dev/docs/renderer/render-media#colorspace',
11
11
  ssrName: 'colorSpace',
12
12
  type: 'default',
@@ -4,7 +4,7 @@ export declare const glOption: {
4
4
  cliFlag: "gl";
5
5
  docLink: string;
6
6
  name: string;
7
- type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
7
+ type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
8
8
  ssrName: string;
9
9
  description: () => JSX.Element;
10
10
  };
@@ -116,7 +116,7 @@ export declare const allOptions: {
116
116
  cliFlag: "gl";
117
117
  docLink: string;
118
118
  name: string;
119
- type: "angle" | "swangle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
119
+ type: "swangle" | "angle" | "egl" | "swiftshader" | "vulkan" | "angle-egl";
120
120
  ssrName: string;
121
121
  description: () => JSX.Element;
122
122
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ClipRegion } from 'remotion/no-react';
3
2
  import type { Page } from './browser/BrowserPage';
4
3
  import type { StillImageFormat } from './image-format';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ClipRegion } from 'remotion/no-react';
3
2
  import type { Page } from './browser/BrowserPage';
4
3
  import type { StillImageFormat } from './image-format';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ClipRegion } from 'remotion/no-react';
3
2
  import type { Page } from './browser/BrowserPage';
4
3
  import type { StillImageFormat } from './image-format';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ClipRegion } from 'remotion/no-react';
3
2
  import type { Page } from './browser/BrowserPage';
4
3
  import type { StillImageFormat } from './image-format';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
3
2
  import type { RenderAssetInfo } from './assets/download-map';
4
3
  import type { AudioCodec } from './audio-codec';
@@ -40,7 +40,6 @@ const codec_supports_media_1 = require("./codec-supports-media");
40
40
  const convert_number_of_gif_loops_to_ffmpeg_1 = require("./convert-number-of-gif-loops-to-ffmpeg");
41
41
  const crf_1 = require("./crf");
42
42
  const delete_directory_1 = require("./delete-directory");
43
- const does_have_m2_bug_1 = require("./does-have-m2-bug");
44
43
  const ffmpeg_args_1 = require("./ffmpeg-args");
45
44
  const find_closest_package_json_1 = require("./find-closest-package-json");
46
45
  const get_extension_from_codec_1 = require("./get-extension-from-codec");
@@ -348,7 +347,6 @@ const innerStitchFramesToVideo = async ({ assetsInfo, audioBitrate, audioCodec,
348
347
  };
349
348
  const internalStitchFramesToVideo = async (options) => {
350
349
  const remotionRoot = (0, find_closest_package_json_1.findRemotionRoot)();
351
- (0, does_have_m2_bug_1.warnAboutM2Bug)(options.codec, options.pixelFormat);
352
350
  const { task, getLogs } = await innerStitchFramesToVideo(options, remotionRoot);
353
351
  const happyPath = task.catch(() => {
354
352
  throw new Error(getLogs());
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { TRenderAsset } from 'remotion/no-react';
3
2
  import type { DownloadMap } from './assets/download-map';
4
3
  import type { Page } from './browser/BrowserPage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.81",
3
+ "version": "4.0.83",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "extract-zip": "2.0.1",
19
19
  "source-map": "^0.8.0-beta.0",
20
20
  "ws": "8.7.0",
21
- "remotion": "4.0.81"
21
+ "remotion": "4.0.83"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
@@ -40,13 +40,13 @@
40
40
  "vitest": "0.31.1"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@remotion/compositor-linux-arm64-gnu": "4.0.81",
44
- "@remotion/compositor-darwin-x64": "4.0.81",
45
- "@remotion/compositor-darwin-arm64": "4.0.81",
46
- "@remotion/compositor-linux-arm64-musl": "4.0.81",
47
- "@remotion/compositor-linux-x64-musl": "4.0.81",
48
- "@remotion/compositor-win32-x64-msvc": "4.0.81",
49
- "@remotion/compositor-linux-x64-gnu": "4.0.81"
43
+ "@remotion/compositor-darwin-arm64": "4.0.83",
44
+ "@remotion/compositor-linux-arm64-gnu": "4.0.83",
45
+ "@remotion/compositor-darwin-x64": "4.0.83",
46
+ "@remotion/compositor-linux-arm64-musl": "4.0.83",
47
+ "@remotion/compositor-linux-x64-musl": "4.0.83",
48
+ "@remotion/compositor-win32-x64-msvc": "4.0.83",
49
+ "@remotion/compositor-linux-x64-gnu": "4.0.83"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",