@remotion/renderer 3.0.4 → 3.0.7
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/assets/calculate-asset-positions.d.ts +0 -1
- package/dist/assets/calculate-asset-positions.js +0 -1
- package/dist/assets/calculate-atempo.d.ts +0 -1
- package/dist/assets/calculate-atempo.js +0 -1
- package/dist/assets/convert-assets-to-file-urls.d.ts +0 -1
- package/dist/assets/convert-assets-to-file-urls.js +0 -1
- package/dist/assets/download-and-map-assets-to-file.d.ts +0 -1
- package/dist/assets/download-and-map-assets-to-file.js +0 -1
- package/dist/assets/download-file.d.ts +0 -1
- package/dist/assets/download-file.js +0 -1
- package/dist/assets/ffmpeg-volume-expression.d.ts +0 -1
- package/dist/assets/ffmpeg-volume-expression.js +0 -1
- package/dist/assets/flatten-volume-array.d.ts +0 -1
- package/dist/assets/flatten-volume-array.js +0 -1
- package/dist/assets/get-audio-channels.d.ts +0 -1
- package/dist/assets/get-audio-channels.js +0 -1
- package/dist/assets/read-file.d.ts +0 -1
- package/dist/assets/read-file.js +0 -1
- package/dist/assets/round-volume-to-avoid-stack-overflow.d.ts +0 -1
- package/dist/assets/round-volume-to-avoid-stack-overflow.js +0 -1
- package/dist/assets/sanitize-filename.d.ts +0 -1
- package/dist/assets/sanitize-filename.js +0 -1
- package/dist/assets/sanitize-filepath.d.ts +0 -1
- package/dist/assets/sanitize-filepath.js +0 -1
- package/dist/assets/truncate-utf8-bytes.d.ts +0 -1
- package/dist/assets/truncate-utf8-bytes.js +0 -1
- package/dist/assets/types.d.ts +0 -1
- package/dist/assets/types.js +0 -1
- package/dist/browser-log.d.ts +0 -1
- package/dist/browser-log.js +0 -1
- package/dist/calculate-ffmpeg-filters.d.ts +0 -1
- package/dist/calculate-ffmpeg-filters.js +0 -1
- package/dist/can-use-parallel-encoding.d.ts +0 -1
- package/dist/can-use-parallel-encoding.js +0 -1
- package/dist/chunk.d.ts +0 -1
- package/dist/chunk.js +0 -1
- package/dist/combine-videos.d.ts +0 -1
- package/dist/combine-videos.js +0 -1
- package/dist/convert-to-pcm.d.ts +0 -1
- package/dist/convert-to-pcm.js +0 -1
- package/dist/create-ffmpeg-complex-filter.d.ts +0 -1
- package/dist/create-ffmpeg-complex-filter.js +0 -1
- package/dist/create-ffmpeg-merge-filter.d.ts +0 -1
- package/dist/create-ffmpeg-merge-filter.js +0 -1
- package/dist/create-silent-audio.d.ts +0 -1
- package/dist/create-silent-audio.js +0 -1
- package/dist/cycle-browser-tabs.d.ts +0 -1
- package/dist/cycle-browser-tabs.js +0 -1
- package/dist/delay-render-embedded-stack.d.ts +0 -1
- package/dist/delay-render-embedded-stack.js +0 -1
- package/dist/delete-directory.d.ts +0 -1
- package/dist/delete-directory.js +0 -1
- package/dist/ensure-frames-in-order.d.ts +0 -1
- package/dist/ensure-frames-in-order.js +0 -1
- package/dist/ensure-output-directory.d.ts +0 -1
- package/dist/ensure-output-directory.js +0 -1
- package/dist/error-handling/handle-javascript-exception.d.ts +0 -1
- package/dist/error-handling/handle-javascript-exception.js +0 -1
- package/dist/error-handling/symbolicate-error.d.ts +0 -1
- package/dist/error-handling/symbolicate-error.js +0 -1
- package/dist/error-handling/symbolicateable-error.d.ts +0 -1
- package/dist/error-handling/symbolicateable-error.js +0 -1
- package/dist/ffmpeg-filter-file.d.ts +0 -1
- package/dist/ffmpeg-filter-file.js +0 -1
- package/dist/ffmpeg-flags.d.ts +0 -1
- package/dist/ffmpeg-flags.js +0 -1
- package/dist/get-audio-codec-name.d.ts +0 -1
- package/dist/get-audio-codec-name.js +0 -1
- package/dist/get-browser-instance.d.ts +0 -1
- package/dist/get-browser-instance.js +0 -1
- package/dist/get-codec-name.d.ts +0 -1
- package/dist/get-codec-name.js +0 -1
- package/dist/get-compositions.d.ts +0 -1
- package/dist/get-compositions.js +0 -1
- package/dist/get-concurrency.d.ts +0 -1
- package/dist/get-concurrency.js +0 -1
- package/dist/get-duration-from-frame-range.d.ts +0 -1
- package/dist/get-duration-from-frame-range.js +0 -1
- package/dist/get-extension-from-codec.d.ts +0 -1
- package/dist/get-extension-from-codec.js +0 -1
- package/dist/get-extension-of-filename.d.ts +1 -0
- package/dist/get-extension-of-filename.js +11 -0
- package/dist/get-frame-to-render.d.ts +0 -1
- package/dist/get-frame-to-render.js +0 -1
- package/dist/get-local-browser-executable.d.ts +0 -1
- package/dist/get-local-browser-executable.js +0 -1
- package/dist/get-port.d.ts +0 -1
- package/dist/get-port.js +0 -1
- package/dist/get-prores-profile-name.d.ts +0 -1
- package/dist/get-prores-profile-name.js +0 -1
- package/dist/image-format.d.ts +0 -1
- package/dist/image-format.js +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/is-serve-url.d.ts +0 -1
- package/dist/is-serve-url.js +0 -1
- package/dist/legacy-webpack-config.d.ts +0 -1
- package/dist/legacy-webpack-config.js +0 -1
- package/dist/make-assets-download-dir.d.ts +0 -1
- package/dist/make-assets-download-dir.js +0 -1
- package/dist/merge-audio-track.d.ts +0 -1
- package/dist/merge-audio-track.js +0 -1
- package/dist/normalize-serve-url.d.ts +0 -1
- package/dist/normalize-serve-url.js +0 -1
- package/dist/open-browser.d.ts +0 -1
- package/dist/open-browser.js +0 -1
- package/dist/p-limit.d.ts +0 -1
- package/dist/p-limit.js +0 -1
- package/dist/parse-browser-error-stack.d.ts +0 -1
- package/dist/parse-browser-error-stack.js +0 -1
- package/dist/parse-ffmpeg-progress.d.ts +0 -1
- package/dist/parse-ffmpeg-progress.js +0 -1
- package/dist/pool.d.ts +0 -1
- package/dist/pool.js +0 -1
- package/dist/prepare-server.d.ts +0 -1
- package/dist/prepare-server.js +0 -1
- package/dist/preprocess-audio-track.d.ts +0 -1
- package/dist/preprocess-audio-track.js +0 -1
- package/dist/prespawn-ffmpeg.d.ts +0 -1
- package/dist/prespawn-ffmpeg.js +0 -1
- package/dist/provide-screenshot.d.ts +0 -2
- package/dist/provide-screenshot.js +0 -1
- package/dist/puppeteer-evaluate.d.ts +0 -1
- package/dist/puppeteer-evaluate.js +0 -1
- package/dist/puppeteer-screenshot.d.ts +0 -2
- package/dist/puppeteer-screenshot.js +0 -1
- package/dist/render-frames.d.ts +0 -1
- package/dist/render-frames.js +0 -1
- package/dist/render-media.d.ts +0 -1
- package/dist/render-media.js +3 -1
- package/dist/render-still.d.ts +0 -1
- package/dist/render-still.js +0 -1
- package/dist/resolve-asset-src.d.ts +0 -1
- package/dist/resolve-asset-src.js +0 -1
- package/dist/sample-rate.d.ts +0 -1
- package/dist/sample-rate.js +0 -1
- package/dist/screenshot-dom-element.d.ts +0 -2
- package/dist/screenshot-dom-element.js +0 -1
- package/dist/screenshot-task.d.ts +0 -2
- package/dist/screenshot-task.js +0 -1
- package/dist/seek-to-frame.d.ts +0 -1
- package/dist/seek-to-frame.js +0 -1
- package/dist/serve-static.d.ts +0 -1
- package/dist/serve-static.js +0 -1
- package/dist/set-props-and-env.d.ts +0 -1
- package/dist/set-props-and-env.js +0 -1
- package/dist/stitch-frames-to-video.d.ts +0 -1
- package/dist/stitch-frames-to-video.js +10 -1
- package/dist/stringify-ffmpeg-filter.d.ts +0 -1
- package/dist/stringify-ffmpeg-filter.js +0 -1
- package/dist/symbolicate-stacktrace.d.ts +0 -1
- package/dist/symbolicate-stacktrace.js +0 -1
- package/dist/tmp-dir.d.ts +0 -1
- package/dist/tmp-dir.js +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -1
- package/dist/validate-even-dimensions-with-codec.d.ts +0 -1
- package/dist/validate-even-dimensions-with-codec.js +0 -1
- package/dist/validate-ffmpeg.d.ts +0 -1
- package/dist/validate-ffmpeg.js +0 -1
- package/dist/validate-output-filename.d.ts +2 -0
- package/dist/validate-output-filename.js +52 -0
- package/dist/validate-puppeteer-timeout.d.ts +0 -1
- package/dist/validate-puppeteer-timeout.js +0 -1
- package/dist/validate-scale.d.ts +0 -1
- package/dist/validate-scale.js +0 -1
- package/package.json +4 -4
package/dist/open-browser.d.ts
CHANGED
package/dist/open-browser.js
CHANGED
package/dist/p-limit.d.ts
CHANGED
package/dist/p-limit.js
CHANGED
package/dist/pool.d.ts
CHANGED
package/dist/pool.js
CHANGED
package/dist/prepare-server.d.ts
CHANGED
package/dist/prepare-server.js
CHANGED
package/dist/prespawn-ffmpeg.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import puppeteer from 'puppeteer-core';
|
|
3
2
|
import { ImageFormat } from 'remotion';
|
|
4
3
|
export declare const provideScreenshot: ({ page, imageFormat, options, quality, }: {
|
|
@@ -10,4 +9,3 @@ export declare const provideScreenshot: ({ page, imageFormat, options, quality,
|
|
|
10
9
|
output?: string;
|
|
11
10
|
};
|
|
12
11
|
}) => Promise<Buffer>;
|
|
13
|
-
//# sourceMappingURL=provide-screenshot.d.ts.map
|
package/dist/render-frames.d.ts
CHANGED
package/dist/render-frames.js
CHANGED
package/dist/render-media.d.ts
CHANGED
|
@@ -39,4 +39,3 @@ export declare type RenderMediaOptions = {
|
|
|
39
39
|
scale?: number;
|
|
40
40
|
} & ServeUrlOrWebpackBundle;
|
|
41
41
|
export declare const renderMedia: ({ parallelism, proResProfile, crf, composition, imageFormat, ffmpegExecutable, inputProps, pixelFormat, codec, envVariables, quality, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, dumpBrowserLogs, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, ...options }: RenderMediaOptions) => Promise<void>;
|
|
42
|
-
//# sourceMappingURL=render-media.d.ts.map
|
package/dist/render-media.js
CHANGED
|
@@ -13,6 +13,7 @@ const ensure_frames_in_order_1 = require("./ensure-frames-in-order");
|
|
|
13
13
|
const ensure_output_directory_1 = require("./ensure-output-directory");
|
|
14
14
|
const get_duration_from_frame_range_1 = require("./get-duration-from-frame-range");
|
|
15
15
|
const get_extension_from_codec_1 = require("./get-extension-from-codec");
|
|
16
|
+
const get_extension_of_filename_1 = require("./get-extension-of-filename");
|
|
16
17
|
const get_frame_to_render_1 = require("./get-frame-to-render");
|
|
17
18
|
const legacy_webpack_config_1 = require("./legacy-webpack-config");
|
|
18
19
|
const prespawn_ffmpeg_1 = require("./prespawn-ffmpeg");
|
|
@@ -20,6 +21,7 @@ const render_frames_1 = require("./render-frames");
|
|
|
20
21
|
const stitch_frames_to_video_1 = require("./stitch-frames-to-video");
|
|
21
22
|
const tmp_dir_1 = require("./tmp-dir");
|
|
22
23
|
const validate_even_dimensions_with_codec_1 = require("./validate-even-dimensions-with-codec");
|
|
24
|
+
const validate_output_filename_1 = require("./validate-output-filename");
|
|
23
25
|
const validate_scale_1 = require("./validate-scale");
|
|
24
26
|
const renderMedia = async ({ parallelism, proResProfile, crf, composition, imageFormat, ffmpegExecutable, inputProps, pixelFormat, codec, envVariables, quality, frameRange, puppeteerInstance, outputLocation, onProgress, overwrite, onDownload, dumpBrowserLogs, onBrowserLog, onStart, timeoutInMilliseconds, chromiumOptions, scale, ...options }) => {
|
|
25
27
|
var _a;
|
|
@@ -27,6 +29,7 @@ const renderMedia = async ({ parallelism, proResProfile, crf, composition, image
|
|
|
27
29
|
if (typeof crf !== 'undefined' && crf !== null) {
|
|
28
30
|
remotion_1.Internals.validateSelectedCrfAndCodecCombination(crf, codec);
|
|
29
31
|
}
|
|
32
|
+
(0, validate_output_filename_1.validateOutputFilename)(codec, (0, get_extension_of_filename_1.getExtensionOfFilename)(outputLocation));
|
|
30
33
|
(0, validate_scale_1.validateScale)(scale);
|
|
31
34
|
const serveUrl = (0, legacy_webpack_config_1.getServeUrlWithFallback)(options);
|
|
32
35
|
let stitchStage = 'encoding';
|
|
@@ -170,4 +173,3 @@ const renderMedia = async ({ parallelism, proResProfile, crf, composition, image
|
|
|
170
173
|
}
|
|
171
174
|
};
|
|
172
175
|
exports.renderMedia = renderMedia;
|
|
173
|
-
//# sourceMappingURL=render-media.js.map
|
package/dist/render-still.d.ts
CHANGED
package/dist/render-still.js
CHANGED
package/dist/sample-rate.d.ts
CHANGED
package/dist/sample-rate.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import puppeteer from 'puppeteer-core';
|
|
3
2
|
import { ImageFormat } from 'remotion';
|
|
4
3
|
export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts, }: {
|
|
@@ -10,4 +9,3 @@ export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts,
|
|
|
10
9
|
selector?: string | undefined;
|
|
11
10
|
} | undefined;
|
|
12
11
|
}) => Promise<Buffer>;
|
|
13
|
-
//# sourceMappingURL=screenshot-dom-element.d.ts.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Page, ScreenshotOptions } from 'puppeteer-core';
|
|
3
2
|
import { StillImageFormat } from 'remotion';
|
|
4
3
|
export declare const _screenshotTask: (page: Page, format: StillImageFormat, options: ScreenshotOptions) => Promise<Buffer | string>;
|
|
5
|
-
//# sourceMappingURL=screenshot-task.d.ts.map
|
package/dist/screenshot-task.js
CHANGED
package/dist/seek-to-frame.d.ts
CHANGED
package/dist/seek-to-frame.js
CHANGED
package/dist/serve-static.d.ts
CHANGED
package/dist/serve-static.js
CHANGED
|
@@ -28,4 +28,3 @@ declare type ReturnType = {
|
|
|
28
28
|
export declare const spawnFfmpeg: (options: StitcherOptions) => Promise<ReturnType>;
|
|
29
29
|
export declare const stitchFramesToVideo: (options: StitcherOptions) => Promise<void>;
|
|
30
30
|
export {};
|
|
31
|
-
//# sourceMappingURL=stitch-frames-to-video.d.ts.map
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.stitchFramesToVideo = exports.spawnFfmpeg = void 0;
|
|
7
7
|
const execa_1 = __importDefault(require("execa"));
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
9
|
const path_1 = __importDefault(require("path"));
|
|
9
10
|
const remotion_1 = require("remotion");
|
|
10
11
|
const calculate_asset_positions_1 = require("./assets/calculate-asset-positions");
|
|
@@ -20,6 +21,10 @@ const preprocess_audio_track_1 = require("./preprocess-audio-track");
|
|
|
20
21
|
const tmp_dir_1 = require("./tmp-dir");
|
|
21
22
|
const validate_even_dimensions_with_codec_1 = require("./validate-even-dimensions-with-codec");
|
|
22
23
|
const validate_ffmpeg_1 = require("./validate-ffmpeg");
|
|
24
|
+
const packageJsonPath = path_1.default.join(__dirname, '..', 'package.json');
|
|
25
|
+
const packageJson = fs_1.default.existsSync(packageJsonPath)
|
|
26
|
+
? JSON.parse(fs_1.default.readFileSync(packageJsonPath, 'utf-8'))
|
|
27
|
+
: null;
|
|
23
28
|
const getAssetsData = async ({ assets, downloadDir, onDownload, fps, expectedFrames, verbose, ffmpegExecutable, onProgress, }) => {
|
|
24
29
|
const fileUrlAssets = await (0, convert_assets_to_file_urls_1.convertAssetsToFileUrls)({
|
|
25
30
|
assets,
|
|
@@ -158,6 +163,11 @@ const spawnFfmpeg = async (options) => {
|
|
|
158
163
|
audioCodecName ? ['-c:a', audioCodecName] : null,
|
|
159
164
|
// Ignore metadata that may come from remote media
|
|
160
165
|
['-map_metadata', '-1'],
|
|
166
|
+
[
|
|
167
|
+
'-metadata',
|
|
168
|
+
`comment=` +
|
|
169
|
+
[`Made with Remotion`, packageJson ? packageJson.version : null].join(' '),
|
|
170
|
+
],
|
|
161
171
|
options.force ? '-y' : null,
|
|
162
172
|
options.outputLocation,
|
|
163
173
|
];
|
|
@@ -206,4 +216,3 @@ const stitchFramesToVideo = async (options) => {
|
|
|
206
216
|
}
|
|
207
217
|
};
|
|
208
218
|
exports.stitchFramesToVideo = stitchFramesToVideo;
|
|
209
|
-
//# sourceMappingURL=stitch-frames-to-video.js.map
|
package/dist/tmp-dir.d.ts
CHANGED
package/dist/tmp-dir.js
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/types.js
CHANGED
package/dist/validate-ffmpeg.js
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateOutputFilename = void 0;
|
|
4
|
+
const validateOutputFilename = (codec, extension) => {
|
|
5
|
+
if (codec === 'h264') {
|
|
6
|
+
if (extension !== 'mp4' && extension !== 'mkv') {
|
|
7
|
+
throw new TypeError('When using the H264 codec, the output filename must end in .mp4 or .mkv.');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
if (codec === 'h264-mkv') {
|
|
11
|
+
if (extension !== 'mkv') {
|
|
12
|
+
throw new TypeError('When using the "h264-mkv" codec, the output filename must end in ".mkv".');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
if (codec === 'h265') {
|
|
16
|
+
if (extension !== 'mp4' && extension !== 'hevc') {
|
|
17
|
+
throw new TypeError('When using H265 codec, the output filename must end in .mp4 or .hevc.');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (codec === 'vp8' || codec === 'vp9') {
|
|
21
|
+
if (extension !== 'webm') {
|
|
22
|
+
throw new TypeError(`When using the ${codec.toUpperCase()} codec, the output filename must end in .webm.`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (codec === 'prores') {
|
|
26
|
+
const allowedProResExtensions = ['mov', 'mkv', 'mxf'];
|
|
27
|
+
if (!extension || !allowedProResExtensions.includes(extension)) {
|
|
28
|
+
throw new TypeError(`When using the 'prores' codec, the output must end in one of those extensions: ${allowedProResExtensions
|
|
29
|
+
.map((a) => `.${a}`)
|
|
30
|
+
.join(', ')}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (codec === 'mp3') {
|
|
34
|
+
if (extension !== 'mp3') {
|
|
35
|
+
throw new TypeError("When using the 'mp3' codec, the output must end in .mp3");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (codec === 'aac') {
|
|
39
|
+
const allowedAacExtensions = ['aac', '3gp', 'm4a', 'm4b', 'mpg', 'mpeg'];
|
|
40
|
+
if (!extension || !allowedAacExtensions.includes(extension)) {
|
|
41
|
+
throw new TypeError(`When using the 'aac' codec, the output must end in one of those extensions: ${allowedAacExtensions
|
|
42
|
+
.map((a) => `.${a}`)
|
|
43
|
+
.join(', ')}`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (codec === 'wav') {
|
|
47
|
+
if (extension !== 'wav') {
|
|
48
|
+
throw new TypeError("When using the 'wav' codec, the output location must end in .wav.");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.validateOutputFilename = validateOutputFilename;
|
package/dist/validate-scale.d.ts
CHANGED
package/dist/validate-scale.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@remotion/bundler": "3.0.
|
|
23
|
+
"@remotion/bundler": "3.0.7",
|
|
24
24
|
"execa": "5.1.1",
|
|
25
25
|
"puppeteer-core": "13.5.1",
|
|
26
|
-
"remotion": "3.0.
|
|
26
|
+
"remotion": "3.0.7",
|
|
27
27
|
"serve-handler": "6.1.3",
|
|
28
28
|
"source-map": "^0.8.0-beta.0"
|
|
29
29
|
},
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "e44469b9a64608db9bec219339bf93a0ac6e9655"
|
|
64
64
|
}
|