@remotion/renderer 3.3.6 → 3.3.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/get-video-stream-duration.d.ts +1 -1
- package/dist/combine-videos.d.ts +2 -2
- package/dist/convert-to-pcm.d.ts +1 -1
- package/dist/create-silent-audio.d.ts +1 -1
- package/dist/ensure-presentation-timestamp.d.ts +1 -1
- package/dist/extract-frame-from-video.d.ts +2 -3
- package/dist/ffmpeg-flags.d.ts +4 -4
- package/dist/ffmpeg-flags.js +25 -22
- package/dist/get-audio-codec-name.d.ts +1 -2
- package/dist/get-frame-of-video-slow.d.ts +4 -2
- package/dist/guess-extension-for-media.d.ts +1 -1
- package/dist/offthread-video-server.d.ts +1 -1
- package/dist/provide-screenshot.d.ts +1 -0
- package/dist/puppeteer-screenshot.d.ts +1 -0
- package/dist/screenshot-dom-element.d.ts +1 -0
- package/dist/screenshot-task.d.ts +1 -0
- package/dist/try-to-extract-frame-of-video-fast.d.ts +1 -2
- package/dist/validate-ffmpeg.d.ts +1 -1
- package/package.json +3 -3
|
@@ -5,5 +5,5 @@ export declare function getVideoStreamDurationwithoutCache({ src, ffprobeExecuta
|
|
|
5
5
|
src: string;
|
|
6
6
|
ffprobeExecutable: FfmpegExecutable;
|
|
7
7
|
remotionRoot: string;
|
|
8
|
-
}):
|
|
8
|
+
}): unknown;
|
|
9
9
|
export declare const getVideoStreamDuration: (downloadMap: DownloadMap, src: string, ffprobeExecutable: FfmpegExecutable, remotionRoot: string) => Promise<VideoDurationResult>;
|
package/dist/combine-videos.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Codec } from './codec';
|
|
2
2
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
3
|
-
|
|
3
|
+
type Options = {
|
|
4
4
|
files: string[];
|
|
5
5
|
filelistDir: string;
|
|
6
6
|
output: string;
|
|
@@ -12,5 +12,5 @@ declare type Options = {
|
|
|
12
12
|
remotionRoot: string;
|
|
13
13
|
ffmpegExecutable: FfmpegExecutable;
|
|
14
14
|
};
|
|
15
|
-
export declare const combineVideos: (options: Options) =>
|
|
15
|
+
export declare const combineVideos: (options: Options) => any;
|
|
16
16
|
export {};
|
package/dist/convert-to-pcm.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const ensurePresentationTimestampWithoutCache: ({ src, remotionRo
|
|
|
5
5
|
remotionRoot: string;
|
|
6
6
|
ffmpegExecutable: FfmpegExecutable;
|
|
7
7
|
ffprobeExecutable: FfmpegExecutable;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => unknown;
|
|
9
9
|
export declare const ensurePresentationTimestamps: ({ downloadMap, src, remotionRoot, ffmpegExecutable, ffprobeExecutable, }: {
|
|
10
10
|
downloadMap: DownloadMap;
|
|
11
11
|
src: string;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { OffthreadVideoImageFormat } from 'remotion';
|
|
3
2
|
import type { DownloadMap } from './assets/download-map';
|
|
4
3
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
5
4
|
import type { LastFrameOptions } from './last-frame-from-video-cache';
|
|
6
5
|
export declare const getLastFrameOfVideo: (options: LastFrameOptions) => Promise<Buffer>;
|
|
7
|
-
|
|
6
|
+
type Options = {
|
|
8
7
|
time: number;
|
|
9
8
|
src: string;
|
|
10
9
|
ffmpegExecutable: FfmpegExecutable;
|
|
@@ -13,5 +12,5 @@ declare type Options = {
|
|
|
13
12
|
downloadMap: DownloadMap;
|
|
14
13
|
remotionRoot: string;
|
|
15
14
|
};
|
|
16
|
-
export declare const extractFrameFromVideo: (options: Options) =>
|
|
15
|
+
export declare const extractFrameFromVideo: (options: Options) => unknown;
|
|
17
16
|
export {};
|
package/dist/ffmpeg-flags.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
2
|
-
export
|
|
2
|
+
export type FfmpegVersion = [number, number, number] | null;
|
|
3
3
|
export declare const getFfmpegBuildInfo: (options: {
|
|
4
4
|
ffmpegExecutable: string | null;
|
|
5
5
|
remotionRoot: string;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => unknown;
|
|
7
7
|
export declare const ffmpegInNodeModules: (remotionRoot: string, binary: 'ffmpeg' | 'ffprobe') => string | null;
|
|
8
8
|
export declare const ffmpegHasFeature: ({ ffmpegExecutable, feature, remotionRoot, }: {
|
|
9
9
|
ffmpegExecutable: string | null;
|
|
10
10
|
feature: 'enable-gpl' | 'enable-libx265' | 'enable-libvpx';
|
|
11
11
|
remotionRoot: string;
|
|
12
|
-
}) =>
|
|
12
|
+
}) => unknown;
|
|
13
13
|
export declare const parseFfmpegVersion: (buildconf: string) => FfmpegVersion;
|
|
14
14
|
export declare const getFfmpegVersion: (options: {
|
|
15
15
|
ffmpegExecutable: string | null;
|
|
@@ -20,7 +20,7 @@ export declare const lambdaFfmpegPaths: {
|
|
|
20
20
|
readonly ffmpeg: "/opt/bin/ffmpeg";
|
|
21
21
|
readonly ffprobe: "/opt/bin/ffprobe";
|
|
22
22
|
};
|
|
23
|
-
export declare const getExecutableBinary: (ffmpegExecutable: FfmpegExecutable, remotionRoot: string, binary: 'ffmpeg' | 'ffprobe') =>
|
|
23
|
+
export declare const getExecutableBinary: (ffmpegExecutable: FfmpegExecutable, remotionRoot: string, binary: 'ffmpeg' | 'ffprobe') => any;
|
|
24
24
|
export declare const getBinaryDownloadUrl: (binary: 'ffmpeg' | 'ffprobe') => {
|
|
25
25
|
url: string;
|
|
26
26
|
contentLength: number;
|
package/dist/ffmpeg-flags.js
CHANGED
|
@@ -160,7 +160,7 @@ function toMegabytes(bytes) {
|
|
|
160
160
|
return `${Math.round(mb * 10) / 10} Mb`;
|
|
161
161
|
}
|
|
162
162
|
const getBinaryDownloadUrl = (binary) => {
|
|
163
|
-
if (os_1.default.platform() === 'win32') {
|
|
163
|
+
if (os_1.default.platform() === 'win32' && process.arch === 'x64') {
|
|
164
164
|
return binary === 'ffmpeg'
|
|
165
165
|
? {
|
|
166
166
|
url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-win-x86.exe',
|
|
@@ -171,18 +171,18 @@ const getBinaryDownloadUrl = (binary) => {
|
|
|
171
171
|
contentLength: 127425536,
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
if (os_1.default.platform() === 'darwin') {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
174
|
+
if (os_1.default.platform() === 'darwin' && process.arch === 'arm64') {
|
|
175
|
+
return binary === 'ffmpeg'
|
|
176
|
+
? {
|
|
177
|
+
url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-macos-arm64',
|
|
178
|
+
contentLength: 42093320,
|
|
179
|
+
}
|
|
180
|
+
: {
|
|
181
|
+
url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffprobe-macos-arm64',
|
|
182
|
+
contentLength: 46192536,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
if (os_1.default.platform() === 'darwin' && process.arch === 'x64') {
|
|
186
186
|
return binary === 'ffmpeg'
|
|
187
187
|
? {
|
|
188
188
|
url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-macos-x86',
|
|
@@ -193,15 +193,18 @@ const getBinaryDownloadUrl = (binary) => {
|
|
|
193
193
|
contentLength: 77364284,
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
196
|
+
if (os_1.default.platform() === 'linux' && process.arch === 'x64') {
|
|
197
|
+
return binary === 'ffmpeg'
|
|
198
|
+
? {
|
|
199
|
+
url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffmpeg-linux-amd64',
|
|
200
|
+
contentLength: 78502560,
|
|
201
|
+
}
|
|
202
|
+
: {
|
|
203
|
+
url: 'https://remotion-ffmpeg-binaries.s3.eu-central-1.amazonaws.com/ffprobe-linux-amd64',
|
|
204
|
+
contentLength: 78400704,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
return null;
|
|
205
208
|
};
|
|
206
209
|
exports.getBinaryDownloadUrl = getBinaryDownloadUrl;
|
|
207
210
|
const printMessage = (ffmpegVersion) => {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getAudioCodecName: (codec: Codec) => string | null;
|
|
1
|
+
export declare const getAudioCodecName: (codec: any) => string | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { OffthreadVideoImageFormat } from 'remotion';
|
|
3
2
|
import type { SpecialVCodecForTransparency } from './assets/download-map';
|
|
4
3
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
@@ -8,7 +7,10 @@ export declare const getFrameOfVideoSlow: ({ src, duration, ffmpegExecutable, im
|
|
|
8
7
|
duration: number;
|
|
9
8
|
imageFormat: OffthreadVideoImageFormat;
|
|
10
9
|
specialVCodecForTransparency: SpecialVCodecForTransparency;
|
|
11
|
-
needsResize: [
|
|
10
|
+
needsResize: [
|
|
11
|
+
number,
|
|
12
|
+
number
|
|
13
|
+
] | null;
|
|
12
14
|
offset: number;
|
|
13
15
|
fps: number | null;
|
|
14
16
|
remotionRoot: string;
|
|
@@ -5,7 +5,7 @@ import type { DownloadMap } from './assets/download-map';
|
|
|
5
5
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
6
6
|
export declare const extractUrlAndSourceFromUrl: (url: string) => {
|
|
7
7
|
src: string;
|
|
8
|
-
time:
|
|
8
|
+
time: any;
|
|
9
9
|
imageFormat: OffthreadVideoImageFormat;
|
|
10
10
|
};
|
|
11
11
|
export declare const startOffthreadVideoServer: ({ ffmpegExecutable, ffprobeExecutable, onDownload, onError, downloadMap, remotionRoot, }: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type { OffthreadVideoImageFormat } from 'remotion';
|
|
3
2
|
import type { NeedsResize, SpecialVCodecForTransparency } from './assets/download-map';
|
|
4
3
|
import type { FfmpegExecutable } from './ffmpeg-executable';
|
|
@@ -10,4 +9,4 @@ export declare const tryToExtractFrameOfVideoFast: ({ ffmpegExecutable, remotion
|
|
|
10
9
|
src: string;
|
|
11
10
|
specialVCodecForTransparency: SpecialVCodecForTransparency;
|
|
12
11
|
actualOffset: string;
|
|
13
|
-
}) =>
|
|
12
|
+
}) => unknown;
|
|
@@ -3,5 +3,5 @@ export declare const binaryExists: (name: 'ffmpeg' | 'ffprobe') => boolean;
|
|
|
3
3
|
export declare const checkAndValidateFfmpegVersion: (options: {
|
|
4
4
|
ffmpegExecutable: string | null;
|
|
5
5
|
remotionRoot: string;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => any;
|
|
7
7
|
export declare const validateFfmpeg: (customFfmpegBinary: string | null, remotionRoot: string, binary: 'ffmpeg' | 'ffprobe') => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7",
|
|
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.3.
|
|
25
|
+
"remotion": "3.3.7",
|
|
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": "5a9310dd3db431e7a3e2eb2e2b3c508bbc7b258a"
|
|
61
61
|
}
|