@remotion/webcodecs 4.0.289 → 4.0.291
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 +1 -1
- package/dist/create/matroska/matroska-utils.d.ts +1 -1
- package/dist/esm/index.mjs +7 -2
- package/dist/io-manager/io-synchronizer.js +1 -0
- package/dist/on-audio-track.js +2 -0
- package/dist/on-video-track.js +2 -0
- package/dist/select-container-creator.d.ts +1 -1
- package/package.json +5 -5
package/dist/convert-media.js
CHANGED
|
@@ -174,7 +174,7 @@ const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgres
|
|
|
174
174
|
selectM3uStream: selectM3uStream ?? media_parser_1.defaultSelectM3uStreamFn,
|
|
175
175
|
selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? media_parser_1.defaultSelectM3uAssociatedPlaylists,
|
|
176
176
|
makeSamplesStartAtZero: false,
|
|
177
|
-
|
|
177
|
+
m3uPlaylistContext: null,
|
|
178
178
|
seekingHints: seekingHints ?? null,
|
|
179
179
|
})
|
|
180
180
|
.then(() => {
|
|
@@ -19,7 +19,7 @@ export type EbmlParsedOrUint8Array<T extends Ebml> = {
|
|
|
19
19
|
value: EbmlValueOrUint8Array<T>;
|
|
20
20
|
minVintWidth: number | null;
|
|
21
21
|
};
|
|
22
|
-
export declare const measureEBMLVarInt: (value: number) => 2 |
|
|
22
|
+
export declare const measureEBMLVarInt: (value: number) => 2 | 4 | 1 | 5 | 3 | 6;
|
|
23
23
|
export declare const getVariableInt: (value: number, minWidth: number | null) => Uint8Array<ArrayBuffer>;
|
|
24
24
|
export declare const makeMatroskaBytes: (fields: PossibleEbmlOrUint8Array) => BytesAndOffset;
|
|
25
25
|
export type PossibleEbmlOrUint8Array = Prettify<{
|
package/dist/esm/index.mjs
CHANGED
|
@@ -654,7 +654,8 @@ var makeIoSynchronizer = ({
|
|
|
654
654
|
`smallest progress: ${progress.getSmallestProgress()}`,
|
|
655
655
|
`inputs: ${JSON.stringify(inputs)}`,
|
|
656
656
|
`last output: ${lastOutput}`,
|
|
657
|
-
`wanted: ${unemitted} unemitted items, ${unprocessed} unprocessed items, minimum progress ${minimumProgress}
|
|
657
|
+
`wanted: ${unemitted} unemitted items, ${unprocessed} unprocessed items, minimum progress ${minimumProgress}`,
|
|
658
|
+
`Report this at https://remotion.dev/report`
|
|
658
659
|
].join(`
|
|
659
660
|
`),
|
|
660
661
|
ms: 1e4,
|
|
@@ -1869,6 +1870,8 @@ var makeAudioTrackHandler = ({
|
|
|
1869
1870
|
sampleRate: track.sampleRate,
|
|
1870
1871
|
description: track.description
|
|
1871
1872
|
});
|
|
1873
|
+
Log.verbose(logLevel, "Audio encoder config", audioEncoderConfig);
|
|
1874
|
+
Log.verbose(logLevel, "Audio decoder config", audioDecoderConfig ?? track);
|
|
1872
1875
|
if (!audioEncoderConfig) {
|
|
1873
1876
|
abortConversion(new Error(`Could not configure audio encoder of track ${track.trackId}`));
|
|
1874
1877
|
return null;
|
|
@@ -2452,6 +2455,8 @@ var makeVideoTrackHandler = ({
|
|
|
2452
2455
|
fps: track.fps
|
|
2453
2456
|
});
|
|
2454
2457
|
const videoDecoderConfig = await getVideoDecoderConfigWithHardwareAcceleration(track);
|
|
2458
|
+
Log.verbose(logLevel, "Video encoder config", videoEncoderConfig);
|
|
2459
|
+
Log.verbose(logLevel, "Video decoder config", videoDecoderConfig ?? track);
|
|
2455
2460
|
if (videoEncoderConfig === null) {
|
|
2456
2461
|
abortConversion(new Error(`Could not configure video encoder of track ${track.trackId}`));
|
|
2457
2462
|
return null;
|
|
@@ -5210,7 +5215,7 @@ var convertMedia = async function({
|
|
|
5210
5215
|
selectM3uStream: selectM3uStream ?? defaultSelectM3uStreamFn,
|
|
5211
5216
|
selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? defaultSelectM3uAssociatedPlaylists,
|
|
5212
5217
|
makeSamplesStartAtZero: false,
|
|
5213
|
-
|
|
5218
|
+
m3uPlaylistContext: null,
|
|
5214
5219
|
seekingHints: seekingHints ?? null
|
|
5215
5220
|
}).then(() => {
|
|
5216
5221
|
return state.waitForFinish();
|
|
@@ -80,6 +80,7 @@ const makeIoSynchronizer = ({ logLevel, label, progress, }) => {
|
|
|
80
80
|
`inputs: ${JSON.stringify(inputs)}`,
|
|
81
81
|
`last output: ${lastOutput}`,
|
|
82
82
|
`wanted: ${unemitted} unemitted items, ${unprocessed} unprocessed items, minimum progress ${minimumProgress}`,
|
|
83
|
+
`Report this at https://remotion.dev/report`,
|
|
83
84
|
].join('\n'),
|
|
84
85
|
ms: 10000,
|
|
85
86
|
controller,
|
package/dist/on-audio-track.js
CHANGED
|
@@ -68,6 +68,8 @@ const makeAudioTrackHandler = ({ state, defaultAudioCodec: audioCodec, controlle
|
|
|
68
68
|
sampleRate: track.sampleRate,
|
|
69
69
|
description: track.description,
|
|
70
70
|
});
|
|
71
|
+
log_1.Log.verbose(logLevel, 'Audio encoder config', audioEncoderConfig);
|
|
72
|
+
log_1.Log.verbose(logLevel, 'Audio decoder config', audioDecoderConfig ?? track);
|
|
71
73
|
if (!audioEncoderConfig) {
|
|
72
74
|
abortConversion(new Error(`Could not configure audio encoder of track ${track.trackId}`));
|
|
73
75
|
return null;
|
package/dist/on-video-track.js
CHANGED
|
@@ -84,6 +84,8 @@ const makeVideoTrackHandler = ({ state, onVideoFrame, onMediaStateUpdate, abortC
|
|
|
84
84
|
fps: track.fps,
|
|
85
85
|
});
|
|
86
86
|
const videoDecoderConfig = await (0, video_decoder_config_1.getVideoDecoderConfigWithHardwareAcceleration)(track);
|
|
87
|
+
log_1.Log.verbose(logLevel, 'Video encoder config', videoEncoderConfig);
|
|
88
|
+
log_1.Log.verbose(logLevel, 'Video decoder config', videoDecoderConfig ?? track);
|
|
87
89
|
if (videoEncoderConfig === null) {
|
|
88
90
|
abortConversion(new Error(`Could not configure video encoder of track ${track.trackId}`));
|
|
89
91
|
return null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ConvertMediaContainer } from './get-available-containers';
|
|
2
|
-
export declare const selectContainerCreator: (container: ConvertMediaContainer) => ({
|
|
2
|
+
export declare const selectContainerCreator: (container: ConvertMediaContainer) => ({ writer, onBytesProgress, onMillisecondsProgress, logLevel, filename, progressTracker, expectedDurationInSeconds, }: import("./create/media-fn").MediaFnGeneratorInput) => Promise<import("./create/media-fn").MediaFn>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/webcodecs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.291",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
20
20
|
"license": "Remotion License (See https://remotion.dev/docs/webcodecs#license)",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@remotion/media-parser": "4.0.
|
|
23
|
-
"@remotion/licensing": "4.0.
|
|
22
|
+
"@remotion/media-parser": "4.0.291",
|
|
23
|
+
"@remotion/licensing": "4.0.291"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"playwright": "1.51.1",
|
|
29
29
|
"@playwright/test": "1.51.1",
|
|
30
30
|
"eslint": "9.19.0",
|
|
31
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
-
"@remotion/example-videos": "4.0.
|
|
31
|
+
"@remotion/eslint-config-internal": "4.0.291",
|
|
32
|
+
"@remotion/example-videos": "4.0.291"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [],
|
|
35
35
|
"publishConfig": {
|