@remotion/renderer 3.3.59 → 3.3.60

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.
@@ -52,7 +52,7 @@ const combineVideos = async (options) => {
52
52
  ].filter(truthy_1.truthy));
53
53
  (_a = task.stderr) === null || _a === void 0 ? void 0 : _a.on('data', (data) => {
54
54
  if (onProgress) {
55
- const parsed = (0, parse_ffmpeg_progress_1.parseFfmpegProgress)(data.toString());
55
+ const parsed = (0, parse_ffmpeg_progress_1.parseFfmpegProgress)(data.toString('utf8'));
56
56
  if (parsed !== undefined) {
57
57
  onProgress(parsed);
58
58
  }
@@ -1,8 +1,5 @@
1
1
  import type { DownloadMap } from './assets/download-map';
2
2
  export declare const createFfmpegComplexFilter: (filters: number, downloadMap: DownloadMap) => Promise<{
3
- complexFilterFlag: [
4
- string,
5
- string
6
- ] | null;
3
+ complexFilterFlag: [string, string] | null;
7
4
  cleanup: () => void;
8
5
  }>;
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createFfmpegMergeFilter = void 0;
4
- const truthy_1 = require("./truthy");
5
4
  const createFfmpegMergeFilter = (inputs) => {
6
- const leftChannel = new Array(inputs * 2)
7
- .fill(true)
8
- .map((_, i) => (i % 2 === 0 ? `c${i}` : null))
9
- .filter(truthy_1.truthy)
10
- .join('+');
11
- const rightChannel = new Array(inputs * 2)
12
- .fill(true)
13
- .map((_, i) => (i % 2 === 1 ? `c${i}` : null))
14
- .filter(truthy_1.truthy)
15
- .join('+');
16
- return `[0:a][1:a]amerge=inputs=${inputs},pan=stereo|c0=${leftChannel}|c1=${rightChannel}[a]`;
5
+ return `[0:a][1:a]amix=inputs=${inputs},pan=stereo[a]`;
17
6
  };
18
7
  exports.createFfmpegMergeFilter = createFfmpegMergeFilter;
@@ -1,4 +1 @@
1
- export declare const determineResizeParams: (needsResize: [
2
- number,
3
- number
4
- ] | null) => string[];
1
+ export declare const determineResizeParams: (needsResize: [number, number] | null) => string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { DownloadMap } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { SpecialVCodecForTransparency } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
@@ -7,10 +8,7 @@ export declare const getFrameOfVideoSlow: ({ src, duration, ffmpegExecutable, im
7
8
  duration: number;
8
9
  imageFormat: OffthreadVideoImageFormat;
9
10
  specialVCodecForTransparency: SpecialVCodecForTransparency;
10
- needsResize: [
11
- number,
12
- number
13
- ] | null;
11
+ needsResize: [number, number] | null;
14
12
  offset: number;
15
13
  fps: number | null;
16
14
  remotionRoot: string;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import execa from 'execa';
2
3
  import { SymbolicateableError } from './error-handling/symbolicateable-error';
3
4
  import { mimeContentType, mimeLookup } from './mime-types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { DownloadMap, SpecialVCodecForTransparency } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { ImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  export declare const screenshot: (options: {
@@ -300,7 +300,11 @@ const renderFrames = (options) => {
300
300
  remotion_1.Internals.validateDimension(composition.height, 'height', 'in the `config` object passed to `renderFrames()`');
301
301
  remotion_1.Internals.validateDimension(composition.width, 'width', 'in the `config` object passed to `renderFrames()`');
302
302
  remotion_1.Internals.validateFps(composition.fps, 'in the `config` object of `renderFrames()`', false);
303
- remotion_1.Internals.validateDurationInFrames(composition.durationInFrames, 'in the `config` object passed to `renderFrames()`');
303
+ remotion_1.Internals.validateDurationInFrames({
304
+ durationInFrames: composition.durationInFrames,
305
+ component: 'in the `config` object passed to `renderFrames()`',
306
+ allowFloats: false,
307
+ });
304
308
  if (options.quality !== undefined && options.imageFormat !== 'jpeg') {
305
309
  throw new Error("You can only pass the `quality` option if `imageFormat` is 'jpeg'.");
306
310
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { SmallTCompMetadata } from 'remotion';
2
3
  import type { RenderMediaOnDownload } from './assets/download-and-map-assets-to-file';
3
4
  import type { DownloadMap } from './assets/download-map';
@@ -52,7 +52,11 @@ const innerRenderStill = async ({ composition, quality, imageFormat = 'png', ser
52
52
  remotion_1.Internals.validateDimension(composition.height, 'height', 'in the `config` object passed to `renderStill()`');
53
53
  remotion_1.Internals.validateDimension(composition.width, 'width', 'in the `config` object passed to `renderStill()`');
54
54
  remotion_1.Internals.validateFps(composition.fps, 'in the `config` object of `renderStill()`', false);
55
- remotion_1.Internals.validateDurationInFrames(composition.durationInFrames, 'in the `config` object passed to `renderStill()`');
55
+ remotion_1.Internals.validateDurationInFrames({
56
+ durationInFrames: composition.durationInFrames,
57
+ component: 'in the `config` object passed to `renderStill()`',
58
+ allowFloats: false,
59
+ });
56
60
  (0, image_format_1.validateNonNullImageFormat)(imageFormat);
57
61
  remotion_1.Internals.validateFrame(frame, composition.durationInFrames);
58
62
  const stillFrame = (0, convert_to_positive_frame_index_1.convertToPositiveFrameIndex)({
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { ImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { ClipRegion } from 'remotion';
2
3
  import type { Page } from './browser/BrowserPage';
3
4
  import type { StillImageFormat } from './image-format';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { TAsset } from 'remotion';
2
3
  import type { DownloadMap } from './assets/download-map';
3
4
  import type { Page } from './browser/BrowserPage';
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { OffthreadVideoImageFormat } from 'remotion';
2
3
  import type { NeedsResize, SpecialVCodecForTransparency } from './assets/download-map';
3
4
  import type { FfmpegExecutable } from './ffmpeg-executable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "3.3.59",
3
+ "version": "3.3.60",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "execa": "5.1.1",
26
26
  "extract-zip": "2.0.1",
27
- "remotion": "3.3.59",
27
+ "remotion": "3.3.60",
28
28
  "source-map": "^0.8.0-beta.0",
29
29
  "ws": "8.7.0"
30
30
  },
@@ -49,13 +49,13 @@
49
49
  "vitest": "0.24.3"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@remotion/compositor-darwin-arm64": "3.3.59",
53
- "@remotion/compositor-darwin-x64": "3.3.59",
54
- "@remotion/compositor-linux-arm64-gnu": "3.3.59",
55
- "@remotion/compositor-linux-arm64-musl": "3.3.59",
56
- "@remotion/compositor-linux-x64-gnu": "3.3.59",
57
- "@remotion/compositor-linux-x64-musl": "3.3.59",
58
- "@remotion/compositor-win32-x64-msvc": "3.3.59"
52
+ "@remotion/compositor-darwin-arm64": "3.3.60",
53
+ "@remotion/compositor-darwin-x64": "3.3.60",
54
+ "@remotion/compositor-linux-arm64-gnu": "3.3.60",
55
+ "@remotion/compositor-linux-arm64-musl": "3.3.60",
56
+ "@remotion/compositor-linux-x64-gnu": "3.3.60",
57
+ "@remotion/compositor-linux-x64-musl": "3.3.60",
58
+ "@remotion/compositor-win32-x64-msvc": "3.3.60"
59
59
  },
60
60
  "keywords": [
61
61
  "remotion",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "4ee88b056704d7224838a8fbc32d2d3522c5afbe"
70
+ "gitHead": "60797b0861ef1017cec53ba656214cbc10db011b"
71
71
  }