@remotion/webcodecs 4.0.242 → 4.0.244
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/convert-media.js
CHANGED
|
@@ -156,7 +156,7 @@ const convertMedia = async function ({ src, onVideoFrame, onProgress: onProgress
|
|
|
156
156
|
})
|
|
157
157
|
.catch((err) => {
|
|
158
158
|
(0, send_telemetry_event_1.sendUsageEvent)({ succeeded: false, apiKey: apiKey !== null && apiKey !== void 0 ? apiKey : null }).catch((err2) => {
|
|
159
|
-
log_1.Log.error('Failed to send usage event
|
|
159
|
+
log_1.Log.error('Failed to send usage event', err2);
|
|
160
160
|
});
|
|
161
161
|
reject(err);
|
|
162
162
|
})
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1417,7 +1417,7 @@ var createVideoDecoder = ({
|
|
|
1417
1417
|
await ioSynchronizer.waitFor({
|
|
1418
1418
|
unemitted: 20,
|
|
1419
1419
|
unprocessed: 2,
|
|
1420
|
-
minimumProgress: sample.timestamp -
|
|
1420
|
+
minimumProgress: sample.timestamp - 1e7,
|
|
1421
1421
|
signal
|
|
1422
1422
|
});
|
|
1423
1423
|
if (sample.type === "key") {
|
|
@@ -1510,7 +1510,7 @@ var createVideoEncoder = ({
|
|
|
1510
1510
|
await ioSynchronizer.waitFor({
|
|
1511
1511
|
unemitted: 10,
|
|
1512
1512
|
unprocessed: 10,
|
|
1513
|
-
minimumProgress: frame.timestamp -
|
|
1513
|
+
minimumProgress: frame.timestamp - 1e7,
|
|
1514
1514
|
signal
|
|
1515
1515
|
});
|
|
1516
1516
|
if (encoder.state === "closed") {
|
|
@@ -1580,7 +1580,7 @@ var makeVideoTrackHandler = ({
|
|
|
1580
1580
|
return null;
|
|
1581
1581
|
}
|
|
1582
1582
|
if (videoOperation.type === "fail") {
|
|
1583
|
-
throw new error_cause_default(`Video track with ID ${track.trackId}
|
|
1583
|
+
throw new error_cause_default(`Video track with ID ${track.trackId} resolved with {"type": "fail"}. This could mean that this video track could neither be copied to the output container or re-encoded. You have the option to drop the track instead of failing it: https://remotion.dev/docs/webcodecs/track-transformation`);
|
|
1584
1584
|
}
|
|
1585
1585
|
if (videoOperation.type === "copy") {
|
|
1586
1586
|
Log.verbose(logLevel, `Copying video track with codec ${track.codec} and timescale ${track.timescale}`);
|
|
@@ -1940,7 +1940,7 @@ var convertMedia = async function({
|
|
|
1940
1940
|
});
|
|
1941
1941
|
}).catch((err) => {
|
|
1942
1942
|
sendUsageEvent({ succeeded: false, apiKey: apiKey ?? null }).catch((err2) => {
|
|
1943
|
-
Log.error("Failed to send usage event
|
|
1943
|
+
Log.error("Failed to send usage event", err2);
|
|
1944
1944
|
});
|
|
1945
1945
|
reject(err);
|
|
1946
1946
|
}).finally(() => {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/on-video-track.js
CHANGED
|
@@ -43,7 +43,7 @@ const makeVideoTrackHandler = ({ state, onVideoFrame, onMediaStateUpdate, abortC
|
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
45
|
if (videoOperation.type === 'fail') {
|
|
46
|
-
throw new error_cause_1.default(`Video track with ID ${track.trackId}
|
|
46
|
+
throw new error_cause_1.default(`Video track with ID ${track.trackId} resolved with {"type": "fail"}. This could mean that this video track could neither be copied to the output container or re-encoded. You have the option to drop the track instead of failing it: https://remotion.dev/docs/webcodecs/track-transformation`);
|
|
47
47
|
}
|
|
48
48
|
if (videoOperation.type === 'copy') {
|
|
49
49
|
log_1.Log.verbose(logLevel, `Copying video track with codec ${track.codec} and timescale ${track.timescale}`);
|
package/dist/video-decoder.js
CHANGED
|
@@ -64,7 +64,7 @@ const createVideoDecoder = ({ onFrame, onError, signal, config, logLevel, progre
|
|
|
64
64
|
await ioSynchronizer.waitFor({
|
|
65
65
|
unemitted: 20,
|
|
66
66
|
unprocessed: 2,
|
|
67
|
-
minimumProgress: sample.timestamp -
|
|
67
|
+
minimumProgress: sample.timestamp - 10000000,
|
|
68
68
|
signal,
|
|
69
69
|
});
|
|
70
70
|
if (sample.type === 'key') {
|
package/dist/video-encoder.js
CHANGED
|
@@ -62,7 +62,7 @@ const createVideoEncoder = ({ onChunk, onError, signal, config, logLevel, output
|
|
|
62
62
|
// Firefox stalls if too few frames are passed
|
|
63
63
|
unemitted: 10,
|
|
64
64
|
unprocessed: 10,
|
|
65
|
-
minimumProgress: frame.timestamp -
|
|
65
|
+
minimumProgress: frame.timestamp - 10000000,
|
|
66
66
|
signal,
|
|
67
67
|
});
|
|
68
68
|
// @ts-expect-error - can have changed in the meanwhile
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/webcodecs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.244",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
18
18
|
"license": "Remotion License (See https://remotion.dev/docs/webcodecs#license)",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@remotion/
|
|
21
|
-
"@remotion/
|
|
20
|
+
"@remotion/media-parser": "4.0.244",
|
|
21
|
+
"@remotion/licensing": "4.0.244"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/dom-webcodecs": "0.1.11",
|
|
26
26
|
"eslint": "9.14.0",
|
|
27
|
-
"@remotion/example-videos": "4.0.
|
|
28
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
27
|
+
"@remotion/example-videos": "4.0.244",
|
|
28
|
+
"@remotion/eslint-config-internal": "4.0.244"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [],
|
|
31
31
|
"publishConfig": {
|