@remotion/renderer 4.0.114 → 4.0.116
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/browser/BrowserFetcher.js +1 -1
- package/dist/browser/BrowserPage.js +3 -3
- package/dist/browser/Connection.js +1 -1
- package/dist/check-apple-silicon.d.ts +3 -1
- package/dist/check-apple-silicon.js +32 -2
- package/dist/client.d.ts +1256 -14
- package/dist/client.js +3 -1
- package/dist/combine-videos.js +1 -1
- package/dist/ffmpeg-args.d.ts +1 -1
- package/dist/get-compositions.d.ts +1 -7
- package/dist/get-compositions.js +2 -2
- package/dist/get-extension-of-filename.js +2 -5
- package/dist/get-local-browser-executable.js +1 -1
- package/dist/index.d.ts +143 -16
- package/dist/index.js +0 -2
- package/dist/jpeg-quality.d.ts +1 -1
- package/dist/logger.d.ts +2 -6
- package/dist/logger.js +5 -23
- package/dist/options/audio-bitrate.d.ts +10 -0
- package/dist/options/audio-bitrate.js +25 -2
- package/dist/options/beep-on-finish.d.ts +7 -0
- package/dist/options/beep-on-finish.js +24 -1
- package/dist/options/color-space.d.ts +7 -0
- package/dist/options/color-space.js +23 -0
- package/dist/options/crf.d.ts +9 -0
- package/dist/options/crf.js +33 -2
- package/dist/options/delete-after.d.ts +12 -1
- package/dist/options/delete-after.js +25 -2
- package/dist/options/enable-lambda-insights.d.ts +7 -0
- package/dist/options/enable-lambda-insights.js +24 -1
- package/dist/options/enable-multiprocess-on-linux.d.ts +7 -0
- package/dist/options/enable-multiprocess-on-linux.js +24 -1
- package/dist/options/encoding-buffer-size.d.ts +10 -0
- package/dist/options/encoding-buffer-size.js +28 -1
- package/dist/options/encoding-max-rate.d.ts +10 -0
- package/dist/options/encoding-max-rate.js +24 -1
- package/dist/options/enforce-audio.d.ts +7 -0
- package/dist/options/enforce-audio.js +25 -1
- package/dist/options/folder-expiry.d.ts +7 -0
- package/dist/options/folder-expiry.js +24 -1
- package/dist/options/gl.d.ts +16 -4
- package/dist/options/gl.js +35 -3
- package/dist/options/headless.d.ts +15 -0
- package/dist/options/headless.js +36 -0
- package/dist/options/index.d.ts +259 -10
- package/dist/options/index.js +13 -3
- package/dist/options/jpeg-quality.d.ts +9 -0
- package/dist/options/jpeg-quality.js +37 -2
- package/dist/options/log-level.d.ts +16 -0
- package/dist/options/log-level.js +32 -0
- package/dist/options/mute.d.ts +9 -2
- package/dist/options/mute.js +27 -3
- package/dist/options/number-of-gif-loops.d.ts +11 -0
- package/dist/options/number-of-gif-loops.js +31 -1
- package/dist/options/offthreadvideo-cache-size.d.ts +12 -1
- package/dist/options/offthreadvideo-cache-size.js +30 -3
- package/dist/options/option.d.ts +11 -3
- package/dist/options/options-map.d.ts +997 -3
- package/dist/options/options-map.js +79 -12
- package/dist/options/overwrite.d.ts +15 -0
- package/dist/options/overwrite.js +42 -0
- package/dist/options/repro.d.ts +8 -1
- package/dist/options/repro.js +25 -1
- package/dist/options/scale.d.ts +7 -0
- package/dist/options/scale.js +30 -1
- package/dist/options/timeout.d.ts +15 -0
- package/dist/options/timeout.js +44 -0
- package/dist/options/video-bitrate.d.ts +9 -2
- package/dist/options/video-bitrate.js +27 -4
- package/dist/options/video-codec.d.ts +16 -1
- package/dist/options/video-codec.js +81 -2
- package/dist/options/webhook-custom-data.d.ts +3 -1
- package/dist/options/webhook-custom-data.js +8 -1
- package/dist/options/x264-preset.d.ts +20 -3
- package/dist/options/x264-preset.js +47 -7
- package/dist/path-normalize.d.ts +1 -0
- package/dist/path-normalize.js +133 -0
- package/dist/prespawn-ffmpeg.d.ts +1 -1
- package/dist/print-useful-error-message.d.ts +2 -1
- package/dist/print-useful-error-message.js +29 -29
- package/dist/render-frames.d.ts +1 -7
- package/dist/render-frames.js +1 -1
- package/dist/render-media.d.ts +0 -17
- package/dist/render-media.js +4 -4
- package/dist/render-still.d.ts +1 -7
- package/dist/render-still.js +2 -3
- package/dist/repro.js +6 -6
- package/dist/select-composition.d.ts +2 -8
- package/dist/stitch-frames-to-video.d.ts +1 -1
- package/dist/stitch-frames-to-video.js +1 -1
- package/dist/wrap-with-error-handling.js +1 -1
- package/package.json +9 -9
- package/dist/does-have-m2-bug.d.ts +0 -3
- package/dist/does-have-m2-bug.js +0 -12
|
@@ -2,7 +2,6 @@ import type { VideoConfig } from 'remotion/no-react';
|
|
|
2
2
|
import type { BrowserExecutable } from './browser-executable';
|
|
3
3
|
import type { BrowserLog } from './browser-log';
|
|
4
4
|
import type { HeadlessBrowser } from './browser/Browser';
|
|
5
|
-
import { type LogLevel } from './log-level';
|
|
6
5
|
import type { ChromiumOptions } from './open-browser';
|
|
7
6
|
import type { ToOptions } from './options/option';
|
|
8
7
|
import type { optionsMap } from './options/options-map';
|
|
@@ -13,33 +12,28 @@ type InternalSelectCompositionsConfig = {
|
|
|
13
12
|
puppeteerInstance: HeadlessBrowser | undefined;
|
|
14
13
|
onBrowserLog: null | ((log: BrowserLog) => void);
|
|
15
14
|
browserExecutable: BrowserExecutable | null;
|
|
16
|
-
timeoutInMilliseconds: number;
|
|
17
15
|
chromiumOptions: ChromiumOptions;
|
|
18
16
|
port: number | null;
|
|
19
17
|
indent: boolean;
|
|
20
18
|
server: RemotionServer | undefined;
|
|
21
|
-
logLevel: LogLevel;
|
|
22
19
|
serveUrl: string;
|
|
23
20
|
id: string;
|
|
24
|
-
} & ToOptions<typeof optionsMap.
|
|
21
|
+
} & ToOptions<typeof optionsMap.selectComposition>;
|
|
25
22
|
export type SelectCompositionOptions = {
|
|
26
23
|
inputProps?: Record<string, unknown> | null;
|
|
27
24
|
envVariables?: Record<string, string>;
|
|
28
25
|
puppeteerInstance?: HeadlessBrowser;
|
|
29
26
|
onBrowserLog?: (log: BrowserLog) => void;
|
|
30
27
|
browserExecutable?: BrowserExecutable;
|
|
31
|
-
timeoutInMilliseconds?: number;
|
|
32
28
|
chromiumOptions?: ChromiumOptions;
|
|
33
29
|
port?: number | null;
|
|
34
30
|
/**
|
|
35
31
|
* @deprecated Use `logLevel` instead.
|
|
36
32
|
*/
|
|
37
33
|
verbose?: boolean;
|
|
38
|
-
logLevel?: LogLevel;
|
|
39
|
-
offthreadVideoCacheSizeInBytes?: number | null;
|
|
40
34
|
serveUrl: string;
|
|
41
35
|
id: string;
|
|
42
|
-
}
|
|
36
|
+
} & Partial<ToOptions<typeof optionsMap.renderStill>>;
|
|
43
37
|
type InternalReturnType = {
|
|
44
38
|
metadata: VideoConfig;
|
|
45
39
|
propsSize: number;
|
|
@@ -6,9 +6,9 @@ import type { FfmpegOverrideFn } from './ffmpeg-override';
|
|
|
6
6
|
import type { LogLevel } from './log-level';
|
|
7
7
|
import type { CancelSignal } from './make-cancel-signal';
|
|
8
8
|
import type { ColorSpace } from './options/color-space';
|
|
9
|
+
import type { X264Preset } from './options/x264-preset';
|
|
9
10
|
import type { PixelFormat } from './pixel-format';
|
|
10
11
|
import type { ProResProfile } from './prores-profile';
|
|
11
|
-
import type { X264Preset } from './x264-preset';
|
|
12
12
|
type InternalStitchFramesToVideoOptions = {
|
|
13
13
|
audioBitrate: string | null;
|
|
14
14
|
videoBitrate: string | null;
|
|
@@ -181,7 +181,7 @@ const innerStitchFramesToVideo = async ({ assetsInfo, audioBitrate, audioCodec,
|
|
|
181
181
|
'-c:a',
|
|
182
182
|
(0, audio_codec_1.mapAudioCodecToFfmpegAudioCodecName)(resolvedAudioCodec),
|
|
183
183
|
'-b:a',
|
|
184
|
-
audioBitrate ? audioBitrate : '320k',
|
|
184
|
+
audioBitrate !== null && audioBitrate !== void 0 ? audioBitrate : '320k',
|
|
185
185
|
force ? '-y' : null,
|
|
186
186
|
outputLocation !== null && outputLocation !== void 0 ? outputLocation : tempFile,
|
|
187
187
|
].filter(no_react_1.NoReactInternals.truthy),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.116",
|
|
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.
|
|
21
|
+
"remotion": "4.0.116"
|
|
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-
|
|
44
|
-
"@remotion/compositor-
|
|
45
|
-
"@remotion/compositor-linux-
|
|
46
|
-
"@remotion/compositor-
|
|
47
|
-
"@remotion/compositor-linux-
|
|
48
|
-
"@remotion/compositor-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-arm64": "4.0.116",
|
|
44
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.116",
|
|
45
|
+
"@remotion/compositor-linux-x64-musl": "4.0.116",
|
|
46
|
+
"@remotion/compositor-darwin-x64": "4.0.116",
|
|
47
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.116",
|
|
48
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.116",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.116"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|
package/dist/does-have-m2-bug.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.warnAboutM2Bug = void 0;
|
|
4
|
-
const node_os_1 = require("node:os");
|
|
5
|
-
const warnAboutM2Bug = (codec, pixelFormat) => {
|
|
6
|
-
const isM2 = (0, node_os_1.cpus)().find((c) => c.model.includes('Apple M2'));
|
|
7
|
-
if (codec === 'prores' && pixelFormat === 'yuv422p10le' && isM2) {
|
|
8
|
-
console.warn();
|
|
9
|
-
console.warn('⚠️ Known issue: Apple M2 CPUs currently suffer from a bug where transparent ProRes videos have flickering. https://github.com/remotion-dev/remotion/issues/1929');
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.warnAboutM2Bug = warnAboutM2Bug;
|