@remotion/renderer 3.3.59 → 3.3.61
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/combine-videos.js +1 -1
- package/dist/create-ffmpeg-complex-filter.d.ts +1 -4
- package/dist/create-ffmpeg-merge-filter.js +1 -12
- package/dist/determine-resize-params.d.ts +1 -4
- package/dist/extract-frame-from-video.d.ts +1 -0
- package/dist/get-frame-of-video-slow.d.ts +2 -4
- package/dist/index.d.ts +4 -3
- package/dist/last-frame-from-video-cache.d.ts +1 -0
- package/dist/provide-screenshot.d.ts +1 -0
- package/dist/puppeteer-screenshot.d.ts +1 -0
- package/dist/render-frames.js +5 -1
- package/dist/render-media.d.ts +1 -0
- package/dist/render-still.js +5 -1
- package/dist/screenshot-dom-element.d.ts +1 -0
- package/dist/screenshot-task.d.ts +1 -0
- package/dist/take-frame-and-compose.d.ts +1 -0
- package/dist/try-to-extract-frame-of-video-fast.d.ts +1 -0
- package/package.json +10 -10
package/dist/combine-videos.js
CHANGED
|
@@ -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
|
-
|
|
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}[a]`;
|
|
17
6
|
};
|
|
18
7
|
exports.createFfmpegMergeFilter = createFfmpegMergeFilter;
|
|
@@ -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';
|
|
@@ -118,8 +119,8 @@ export declare const RenderInternals: {
|
|
|
118
119
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
119
120
|
DEFAULT_BROWSER: import("./browser").Browser;
|
|
120
121
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
121
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
122
|
-
validateOpenGlRenderer: (option: "
|
|
122
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
123
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
123
124
|
validImageFormats: readonly ["png", "jpeg", "none"];
|
|
124
125
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
125
126
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -128,7 +129,7 @@ export declare const RenderInternals: {
|
|
|
128
129
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
129
130
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
130
131
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
131
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
132
|
+
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "error" | "info" | "warn", level: "verbose" | "error" | "info" | "warn") => boolean;
|
|
132
133
|
isValidLogLevel: (level: string) => boolean;
|
|
133
134
|
perf: typeof perf;
|
|
134
135
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
package/dist/render-frames.js
CHANGED
|
@@ -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(
|
|
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
|
}
|
package/dist/render-media.d.ts
CHANGED
package/dist/render-still.js
CHANGED
|
@@ -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(
|
|
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)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.61",
|
|
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.
|
|
27
|
+
"remotion": "3.3.61",
|
|
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.
|
|
53
|
-
"@remotion/compositor-darwin-x64": "3.3.
|
|
54
|
-
"@remotion/compositor-linux-arm64-gnu": "3.3.
|
|
55
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
56
|
-
"@remotion/compositor-linux-x64-gnu": "3.3.
|
|
57
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
58
|
-
"@remotion/compositor-win32-x64-msvc": "3.3.
|
|
52
|
+
"@remotion/compositor-darwin-arm64": "3.3.61",
|
|
53
|
+
"@remotion/compositor-darwin-x64": "3.3.61",
|
|
54
|
+
"@remotion/compositor-linux-arm64-gnu": "3.3.61",
|
|
55
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.61",
|
|
56
|
+
"@remotion/compositor-linux-x64-gnu": "3.3.61",
|
|
57
|
+
"@remotion/compositor-linux-x64-musl": "3.3.61",
|
|
58
|
+
"@remotion/compositor-win32-x64-msvc": "3.3.61"
|
|
59
59
|
},
|
|
60
60
|
"keywords": [
|
|
61
61
|
"remotion",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "c2d7a7088e4a9939c95168e03d7e29e3f6d63973"
|
|
71
71
|
}
|