@remotion/renderer 4.0.103 → 4.0.105

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.
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.combineVideos = void 0;
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
+ const version_1 = require("remotion/version");
7
8
  const audio_codec_1 = require("./audio-codec");
8
9
  const call_ffmpeg_1 = require("./call-ffmpeg");
9
10
  const convert_number_of_gif_loops_to_ffmpeg_1 = require("./convert-number-of-gif-loops-to-ffmpeg");
@@ -43,6 +44,8 @@ const combineVideos = async (options) => {
43
44
  audioBitrate ? audioBitrate : '320k',
44
45
  codec === 'h264' ? '-movflags' : null,
45
46
  codec === 'h264' ? 'faststart' : null,
47
+ `-metadata`,
48
+ `comment=Made with Remotion ${version_1.VERSION}`,
46
49
  '-y',
47
50
  output,
48
51
  ].filter(truthy_1.truthy);
package/dist/index.d.ts CHANGED
@@ -313,7 +313,7 @@ export declare const RenderInternals: {
313
313
  };
314
314
  makeFileExtensionMap: () => Record<string, ("h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif")[]>;
315
315
  defaultCodecsForFileExtension: Record<import("./file-extensions").FileExtension, "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif">;
316
- getExecutablePath: (type: "compositor" | "ffmpeg" | "ffprobe", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
316
+ getExecutablePath: (type: "ffmpeg" | "ffprobe" | "compositor", indent: boolean, logLevel: "verbose" | "info" | "warn" | "error") => string;
317
317
  callFf: ({ args, bin, indent, logLevel, options, }: {
318
318
  bin: "ffmpeg" | "ffprobe";
319
319
  args: (string | null)[];
@@ -323,8 +323,8 @@ export declare const RenderInternals: {
323
323
  }) => execa.ExecaChildProcess<string>;
324
324
  validStillImageFormats: readonly ["png", "jpeg", "pdf", "webp"];
325
325
  validVideoImageFormats: readonly ["png", "jpeg", "none"];
326
- DEFAULT_STILL_IMAGE_FORMAT: "jpeg" | "png" | "webp" | "pdf";
327
- DEFAULT_VIDEO_IMAGE_FORMAT: "jpeg" | "png" | "none";
326
+ DEFAULT_STILL_IMAGE_FORMAT: "png" | "jpeg" | "pdf" | "webp";
327
+ DEFAULT_VIDEO_IMAGE_FORMAT: "png" | "jpeg" | "none";
328
328
  DEFAULT_JPEG_QUALITY: number;
329
329
  chalk: {
330
330
  enabled: () => boolean;
@@ -423,7 +423,7 @@ export declare const RenderInternals: {
423
423
  frame: number;
424
424
  serializedInputPropsWithCustomSchema: string;
425
425
  serializedResolvedPropsWithCustomSchema: string;
426
- imageFormat: "jpeg" | "png" | "webp" | "pdf";
426
+ imageFormat: "png" | "jpeg" | "pdf" | "webp";
427
427
  jpegQuality: number;
428
428
  puppeteerInstance: HeadlessBrowser | null;
429
429
  envVariables: Record<string, string>;
@@ -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';
@@ -56,7 +56,12 @@ const screenshotTask = async ({ format, height, omitBackground, page, width, pat
56
56
  width,
57
57
  },
58
58
  captureBeyondViewport: true,
59
- optimizeForSpeed: true,
59
+ optimizeForSpeed: false,
60
+ // We find that there is a 0.1% framedrop when rendering under memory pressure
61
+ // which can be circumvented by disabling this option on Lambda.
62
+ // To be determined: Is this a problem with Lambda, Linux, or the Chrome version
63
+ // we are using on Lambda?
64
+ fromSurface: process.platform !== 'linux',
60
65
  });
61
66
  result = value;
62
67
  }
@@ -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';
@@ -1,35 +1,13 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.stitchFramesToVideo = exports.internalStitchFramesToVideo = void 0;
30
- const node_fs_1 = __importStar(require("node:fs"));
7
+ const node_fs_1 = require("node:fs");
31
8
  const node_path_1 = __importDefault(require("node:path"));
32
9
  const no_react_1 = require("remotion/no-react");
10
+ const version_1 = require("remotion/version");
33
11
  const calculate_asset_positions_1 = require("./assets/calculate-asset-positions");
34
12
  const convert_assets_to_file_urls_1 = require("./assets/convert-assets-to-file-urls");
35
13
  const download_and_map_assets_to_file_1 = require("./assets/download-and-map-assets-to-file");
@@ -55,10 +33,6 @@ const truthy_1 = require("./truthy");
55
33
  const validate_1 = require("./validate");
56
34
  const validate_even_dimensions_with_codec_1 = require("./validate-even-dimensions-with-codec");
57
35
  const validate_videobitrate_1 = require("./validate-videobitrate");
58
- const packageJsonPath = node_path_1.default.join(__dirname, '..', 'package.json');
59
- const packageJson = node_fs_1.default.existsSync(packageJsonPath)
60
- ? JSON.parse(node_fs_1.default.readFileSync(packageJsonPath, 'utf-8'))
61
- : null;
62
36
  const getAssetsData = async ({ assets, onDownload, fps, expectedFrames, logLevel, onProgress, downloadMap, remotionRoot, indent, }) => {
63
37
  const fileUrlAssets = await (0, convert_assets_to_file_urls_1.convertAssetsToFileUrls)({
64
38
  assets,
@@ -277,11 +251,7 @@ const innerStitchFramesToVideo = async ({ assetsInfo, audioBitrate, audioCodec,
277
251
  resolvedAudioCodec === 'aac' ? '18000' : null,
278
252
  // Ignore metadata that may come from remote media
279
253
  ['-map_metadata', '-1'],
280
- [
281
- '-metadata',
282
- `comment=` +
283
- [`Made with Remotion`, packageJson ? packageJson.version : null].join(' '),
284
- ],
254
+ ['-metadata', `comment=Made with Remotion ${version_1.VERSION}`],
285
255
  force ? '-y' : null,
286
256
  outputLocation !== null && outputLocation !== void 0 ? outputLocation : tempFile,
287
257
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.103",
3
+ "version": "4.0.105",
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.103"
21
+ "remotion": "4.0.105"
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-darwin-x64": "4.0.103",
44
- "@remotion/compositor-darwin-arm64": "4.0.103",
45
- "@remotion/compositor-linux-arm64-musl": "4.0.103",
46
- "@remotion/compositor-linux-x64-gnu": "4.0.103",
47
- "@remotion/compositor-linux-arm64-gnu": "4.0.103",
48
- "@remotion/compositor-linux-x64-musl": "4.0.103",
49
- "@remotion/compositor-win32-x64-msvc": "4.0.103"
43
+ "@remotion/compositor-darwin-arm64": "4.0.105",
44
+ "@remotion/compositor-linux-arm64-gnu": "4.0.105",
45
+ "@remotion/compositor-darwin-x64": "4.0.105",
46
+ "@remotion/compositor-linux-arm64-musl": "4.0.105",
47
+ "@remotion/compositor-linux-x64-gnu": "4.0.105",
48
+ "@remotion/compositor-linux-x64-musl": "4.0.105",
49
+ "@remotion/compositor-win32-x64-msvc": "4.0.105"
50
50
  },
51
51
  "keywords": [
52
52
  "remotion",