@remotion/renderer 4.0.0-offthread.5 → 4.0.0-offthread.6
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.
|
@@ -17,7 +17,8 @@ function streamToString(stream) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
exports.streamToString = streamToString;
|
|
20
|
-
const
|
|
20
|
+
const lastFrameLimit = (0, p_limit_1.pLimit)(5);
|
|
21
|
+
const mainLimit = (0, p_limit_1.pLimit)(5);
|
|
21
22
|
const getLastFrameOfVideoUnlimited = async ({ ffmpegExecutable, offset, src, }) => {
|
|
22
23
|
if (offset > 100) {
|
|
23
24
|
throw new Error('could not get last frame of ' +
|
|
@@ -72,7 +73,7 @@ const getLastFrameOfVideo = async (options) => {
|
|
|
72
73
|
if (fromCache) {
|
|
73
74
|
return fromCache;
|
|
74
75
|
}
|
|
75
|
-
const result = await
|
|
76
|
+
const result = await lastFrameLimit(getLastFrameOfVideoUnlimited, options);
|
|
76
77
|
(0, last_frame_from_video_cache_1.setLastFrameInCache)(options, result);
|
|
77
78
|
return result;
|
|
78
79
|
};
|
|
@@ -136,6 +137,6 @@ const extractFrameFromVideoFn = async ({ time, src, ffmpegExecutable, }) => {
|
|
|
136
137
|
};
|
|
137
138
|
exports.extractFrameFromVideoFn = extractFrameFromVideoFn;
|
|
138
139
|
const extractFrameFromVideo = (options) => {
|
|
139
|
-
return
|
|
140
|
+
return mainLimit(exports.extractFrameFromVideoFn, options);
|
|
140
141
|
};
|
|
141
142
|
exports.extractFrameFromVideo = extractFrameFromVideo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.0-offthread.
|
|
3
|
+
"version": "4.0.0-offthread.6+d689e66f2",
|
|
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
|
"puppeteer-core": "13.5.1",
|
|
25
|
-
"remotion": "4.0.0-offthread.
|
|
25
|
+
"remotion": "4.0.0-offthread.6+d689e66f2",
|
|
26
26
|
"serve-handler": "6.1.3",
|
|
27
27
|
"source-map": "^0.8.0-beta.0"
|
|
28
28
|
},
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d689e66f2c7b5096008b60c68254f3d953602651"
|
|
63
63
|
}
|