@remotion/renderer 3.2.6 → 3.2.10
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/index.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ export declare const RenderInternals: {
|
|
|
137
137
|
getValidCrfRanges: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => [number, number];
|
|
138
138
|
validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => void;
|
|
139
139
|
validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", actualProResProfile: "proxy" | "4444-xq" | "4444" | "hq" | "standard" | "light" | undefined) => void;
|
|
140
|
-
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "
|
|
140
|
+
validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "jpeg" | "png") => "none" | "valid";
|
|
141
141
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
142
142
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
143
143
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
package/dist/render-frames.js
CHANGED
|
@@ -91,13 +91,26 @@ const innerRenderFrames = ({ onFrameUpdate, outputDir, onStart, inputProps, qual
|
|
|
91
91
|
videoEnabled: imageFormat !== 'none',
|
|
92
92
|
});
|
|
93
93
|
await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
94
|
-
|
|
94
|
+
// eslint-disable-next-line max-params
|
|
95
|
+
pageFunction: (id, defaultProps, durationInFrames, fps, height, width) => {
|
|
95
96
|
window.setBundleMode({
|
|
96
97
|
type: 'composition',
|
|
97
98
|
compositionName: id,
|
|
99
|
+
compositionDefaultProps: defaultProps,
|
|
100
|
+
compositionDurationInFrames: durationInFrames,
|
|
101
|
+
compositionFps: fps,
|
|
102
|
+
compositionHeight: height,
|
|
103
|
+
compositionWidth: width,
|
|
98
104
|
});
|
|
99
105
|
},
|
|
100
|
-
args: [
|
|
106
|
+
args: [
|
|
107
|
+
composition.id,
|
|
108
|
+
composition.defaultProps,
|
|
109
|
+
composition.durationInFrames,
|
|
110
|
+
composition.fps,
|
|
111
|
+
composition.height,
|
|
112
|
+
composition.width,
|
|
113
|
+
],
|
|
101
114
|
frame: null,
|
|
102
115
|
page,
|
|
103
116
|
});
|
package/dist/render-still.js
CHANGED
|
@@ -121,13 +121,26 @@ const innerRenderStill = async ({ composition, quality, imageFormat = 'png', ser
|
|
|
121
121
|
videoEnabled: true,
|
|
122
122
|
});
|
|
123
123
|
await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
124
|
-
|
|
124
|
+
// eslint-disable-next-line max-params
|
|
125
|
+
pageFunction: (id, defaultProps, durationInFrames, fps, height, width) => {
|
|
125
126
|
window.setBundleMode({
|
|
126
127
|
type: 'composition',
|
|
127
128
|
compositionName: id,
|
|
129
|
+
compositionDefaultProps: defaultProps,
|
|
130
|
+
compositionDurationInFrames: durationInFrames,
|
|
131
|
+
compositionFps: fps,
|
|
132
|
+
compositionHeight: height,
|
|
133
|
+
compositionWidth: width,
|
|
128
134
|
});
|
|
129
135
|
},
|
|
130
|
-
args: [
|
|
136
|
+
args: [
|
|
137
|
+
composition.id,
|
|
138
|
+
composition.defaultProps,
|
|
139
|
+
composition.durationInFrames,
|
|
140
|
+
composition.fps,
|
|
141
|
+
composition.height,
|
|
142
|
+
composition.width,
|
|
143
|
+
],
|
|
131
144
|
frame: null,
|
|
132
145
|
page,
|
|
133
146
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"execa": "5.1.1",
|
|
24
24
|
"extract-zip": "2.0.1",
|
|
25
|
-
"remotion": "3.2.
|
|
25
|
+
"remotion": "3.2.10",
|
|
26
26
|
"source-map": "^0.8.0-beta.0",
|
|
27
27
|
"ws": "8.7.0"
|
|
28
28
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "66ad527dc06a14b7d6d5aab8ff8e736e67db8154"
|
|
61
61
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TCaption } from 'remotion';
|
|
2
|
-
interface CaptionFfmpegInputs {
|
|
3
|
-
captionFilters: string[];
|
|
4
|
-
captionInputs: [string, string][];
|
|
5
|
-
}
|
|
6
|
-
export declare const captionsToFfmpegInputs: ({ assetsCount, captions, }: {
|
|
7
|
-
assetsCount: number;
|
|
8
|
-
captions: TCaption[][];
|
|
9
|
-
}) => CaptionFfmpegInputs;
|
|
10
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.captionsToFfmpegInputs = void 0;
|
|
4
|
-
const captionsToFfmpegInputs = ({ assetsCount, captions, }) => {
|
|
5
|
-
const uniqueCaptions = Object.values(captions.flat(1).reduce((acc, caption) => {
|
|
6
|
-
acc[caption.id] = caption;
|
|
7
|
-
return acc;
|
|
8
|
-
}, {}));
|
|
9
|
-
/**
|
|
10
|
-
* TODO: Support more formats.
|
|
11
|
-
* `mov_text` works for SRT.
|
|
12
|
-
*/
|
|
13
|
-
const getFilter = ({ language, title }, index) => {
|
|
14
|
-
return ['-map', `${assetsCount + 1 + index}:s`, '-c:s', 'mov_text'].concat(language ? [`-metadata:s:s:${index}`, `language=${language}`] : '', title ? [`-metadata:s:s:${index}`, `title=${title}`] : '');
|
|
15
|
-
};
|
|
16
|
-
return {
|
|
17
|
-
captionInputs: uniqueCaptions.map((caption) => ['-i', caption.src]),
|
|
18
|
-
captionFilters: uniqueCaptions.reduce((acc, caption, i) => acc.concat(getFilter(caption, i)), []),
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
exports.captionsToFfmpegInputs = captionsToFfmpegInputs;
|