@remotion/webcodecs 4.0.286 → 4.0.287
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.d.ts +2 -1
- package/dist/convert-media.js +2 -1
- package/dist/esm/index.mjs +7 -9
- package/dist/esm/web-fs.mjs +2 -4
- package/package.json +5 -5
package/dist/convert-media.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export type ConvertMediaOnAudioData = (options: {
|
|
|
35
35
|
audioData: AudioData;
|
|
36
36
|
track: AudioTrack;
|
|
37
37
|
}) => Promise<AudioData> | AudioData;
|
|
38
|
-
export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller, onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel, writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, expectedDurationInSeconds, ...more }: {
|
|
38
|
+
export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller, onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel, writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, expectedDurationInSeconds, seekingHints, ...more }: {
|
|
39
39
|
src: ParseMediaOptions<F>["src"];
|
|
40
40
|
container: ConvertMediaContainer;
|
|
41
41
|
onVideoFrame?: ConvertMediaOnVideoFrame;
|
|
@@ -57,4 +57,5 @@ export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src,
|
|
|
57
57
|
resize?: ResizeOperation;
|
|
58
58
|
apiKey?: string | null;
|
|
59
59
|
fields?: F;
|
|
60
|
+
seekingHints?: ParseMediaOptions<F>["seekingHints"];
|
|
60
61
|
} & ParseMediaCallbacks) => Promise<ConvertMediaResult>;
|
package/dist/convert-media.js
CHANGED
|
@@ -21,7 +21,7 @@ const select_container_creator_1 = require("./select-container-creator");
|
|
|
21
21
|
const send_telemetry_event_1 = require("./send-telemetry-event");
|
|
22
22
|
const throttled_state_update_1 = require("./throttled-state-update");
|
|
23
23
|
const webcodecs_controller_1 = require("./webcodecs-controller");
|
|
24
|
-
const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller = (0, webcodecs_controller_1.webcodecsController)(), onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel = 'info', writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, expectedDurationInSeconds, ...more }) {
|
|
24
|
+
const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller = (0, webcodecs_controller_1.webcodecsController)(), onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel = 'info', writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, expectedDurationInSeconds, seekingHints, ...more }) {
|
|
25
25
|
if (controller._internals.signal.aborted) {
|
|
26
26
|
return Promise.reject(new media_parser_1.MediaParserAbortError('Aborted'));
|
|
27
27
|
}
|
|
@@ -175,6 +175,7 @@ const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgres
|
|
|
175
175
|
selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? media_parser_1.defaultSelectM3uAssociatedPlaylists,
|
|
176
176
|
makeSamplesStartAtZero: false,
|
|
177
177
|
mp4HeaderSegment: null,
|
|
178
|
+
seekingHints: seekingHints ?? null,
|
|
178
179
|
})
|
|
179
180
|
.then(() => {
|
|
180
181
|
return state.waitForFinish();
|
package/dist/esm/index.mjs
CHANGED
|
@@ -101,8 +101,7 @@ var createContent = async ({ filename }) => {
|
|
|
101
101
|
await directoryHandle.removeEntry(actualFilename, {
|
|
102
102
|
recursive: true
|
|
103
103
|
});
|
|
104
|
-
} catch {
|
|
105
|
-
}
|
|
104
|
+
} catch {}
|
|
106
105
|
};
|
|
107
106
|
await remove();
|
|
108
107
|
const fileHandle = await directoryHandle.getFileHandle(actualFilename, {
|
|
@@ -129,8 +128,7 @@ var createContent = async ({ filename }) => {
|
|
|
129
128
|
await writPromise;
|
|
130
129
|
try {
|
|
131
130
|
await writable.close();
|
|
132
|
-
} catch {
|
|
133
|
-
}
|
|
131
|
+
} catch {}
|
|
134
132
|
},
|
|
135
133
|
async getBlob() {
|
|
136
134
|
const newHandle = await directoryHandle.getFileHandle(actualFilename, {
|
|
@@ -766,8 +764,7 @@ var createAudioDecoder = ({
|
|
|
766
764
|
waitForFinish: async () => {
|
|
767
765
|
try {
|
|
768
766
|
await audioDecoder.flush();
|
|
769
|
-
} catch {
|
|
770
|
-
}
|
|
767
|
+
} catch {}
|
|
771
768
|
await queue;
|
|
772
769
|
await ioSynchronizer.waitForFinish(controller);
|
|
773
770
|
await outputQueue;
|
|
@@ -4801,8 +4798,7 @@ var throttledStateUpdate = ({
|
|
|
4801
4798
|
return {
|
|
4802
4799
|
get: () => currentState,
|
|
4803
4800
|
update: null,
|
|
4804
|
-
stopAndGetLastProgress: () => {
|
|
4805
|
-
}
|
|
4801
|
+
stopAndGetLastProgress: () => {}
|
|
4806
4802
|
};
|
|
4807
4803
|
}
|
|
4808
4804
|
let lastUpdated = null;
|
|
@@ -4899,6 +4895,7 @@ var convertMedia = async function({
|
|
|
4899
4895
|
selectM3uStream,
|
|
4900
4896
|
selectM3uAssociatedPlaylists,
|
|
4901
4897
|
expectedDurationInSeconds,
|
|
4898
|
+
seekingHints,
|
|
4902
4899
|
...more
|
|
4903
4900
|
}) {
|
|
4904
4901
|
if (controller._internals.signal.aborted) {
|
|
@@ -5053,7 +5050,8 @@ var convertMedia = async function({
|
|
|
5053
5050
|
selectM3uStream: selectM3uStream ?? defaultSelectM3uStreamFn,
|
|
5054
5051
|
selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? defaultSelectM3uAssociatedPlaylists,
|
|
5055
5052
|
makeSamplesStartAtZero: false,
|
|
5056
|
-
mp4HeaderSegment: null
|
|
5053
|
+
mp4HeaderSegment: null,
|
|
5054
|
+
seekingHints: seekingHints ?? null
|
|
5057
5055
|
}).then(() => {
|
|
5058
5056
|
return state.waitForFinish();
|
|
5059
5057
|
}).then(() => {
|
package/dist/esm/web-fs.mjs
CHANGED
|
@@ -7,8 +7,7 @@ var createContent = async ({ filename }) => {
|
|
|
7
7
|
await directoryHandle.removeEntry(actualFilename, {
|
|
8
8
|
recursive: true
|
|
9
9
|
});
|
|
10
|
-
} catch {
|
|
11
|
-
}
|
|
10
|
+
} catch {}
|
|
12
11
|
};
|
|
13
12
|
await remove();
|
|
14
13
|
const fileHandle = await directoryHandle.getFileHandle(actualFilename, {
|
|
@@ -35,8 +34,7 @@ var createContent = async ({ filename }) => {
|
|
|
35
34
|
await writPromise;
|
|
36
35
|
try {
|
|
37
36
|
await writable.close();
|
|
38
|
-
} catch {
|
|
39
|
-
}
|
|
37
|
+
} catch {}
|
|
40
38
|
},
|
|
41
39
|
async getBlob() {
|
|
42
40
|
const newHandle = await directoryHandle.getFileHandle(actualFilename, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/webcodecs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.287",
|
|
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/media-parser": "4.0.
|
|
21
|
-
"@remotion/licensing": "4.0.
|
|
20
|
+
"@remotion/media-parser": "4.0.287",
|
|
21
|
+
"@remotion/licensing": "4.0.287"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/dom-webcodecs": "0.1.11",
|
|
26
26
|
"eslint": "9.19.0",
|
|
27
|
-
"@remotion/
|
|
28
|
-
"@remotion/
|
|
27
|
+
"@remotion/eslint-config-internal": "4.0.287",
|
|
28
|
+
"@remotion/example-videos": "4.0.287"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [],
|
|
31
31
|
"publishConfig": {
|