@remotion/renderer 4.0.165 → 4.0.167
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/download-file.js +1 -1
- package/dist/combine-video-streams.js +2 -0
- package/dist/pure.d.ts +0 -10
- package/dist/pure.js +0 -3
- package/dist/render-frames.js +3 -1
- package/package.json +11 -10
|
@@ -96,7 +96,7 @@ const downloadFile = async (options, retries = 2, attempt = 1) => {
|
|
|
96
96
|
catch (err) {
|
|
97
97
|
const { message } = err;
|
|
98
98
|
if (message === 'aborted' ||
|
|
99
|
-
message
|
|
99
|
+
message.includes('ECONNRESET') ||
|
|
100
100
|
message.includes(incorrectContentLengthToken) ||
|
|
101
101
|
// Try again if hitting internal errors
|
|
102
102
|
message.includes('503') ||
|
|
@@ -32,6 +32,8 @@ const combineVideoStreams = async ({ fps, codec, filelistDir, numberOfGifLoops,
|
|
|
32
32
|
'-an',
|
|
33
33
|
'-c:v',
|
|
34
34
|
encoder,
|
|
35
|
+
codec === 'h265' ? '-tag:v' : null,
|
|
36
|
+
codec === 'h265' ? 'hvc1' : null,
|
|
35
37
|
codec === 'h264' ? '-movflags' : null,
|
|
36
38
|
codec === 'h264' ? 'faststart' : null,
|
|
37
39
|
addRemotionMetadata ? `-metadata` : null,
|
package/dist/pure.d.ts
CHANGED
|
@@ -12,14 +12,4 @@ export declare const NoReactAPIs: {
|
|
|
12
12
|
preferLossless: boolean;
|
|
13
13
|
separateAudioTo: string | null;
|
|
14
14
|
}) => void;
|
|
15
|
-
makeStreamer: (onMessage: (statusType: "error" | "success", nonce: string, data: Uint8Array) => void) => {
|
|
16
|
-
onData: (data: Uint8Array) => void;
|
|
17
|
-
getOutputBuffer: () => Uint8Array;
|
|
18
|
-
clear: () => void;
|
|
19
|
-
};
|
|
20
|
-
makeStreamPayloadMessage: ({ status, body, nonce, }: {
|
|
21
|
-
nonce: string;
|
|
22
|
-
status: 0 | 1;
|
|
23
|
-
body: Uint8Array;
|
|
24
|
-
}) => Uint8Array;
|
|
25
15
|
};
|
package/dist/pure.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NoReactAPIs = void 0;
|
|
4
4
|
const get_extension_from_codec_1 = require("./get-extension-from-codec");
|
|
5
5
|
const get_extension_of_filename_1 = require("./get-extension-of-filename");
|
|
6
|
-
const streaming_1 = require("./streaming");
|
|
7
6
|
const validate_output_filename_1 = require("./validate-output-filename");
|
|
8
7
|
const wrap_with_error_handling_1 = require("./wrap-with-error-handling");
|
|
9
8
|
exports.NoReactAPIs = {
|
|
@@ -11,6 +10,4 @@ exports.NoReactAPIs = {
|
|
|
11
10
|
getExtensionOfFilename: get_extension_of_filename_1.getExtensionOfFilename,
|
|
12
11
|
getFileExtensionFromCodec: get_extension_from_codec_1.getFileExtensionFromCodec,
|
|
13
12
|
validateOutputFilename: validate_output_filename_1.validateOutputFilename,
|
|
14
|
-
makeStreamer: streaming_1.makeStreamer,
|
|
15
|
-
makeStreamPayloadMessage: streaming_1.makeStreamPayloadMessage,
|
|
16
13
|
};
|
package/dist/render-frames.js
CHANGED
|
@@ -234,7 +234,9 @@ const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, serialized
|
|
|
234
234
|
indent,
|
|
235
235
|
logLevel,
|
|
236
236
|
}).catch((err) => {
|
|
237
|
-
|
|
237
|
+
const truncateWithEllipsis = renderAsset.src.substring(0, 1000) +
|
|
238
|
+
(renderAsset.src.length > 1000 ? '...' : '');
|
|
239
|
+
onError(new Error(`Error while downloading ${truncateWithEllipsis}: ${err.stack}`));
|
|
238
240
|
});
|
|
239
241
|
});
|
|
240
242
|
if (!assetsOnly) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.167",
|
|
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.167"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -40,16 +40,17 @@
|
|
|
40
40
|
"react": "18.3.1",
|
|
41
41
|
"react-dom": "18.3.1",
|
|
42
42
|
"vitest": "0.31.1",
|
|
43
|
-
"@types/ws": "8.5.10"
|
|
43
|
+
"@types/ws": "8.5.10",
|
|
44
|
+
"@remotion/streaming": "4.0.167"
|
|
44
45
|
},
|
|
45
46
|
"optionalDependencies": {
|
|
46
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
47
|
-
"@remotion/compositor-
|
|
48
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
49
|
-
"@remotion/compositor-linux-
|
|
50
|
-
"@remotion/compositor-
|
|
51
|
-
"@remotion/compositor-
|
|
52
|
-
"@remotion/compositor-
|
|
47
|
+
"@remotion/compositor-darwin-arm64": "4.0.167",
|
|
48
|
+
"@remotion/compositor-darwin-x64": "4.0.167",
|
|
49
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.167",
|
|
50
|
+
"@remotion/compositor-linux-x64-musl": "4.0.167",
|
|
51
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.167",
|
|
52
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.167",
|
|
53
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.167"
|
|
53
54
|
},
|
|
54
55
|
"keywords": [
|
|
55
56
|
"remotion",
|