@kenzuya/mediabunny 1.26.0 → 1.28.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.
- package/README.md +1 -1
- package/dist/bundles/{mediabunny.mjs → mediabunny.js} +21963 -21390
- package/dist/bundles/mediabunny.min.js +490 -0
- package/dist/modules/shared/mp3-misc.d.ts.map +1 -1
- package/dist/modules/src/adts/adts-demuxer.d.ts +6 -6
- package/dist/modules/src/adts/adts-demuxer.d.ts.map +1 -1
- package/dist/modules/src/adts/adts-muxer.d.ts +4 -4
- package/dist/modules/src/adts/adts-muxer.d.ts.map +1 -1
- package/dist/modules/src/adts/adts-reader.d.ts +1 -1
- package/dist/modules/src/adts/adts-reader.d.ts.map +1 -1
- package/dist/modules/src/avi/avi-demuxer.d.ts +44 -0
- package/dist/modules/src/avi/avi-demuxer.d.ts.map +1 -0
- package/dist/modules/src/avi/avi-misc.d.ts +88 -0
- package/dist/modules/src/avi/avi-misc.d.ts.map +1 -0
- package/dist/modules/src/avi/avi-muxer.d.ts +45 -0
- package/dist/modules/src/avi/avi-muxer.d.ts.map +1 -0
- package/dist/modules/src/avi/riff-writer.d.ts +26 -0
- package/dist/modules/src/avi/riff-writer.d.ts.map +1 -0
- package/dist/modules/src/codec-data.d.ts +8 -3
- package/dist/modules/src/codec-data.d.ts.map +1 -1
- package/dist/modules/src/codec.d.ts +10 -10
- package/dist/modules/src/codec.d.ts.map +1 -1
- package/dist/modules/src/conversion.d.ts +33 -16
- package/dist/modules/src/conversion.d.ts.map +1 -1
- package/dist/modules/src/custom-coder.d.ts +8 -8
- package/dist/modules/src/custom-coder.d.ts.map +1 -1
- package/dist/modules/src/demuxer.d.ts +3 -3
- package/dist/modules/src/demuxer.d.ts.map +1 -1
- package/dist/modules/src/encode.d.ts +8 -8
- package/dist/modules/src/encode.d.ts.map +1 -1
- package/dist/modules/src/flac/flac-demuxer.d.ts +7 -7
- package/dist/modules/src/flac/flac-demuxer.d.ts.map +1 -1
- package/dist/modules/src/flac/flac-misc.d.ts +3 -3
- package/dist/modules/src/flac/flac-misc.d.ts.map +1 -1
- package/dist/modules/src/flac/flac-muxer.d.ts +5 -5
- package/dist/modules/src/flac/flac-muxer.d.ts.map +1 -1
- package/dist/modules/src/id3.d.ts +3 -3
- package/dist/modules/src/id3.d.ts.map +1 -1
- package/dist/modules/src/index.d.ts +20 -20
- package/dist/modules/src/index.d.ts.map +1 -1
- package/dist/modules/src/input-format.d.ts +22 -0
- package/dist/modules/src/input-format.d.ts.map +1 -1
- package/dist/modules/src/input-track.d.ts +8 -8
- package/dist/modules/src/input-track.d.ts.map +1 -1
- package/dist/modules/src/input.d.ts +12 -12
- package/dist/modules/src/isobmff/isobmff-boxes.d.ts +2 -2
- package/dist/modules/src/isobmff/isobmff-boxes.d.ts.map +1 -1
- package/dist/modules/src/isobmff/isobmff-demuxer.d.ts +12 -12
- package/dist/modules/src/isobmff/isobmff-demuxer.d.ts.map +1 -1
- package/dist/modules/src/isobmff/isobmff-misc.d.ts.map +1 -1
- package/dist/modules/src/isobmff/isobmff-muxer.d.ts +11 -11
- package/dist/modules/src/isobmff/isobmff-muxer.d.ts.map +1 -1
- package/dist/modules/src/isobmff/isobmff-reader.d.ts +2 -2
- package/dist/modules/src/isobmff/isobmff-reader.d.ts.map +1 -1
- package/dist/modules/src/matroska/ebml.d.ts +3 -3
- package/dist/modules/src/matroska/ebml.d.ts.map +1 -1
- package/dist/modules/src/matroska/matroska-demuxer.d.ts +13 -13
- package/dist/modules/src/matroska/matroska-demuxer.d.ts.map +1 -1
- package/dist/modules/src/matroska/matroska-input.d.ts +33 -0
- package/dist/modules/src/matroska/matroska-input.d.ts.map +1 -0
- package/dist/modules/src/matroska/matroska-misc.d.ts.map +1 -1
- package/dist/modules/src/matroska/matroska-muxer.d.ts +5 -5
- package/dist/modules/src/matroska/matroska-muxer.d.ts.map +1 -1
- package/dist/modules/src/media-sink.d.ts +5 -5
- package/dist/modules/src/media-sink.d.ts.map +1 -1
- package/dist/modules/src/media-source.d.ts +22 -4
- package/dist/modules/src/media-source.d.ts.map +1 -1
- package/dist/modules/src/metadata.d.ts +2 -2
- package/dist/modules/src/metadata.d.ts.map +1 -1
- package/dist/modules/src/misc.d.ts +5 -4
- package/dist/modules/src/misc.d.ts.map +1 -1
- package/dist/modules/src/mp3/mp3-demuxer.d.ts +7 -7
- package/dist/modules/src/mp3/mp3-demuxer.d.ts.map +1 -1
- package/dist/modules/src/mp3/mp3-muxer.d.ts +4 -4
- package/dist/modules/src/mp3/mp3-muxer.d.ts.map +1 -1
- package/dist/modules/src/mp3/mp3-reader.d.ts +2 -2
- package/dist/modules/src/mp3/mp3-reader.d.ts.map +1 -1
- package/dist/modules/src/mp3/mp3-writer.d.ts +1 -1
- package/dist/modules/src/mp3/mp3-writer.d.ts.map +1 -1
- package/dist/modules/src/muxer.d.ts +4 -4
- package/dist/modules/src/muxer.d.ts.map +1 -1
- package/dist/modules/src/ogg/ogg-demuxer.d.ts +7 -7
- package/dist/modules/src/ogg/ogg-demuxer.d.ts.map +1 -1
- package/dist/modules/src/ogg/ogg-misc.d.ts +1 -1
- package/dist/modules/src/ogg/ogg-misc.d.ts.map +1 -1
- package/dist/modules/src/ogg/ogg-muxer.d.ts +5 -5
- package/dist/modules/src/ogg/ogg-muxer.d.ts.map +1 -1
- package/dist/modules/src/ogg/ogg-reader.d.ts +1 -1
- package/dist/modules/src/ogg/ogg-reader.d.ts.map +1 -1
- package/dist/modules/src/output-format.d.ts +51 -6
- package/dist/modules/src/output-format.d.ts.map +1 -1
- package/dist/modules/src/output.d.ts +13 -13
- package/dist/modules/src/output.d.ts.map +1 -1
- package/dist/modules/src/packet.d.ts +1 -1
- package/dist/modules/src/packet.d.ts.map +1 -1
- package/dist/modules/src/pcm.d.ts.map +1 -1
- package/dist/modules/src/reader.d.ts +2 -2
- package/dist/modules/src/reader.d.ts.map +1 -1
- package/dist/modules/src/sample.d.ts +57 -15
- package/dist/modules/src/sample.d.ts.map +1 -1
- package/dist/modules/src/source.d.ts +3 -3
- package/dist/modules/src/source.d.ts.map +1 -1
- package/dist/modules/src/subtitles.d.ts +1 -1
- package/dist/modules/src/subtitles.d.ts.map +1 -1
- package/dist/modules/src/target.d.ts +2 -2
- package/dist/modules/src/target.d.ts.map +1 -1
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/dist/modules/src/wave/riff-writer.d.ts +1 -1
- package/dist/modules/src/wave/riff-writer.d.ts.map +1 -1
- package/dist/modules/src/wave/wave-demuxer.d.ts +6 -6
- package/dist/modules/src/wave/wave-demuxer.d.ts.map +1 -1
- package/dist/modules/src/wave/wave-muxer.d.ts +4 -4
- package/dist/modules/src/wave/wave-muxer.d.ts.map +1 -1
- package/dist/modules/src/writer.d.ts +1 -1
- package/dist/modules/src/writer.d.ts.map +1 -1
- package/dist/packages/eac3/eac3.wasm +0 -0
- package/dist/packages/eac3/mediabunny-eac3.js +1058 -0
- package/dist/packages/eac3/mediabunny-eac3.min.js +44 -0
- package/dist/packages/mp3-encoder/mediabunny-mp3-encoder.js +694 -0
- package/dist/packages/mp3-encoder/mediabunny-mp3-encoder.min.js +58 -0
- package/dist/packages/mpeg4/mediabunny-mpeg4.js +1198 -0
- package/dist/packages/mpeg4/mediabunny-mpeg4.min.js +44 -0
- package/dist/packages/mpeg4/xvid.wasm +0 -0
- package/package.json +18 -57
- package/dist/bundles/mediabunny.cjs +0 -26140
- package/dist/bundles/mediabunny.min.cjs +0 -147
- package/dist/bundles/mediabunny.min.mjs +0 -146
- package/dist/mediabunny.d.ts +0 -3319
- package/dist/modules/shared/mp3-misc.js +0 -147
- package/dist/modules/src/adts/adts-demuxer.js +0 -239
- package/dist/modules/src/adts/adts-muxer.js +0 -80
- package/dist/modules/src/adts/adts-reader.js +0 -63
- package/dist/modules/src/codec-data.js +0 -1730
- package/dist/modules/src/codec.js +0 -869
- package/dist/modules/src/conversion.js +0 -1459
- package/dist/modules/src/custom-coder.js +0 -117
- package/dist/modules/src/demuxer.js +0 -12
- package/dist/modules/src/encode.js +0 -442
- package/dist/modules/src/flac/flac-demuxer.js +0 -504
- package/dist/modules/src/flac/flac-misc.js +0 -135
- package/dist/modules/src/flac/flac-muxer.js +0 -222
- package/dist/modules/src/id3.js +0 -848
- package/dist/modules/src/index.js +0 -28
- package/dist/modules/src/input-format.js +0 -480
- package/dist/modules/src/input-track.js +0 -372
- package/dist/modules/src/input.js +0 -188
- package/dist/modules/src/isobmff/isobmff-boxes.js +0 -1480
- package/dist/modules/src/isobmff/isobmff-demuxer.js +0 -2618
- package/dist/modules/src/isobmff/isobmff-misc.js +0 -20
- package/dist/modules/src/isobmff/isobmff-muxer.js +0 -966
- package/dist/modules/src/isobmff/isobmff-reader.js +0 -72
- package/dist/modules/src/matroska/ebml.js +0 -653
- package/dist/modules/src/matroska/matroska-demuxer.js +0 -2133
- package/dist/modules/src/matroska/matroska-misc.js +0 -20
- package/dist/modules/src/matroska/matroska-muxer.js +0 -1017
- package/dist/modules/src/media-sink.js +0 -1736
- package/dist/modules/src/media-source.js +0 -1825
- package/dist/modules/src/metadata.js +0 -193
- package/dist/modules/src/misc.js +0 -623
- package/dist/modules/src/mp3/mp3-demuxer.js +0 -285
- package/dist/modules/src/mp3/mp3-muxer.js +0 -123
- package/dist/modules/src/mp3/mp3-reader.js +0 -26
- package/dist/modules/src/mp3/mp3-writer.js +0 -78
- package/dist/modules/src/muxer.js +0 -50
- package/dist/modules/src/node.d.ts +0 -9
- package/dist/modules/src/node.d.ts.map +0 -1
- package/dist/modules/src/node.js +0 -9
- package/dist/modules/src/ogg/ogg-demuxer.js +0 -763
- package/dist/modules/src/ogg/ogg-misc.js +0 -78
- package/dist/modules/src/ogg/ogg-muxer.js +0 -353
- package/dist/modules/src/ogg/ogg-reader.js +0 -65
- package/dist/modules/src/output-format.js +0 -527
- package/dist/modules/src/output.js +0 -300
- package/dist/modules/src/packet.js +0 -182
- package/dist/modules/src/pcm.js +0 -85
- package/dist/modules/src/reader.js +0 -236
- package/dist/modules/src/sample.js +0 -1056
- package/dist/modules/src/source.js +0 -1182
- package/dist/modules/src/subtitles.js +0 -575
- package/dist/modules/src/target.js +0 -140
- package/dist/modules/src/wave/riff-writer.js +0 -30
- package/dist/modules/src/wave/wave-demuxer.js +0 -447
- package/dist/modules/src/wave/wave-muxer.js +0 -318
- package/dist/modules/src/writer.js +0 -370
- package/src/adts/adts-demuxer.ts +0 -331
- package/src/adts/adts-muxer.ts +0 -111
- package/src/adts/adts-reader.ts +0 -85
- package/src/codec-data.ts +0 -2078
- package/src/codec.ts +0 -1092
- package/src/conversion.ts +0 -2112
- package/src/custom-coder.ts +0 -197
- package/src/demuxer.ts +0 -24
- package/src/encode.ts +0 -739
- package/src/flac/flac-demuxer.ts +0 -730
- package/src/flac/flac-misc.ts +0 -164
- package/src/flac/flac-muxer.ts +0 -320
- package/src/id3.ts +0 -925
- package/src/index.ts +0 -221
- package/src/input-format.ts +0 -541
- package/src/input-track.ts +0 -529
- package/src/input.ts +0 -235
- package/src/isobmff/isobmff-boxes.ts +0 -1719
- package/src/isobmff/isobmff-demuxer.ts +0 -3190
- package/src/isobmff/isobmff-misc.ts +0 -29
- package/src/isobmff/isobmff-muxer.ts +0 -1348
- package/src/isobmff/isobmff-reader.ts +0 -91
- package/src/matroska/ebml.ts +0 -730
- package/src/matroska/matroska-demuxer.ts +0 -2481
- package/src/matroska/matroska-misc.ts +0 -29
- package/src/matroska/matroska-muxer.ts +0 -1276
- package/src/media-sink.ts +0 -2179
- package/src/media-source.ts +0 -2243
- package/src/metadata.ts +0 -320
- package/src/misc.ts +0 -798
- package/src/mp3/mp3-demuxer.ts +0 -383
- package/src/mp3/mp3-muxer.ts +0 -166
- package/src/mp3/mp3-reader.ts +0 -34
- package/src/mp3/mp3-writer.ts +0 -120
- package/src/muxer.ts +0 -88
- package/src/node.ts +0 -11
- package/src/ogg/ogg-demuxer.ts +0 -1053
- package/src/ogg/ogg-misc.ts +0 -116
- package/src/ogg/ogg-muxer.ts +0 -497
- package/src/ogg/ogg-reader.ts +0 -93
- package/src/output-format.ts +0 -945
- package/src/output.ts +0 -488
- package/src/packet.ts +0 -263
- package/src/pcm.ts +0 -112
- package/src/reader.ts +0 -323
- package/src/sample.ts +0 -1461
- package/src/source.ts +0 -1688
- package/src/subtitles.ts +0 -711
- package/src/target.ts +0 -204
- package/src/tsconfig.json +0 -16
- package/src/wave/riff-writer.ts +0 -36
- package/src/wave/wave-demuxer.ts +0 -529
- package/src/wave/wave-muxer.ts +0 -371
- package/src/writer.ts +0 -490
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { Input } from
|
|
9
|
-
import { InputTrack } from
|
|
10
|
-
import { MetadataTags } from
|
|
8
|
+
import type { Input } from "./input";
|
|
9
|
+
import type { InputTrack } from "./input-track";
|
|
10
|
+
import type { MetadataTags } from "./metadata";
|
|
11
11
|
export declare abstract class Demuxer {
|
|
12
12
|
input: Input;
|
|
13
13
|
constructor(input: Input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demuxer.d.ts","sourceRoot":"","sources":["../../../src/demuxer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"demuxer.d.ts","sourceRoot":"","sources":["../../../src/demuxer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,8BAAsB,OAAO;IAC5B,KAAK,EAAE,KAAK,CAAC;gBAED,KAAK,EAAE,KAAK;IAIxB,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAC3C,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAC3C,QAAQ,CAAC,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IACvC,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC;CACjD"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { AudioCodec, MediaCodec, SubtitleCodec, VideoCodec } from
|
|
9
|
-
import { EncodedPacket } from
|
|
8
|
+
import { type AudioCodec, type MediaCodec, type SubtitleCodec, type VideoCodec } from "./codec";
|
|
9
|
+
import type { EncodedPacket } from "./packet";
|
|
10
10
|
/**
|
|
11
11
|
* Configuration object that controls video encoding. Can be used to set codec, quality, and more.
|
|
12
12
|
* @group Encoding
|
|
@@ -38,7 +38,7 @@ export type VideoEncodingConfig = {
|
|
|
38
38
|
*
|
|
39
39
|
* The "original box" refers to the dimensions of the first encoded frame.
|
|
40
40
|
*/
|
|
41
|
-
sizeChangeBehavior?:
|
|
41
|
+
sizeChangeBehavior?: "deny" | "passThrough" | "fill" | "contain" | "cover";
|
|
42
42
|
/** Called for each successfully encoded packet. Both the packet and the encoding metadata are passed. */
|
|
43
43
|
onEncodedPacket?: (packet: EncodedPacket, meta: EncodedVideoChunkMetadata | undefined) => unknown;
|
|
44
44
|
/**
|
|
@@ -61,9 +61,9 @@ export type VideoEncodingAdditionalOptions = {
|
|
|
61
61
|
* - `'keep'`: The samples' alpha data is also encoded as side data. Make sure to pair this mode with a container
|
|
62
62
|
* format that supports transparency (such as WebM or Matroska).
|
|
63
63
|
*/
|
|
64
|
-
alpha?:
|
|
64
|
+
alpha?: "discard" | "keep";
|
|
65
65
|
/** Configures the bitrate mode; defaults to `'variable'`. */
|
|
66
|
-
bitrateMode?:
|
|
66
|
+
bitrateMode?: "constant" | "variable";
|
|
67
67
|
/**
|
|
68
68
|
* The latency mode used by the encoder; controls the performance-quality tradeoff.
|
|
69
69
|
*
|
|
@@ -71,7 +71,7 @@ export type VideoEncodingAdditionalOptions = {
|
|
|
71
71
|
* - `'realtime'`: The encoder prioritizes low latency over quality, and may drop frames if the encoder becomes
|
|
72
72
|
* overloaded to keep up with real-time requirements.
|
|
73
73
|
*/
|
|
74
|
-
latencyMode?:
|
|
74
|
+
latencyMode?: "quality" | "realtime";
|
|
75
75
|
/**
|
|
76
76
|
* The full codec string as specified in the WebCodecs Codec Registry. This string must match the codec
|
|
77
77
|
* specified in `codec`. When not set, a fitting codec string will be constructed automatically by the library.
|
|
@@ -81,7 +81,7 @@ export type VideoEncodingAdditionalOptions = {
|
|
|
81
81
|
* A hint that configures the hardware acceleration method of this codec. This is best left on `'no-preference'`,
|
|
82
82
|
* the default.
|
|
83
83
|
*/
|
|
84
|
-
hardwareAcceleration?:
|
|
84
|
+
hardwareAcceleration?: "no-preference" | "prefer-hardware" | "prefer-software";
|
|
85
85
|
/**
|
|
86
86
|
* An encoding scalability mode identifier as defined by
|
|
87
87
|
* [WebRTC-SVC](https://w3c.github.io/webrtc-svc/#scalabilitymodes*).
|
|
@@ -130,7 +130,7 @@ export declare const validateAudioEncodingConfig: (config: AudioEncodingConfig)
|
|
|
130
130
|
*/
|
|
131
131
|
export type AudioEncodingAdditionalOptions = {
|
|
132
132
|
/** Configures the bitrate mode. */
|
|
133
|
-
bitrateMode?:
|
|
133
|
+
bitrateMode?: "constant" | "variable";
|
|
134
134
|
/**
|
|
135
135
|
* The full codec string as specified in the WebCodecs Codec Registry. This string must match the codec
|
|
136
136
|
* specified in `codec`. When not set, a fitting codec string will be constructed automatically by the library.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../../src/encode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EA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file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { Demuxer } from
|
|
9
|
-
import { Input } from
|
|
10
|
-
import { InputAudioTrack } from
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
import { Demuxer } from "../demuxer";
|
|
9
|
+
import type { Input } from "../input";
|
|
10
|
+
import { InputAudioTrack } from "../input-track";
|
|
11
|
+
import { type MetadataTags } from "../metadata";
|
|
12
|
+
import { AsyncMutex } from "../misc";
|
|
13
|
+
import { type FileSlice, type Reader } from "../reader";
|
|
14
14
|
type FlacAudioInfo = {
|
|
15
15
|
numberOfChannels: number;
|
|
16
16
|
sampleRate: number;
|
|
@@ -55,7 +55,7 @@ export declare class FlacDemuxer extends Demuxer {
|
|
|
55
55
|
startPos: number;
|
|
56
56
|
isFirstPacket: boolean;
|
|
57
57
|
}): Promise<NextFlacFrameResult | null>;
|
|
58
|
-
readFlacFrameHeader({ slice, isFirstPacket
|
|
58
|
+
readFlacFrameHeader({ slice, isFirstPacket }: {
|
|
59
59
|
slice: FileSlice;
|
|
60
60
|
isFirstPacket: boolean;
|
|
61
61
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flac-demuxer.d.ts","sourceRoot":"","sources":["../../../../src/flac/flac-demuxer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"flac-demuxer.d.ts","sourceRoot":"","sources":["../../../../src/flac/flac-demuxer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAA+B,MAAM,gBAAgB,CAAC;AAE9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AE,KAAK;IAMT,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAMlC,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC;IAKjD,SAAS;IAMT,WAAW;IAIX,YAAY;IA8HZ,iBAAiB,CAAC,EACvB,QAAQ,EACR,aAAa,GACb,EAAE;QACF,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,OAAO,CAAC;KACvB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAgHvC,mBAAmB,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE;;;;;IA8FpF,aAAa;CAmCnB"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { FileSlice } from
|
|
9
|
-
type BlockSizeOrUncommon = number |
|
|
10
|
-
type SampleRateOrUncommon = number |
|
|
8
|
+
import { type FileSlice } from "../reader";
|
|
9
|
+
type BlockSizeOrUncommon = number | "uncommon-u16" | "uncommon-u8";
|
|
10
|
+
type SampleRateOrUncommon = number | "uncommon-u8" | "uncommon-u16" | "uncommon-u16-10";
|
|
11
11
|
export declare const getBlockSizeOrUncommon: (bits: number) => BlockSizeOrUncommon | null;
|
|
12
12
|
export declare const getSampleRateOrUncommon: (sampleRateBits: number, streamInfoSampleRate: number) => SampleRateOrUncommon | null;
|
|
13
13
|
export declare const readCodedNumber: (fileSlice: FileSlice) => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flac-misc.d.ts","sourceRoot":"","sources":["../../../../src/flac/flac-misc.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAgC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"flac-misc.d.ts","sourceRoot":"","sources":["../../../../src/flac/flac-misc.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,KAAK,SAAS,EAAgC,MAAM,WAAW,CAAC;AAEzE,KAAK,mBAAmB,GAAG,MAAM,GAAG,cAAc,GAAG,aAAa,CAAC;AACnE,KAAK,oBAAoB,GAAG,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAGxF,eAAO,MAAM,sBAAsB,GAAI,MAAM,MAAM,KAAG,mBAAmB,GAAG,IAoB3E,CAAC;AAGF,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,MAAM,EACtB,sBAAsB,MAAM,KAC1B,oBAAoB,GAAG,IAmCzB,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,WAAW,SAAS,KAAG,MAqCtD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,SAAS,EAAE,eAAe,mBAAmB,WAYjF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,EAAE,sBAAsB,oBAAoB,kBAkB1F,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,MAAM,UAAU,WAqB7C,CAAC"}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { type AttachedImage } from "../metadata";
|
|
9
|
+
import { Muxer } from "../muxer";
|
|
10
|
+
import type { Output, OutputAudioTrack } from "../output";
|
|
11
|
+
import type { FlacOutputFormat } from "../output-format";
|
|
12
|
+
import type { EncodedPacket } from "../packet";
|
|
13
13
|
export declare class FlacMuxer extends Muxer {
|
|
14
14
|
private writer;
|
|
15
15
|
private metadataWritten;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flac-muxer.d.ts","sourceRoot":"","sources":["../../../../src/flac/flac-muxer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"flac-muxer.d.ts","sourceRoot":"","sources":["../../../../src/flac/flac-muxer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,aAAa,CAAC;AAEvE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAS/C,qBAAa,SAAU,SAAQ,KAAK;IACnC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,UAAU,CAAgB;IAElC,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,aAAa,CAAuB;IAE5C,OAAO,CAAC,MAAM,CAAmB;gBAErB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB;IAO9C,KAAK;IAIX,WAAW,CAAC,EACX,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,YAAY,GACZ,EAAE;QACF,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,MAAM,CAAC;KACrB;IAsCD,iBAAiB,CAAC,OAAO,EAAE,aAAa;IA8CxC,iCAAiC;IAwB3B,WAAW;IAIX,qBAAqB;IAIrB,qBAAqB,CAC1B,KAAK,EAAE,gBAAgB,EACvB,MAAM,EAAE,aAAa,EACrB,IAAI,CAAC,EAAE,yBAAyB,GAC9B,OAAO,CAAC,IAAI,CAAC;IA6DP,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CA0C/B"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { MetadataTags } from
|
|
9
|
-
import { FileSlice } from
|
|
10
|
-
import { Writer } from
|
|
8
|
+
import type { MetadataTags } from "./metadata";
|
|
9
|
+
import { type FileSlice } from "./reader";
|
|
10
|
+
import type { Writer } from "./writer";
|
|
11
11
|
export type Id3V2Header = {
|
|
12
12
|
majorVersion: number;
|
|
13
13
|
revision: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id3.d.ts","sourceRoot":"","sources":["../../../src/id3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"id3.d.ts","sourceRoot":"","sources":["../../../src/id3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAU/C,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,UAAU,CAAC;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IAC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M;CAQtC;AAED,qBAAa,WAAW;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,0BAAqB;IAC3B,UAAU,4BAA2B;gBAEzB,MAAM,EAAE,MAAM;IAI1B,aAAa,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM;IAyK7C,OAAO,CAAC,KAAK,EAAE,MAAM;IAKrB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAKtB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAKtB,UAAU,CAAC,IAAI,EAAE,MAAM;IAOvB,iBAAiB,CAAC,KAAK,EAAE,MAAM;IAI/B,cAAc,CAAC,IAAI,EAAE,MAAM;IAS3B,eAAe,CAAC,IAAI,EAAE,MAAM;IAM5B,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAiBjD,qBAAqB,CAAC,MAAM,EAAE,MAAM;IAqBpC,sBAAsB,CAAC,OAAO,EAAE,MAAM;IAwBtC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;CA6BrG"}
|
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/// <reference types="dom-mediacapture-transform" preserve="true" />
|
|
9
9
|
/// <reference types="dom-webcodecs" preserve="true" />
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export
|
|
29
|
-
export {
|
|
10
|
+
export { AUDIO_CODECS, type AudioCodec, type MediaCodec, NON_PCM_AUDIO_CODECS, PCM_AUDIO_CODECS, SUBTITLE_CODECS, type SubtitleCodec, VIDEO_CODECS, type VideoCodec, } from "./codec";
|
|
11
|
+
export { Conversion, type ConversionAudioOptions, type ConversionOptions, type ConversionSubtitleOptions, type ConversionVideoOptions, type DiscardedTrack, } from "./conversion";
|
|
12
|
+
export { CustomAudioDecoder, CustomAudioEncoder, CustomVideoDecoder, CustomVideoEncoder, registerDecoder, registerEncoder, } from "./custom-coder";
|
|
13
|
+
export { type AudioEncodingAdditionalOptions, type AudioEncodingConfig, canEncode, canEncodeAudio, canEncodeSubtitles, canEncodeVideo, getEncodableAudioCodecs, getEncodableCodecs, getEncodableSubtitleCodecs, getEncodableVideoCodecs, getFirstEncodableAudioCodec, getFirstEncodableSubtitleCodec, getFirstEncodableVideoCodec, QUALITY_HIGH, QUALITY_LOW, QUALITY_MEDIUM, QUALITY_VERY_HIGH, QUALITY_VERY_LOW, Quality, type VideoEncodingAdditionalOptions, type VideoEncodingConfig, } from "./encode";
|
|
14
|
+
export { Input, InputDisposedError, type InputOptions, } from "./input";
|
|
15
|
+
export { ADTS, AdtsInputFormat, ALL_FORMATS, AVI, AviInputFormat, FLAC, FlacInputFormat, InputFormat, IsobmffInputFormat, MATROSKA, MatroskaInputFormat, MP3, MP4, Mp3InputFormat, Mp4InputFormat, OGG, OggInputFormat, QTFF, QuickTimeInputFormat, WAVE, WaveInputFormat, WEBM, WebMInputFormat, } from "./input-format";
|
|
16
|
+
export { InputAudioTrack, InputSubtitleTrack, InputTrack, InputVideoTrack, type PacketStats, } from "./input-track";
|
|
17
|
+
export { MatroskaInput } from "./matroska/matroska-input";
|
|
18
|
+
export { AudioBufferSink, AudioSampleSink, BaseMediaSampleSink, CanvasSink, type CanvasSinkOptions, EncodedPacketSink, type PacketRetrievalOptions, VideoSampleSink, type WrappedAudioBuffer, type WrappedCanvas, } from "./media-sink";
|
|
19
|
+
export { AudioBufferSource, AudioSampleSource, AudioSource, CanvasSource, EncodedAudioPacketSource, EncodedVideoPacketSource, MediaSource, MediaStreamAudioTrackSource, MediaStreamVideoTrackSource, SubtitleSource, TextSubtitleSource, VideoSampleSource, VideoSource, } from "./media-source";
|
|
20
|
+
export { AttachedFile, type AttachedImage, type MetadataTags, RichImageData, type TrackDisposition, } from "./metadata";
|
|
21
|
+
export type { AnyIterable, MaybePromise, Rotation, SetRequired, } from "./misc";
|
|
22
|
+
export { ALL_TRACK_TYPES, type AudioTrackMetadata, type BaseTrackMetadata, Output, type OutputOptions, type SubtitleTrackMetadata, type TrackType, type VideoTrackMetadata, } from "./output";
|
|
23
|
+
export { AdtsOutputFormat, type AdtsOutputFormatOptions, AviOutputFormat, type AviOutputFormatOptions, FlacOutputFormat, type FlacOutputFormatOptions, type InclusiveIntegerRange, IsobmffOutputFormat, type IsobmffOutputFormatOptions, MkvOutputFormat, type MkvOutputFormatOptions, MovOutputFormat, Mp3OutputFormat, type Mp3OutputFormatOptions, Mp4OutputFormat, OggOutputFormat, type OggOutputFormatOptions, OutputFormat, type TrackCountLimits, WavOutputFormat, type WavOutputFormatOptions, WebMOutputFormat, type WebMOutputFormatOptions, } from "./output-format";
|
|
24
|
+
export { EncodedPacket, type EncodedPacketSideData, type PacketType, } from "./packet";
|
|
25
|
+
export { AudioSample, type AudioSampleCopyToOptions, type AudioSampleInit, type CropRectangle, VIDEO_SAMPLE_PIXEL_FORMATS, VideoSample, VideoSampleColorSpace, type VideoSampleInit, type VideoSamplePixelFormat, } from "./sample";
|
|
26
|
+
export { BlobSource, type BlobSourceOptions, BufferSource, FilePathSource, type FilePathSourceOptions, ReadableStreamSource, type ReadableStreamSourceOptions, Source, StreamSource, type StreamSourceOptions, UrlSource, type UrlSourceOptions, } from "./source";
|
|
27
|
+
export type { SubtitleConfig, SubtitleCue, SubtitleMetadata, } from "./subtitles";
|
|
28
|
+
export { formatAssTimestamp, formatCuesToAss, formatCuesToSrt, formatCuesToWebVTT, formatSrtTimestamp, parseAssTimestamp, parseSrtTimestamp, splitAssIntoCues, splitSrtIntoCues, } from "./subtitles";
|
|
29
|
+
export { BufferTarget, FilePathTarget, type FilePathTargetOptions, NullTarget, StreamTarget, type StreamTargetChunk, type StreamTargetOptions, Target, } from "./target";
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;AAKH,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;;AAKH,OAAO,EACN,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,UAAU,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACN,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,eAAe,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACN,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC9B,2BAA2B,EAC3B,YAAY,EACZ,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,GACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EACN,KAAK,EACL,kBAAkB,EAClB,KAAK,YAAY,GACjB,MAAM,SAAS,CAAC;AACjB,O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,mBAAmB,EACxB,MAAM,GACN,MAAM,UAAU,CAAC"}
|
|
@@ -185,6 +185,28 @@ export declare const ADTS: AdtsInputFormat;
|
|
|
185
185
|
* @public
|
|
186
186
|
*/
|
|
187
187
|
export declare const FLAC: FlacInputFormat;
|
|
188
|
+
/**
|
|
189
|
+
* AVI file format.
|
|
190
|
+
*
|
|
191
|
+
* Do not instantiate this class; use the {@link AVI} singleton instead.
|
|
192
|
+
*
|
|
193
|
+
* **Note:** MPEG-4 and E-AC-3/AC-3 codecs require their respective extensions
|
|
194
|
+
* ([\@mediabunny/mpeg4](https://www.npmjs.com/package/\@mediabunny/mpeg4),
|
|
195
|
+
* [\@mediabunny/eac3](https://www.npmjs.com/package/\@mediabunny/eac3)) to be registered.
|
|
196
|
+
*
|
|
197
|
+
* @group Input formats
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export declare class AviInputFormat extends InputFormat {
|
|
201
|
+
get name(): string;
|
|
202
|
+
get mimeType(): string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* AVI input format singleton.
|
|
206
|
+
* @group Input formats
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
export declare const AVI: AviInputFormat;
|
|
188
210
|
/**
|
|
189
211
|
* List of all input format singletons. If you don't need to support all input formats, you should specify the
|
|
190
212
|
* formats individually for better tree shaking.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-format.d.ts","sourceRoot":"","sources":["../../../src/input-format.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"input-format.d.ts","sourceRoot":"","sources":["../../../src/input-format.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA4BH;;;;GAIG;AACH,8BAAsB,WAAW;IAOhC,4CAA4C;IAC5C,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC;IAC5B,8DAA8D;IAC9D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CAChC;AAED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;;GAIG;AACH,eAAO,MAAM,GAAG,gBAAuB,CAAC;AACxC;;;;GAIG;AACH,eAAO,MAAM,IAAI,iBAAwB,CAAC;AAC1C;;;;GAIG;AACH,eAAO,MAAM,GAAG,gBAAuB,CAAC;AACxC;;;;GAIG;AACH,eAAO,MAAM,IAAI,iBAAwB,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,IAAI,iBAAwB,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAuB9C,IAAI,IAAI,WAEP;IAED,IAAI,QAAQ,WAEX;CACD;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,gBAAuB,CAAC;AAExC;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,EAAiE,CAAC"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { AudioCodec, MediaCodec, SubtitleCodec, VideoCodec } from
|
|
9
|
-
import { Input } from
|
|
10
|
-
import { PacketRetrievalOptions } from
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { SubtitleCue } from
|
|
8
|
+
import type { AudioCodec, MediaCodec, SubtitleCodec, VideoCodec } from "./codec";
|
|
9
|
+
import type { Input } from "./input";
|
|
10
|
+
import { type PacketRetrievalOptions } from "./media-sink";
|
|
11
|
+
import type { TrackDisposition } from "./metadata";
|
|
12
|
+
import { type Rotation } from "./misc";
|
|
13
|
+
import type { TrackType } from "./output";
|
|
14
|
+
import { EncodedPacket, type PacketType } from "./packet";
|
|
15
|
+
import type { SubtitleCue } from "./subtitles";
|
|
16
16
|
/**
|
|
17
17
|
* Contains aggregate statistics about the encoded packets of a track.
|
|
18
18
|
* @group Input files & tracks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-track.d.ts","sourceRoot":"","sources":["../../../src/input-track.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"input-track.d.ts","sourceRoot":"","sources":["../../../src/input-track.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGjF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAU,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,gHAAgH;IAChH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IACjC,KAAK,IAAI,MAAM,CAAC;IAChB,QAAQ,IAAI,UAAU,GAAG,IAAI,CAAC;IAC9B,kBAAkB,IAAI,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC;IAC1D,OAAO,IAAI,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,IAAI,MAAM,CAAC;IAC1B,iBAAiB,IAAI,MAAM,CAA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AAI,CAAC;IAIjD,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAK7B,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;CAI5E"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { InputFormat } from
|
|
9
|
-
import { Source } from
|
|
8
|
+
import { InputFormat } from "./input-format";
|
|
9
|
+
import { Source } from "./source";
|
|
10
10
|
/**
|
|
11
11
|
* The options for creating an Input object.
|
|
12
12
|
* @group Input files & tracks
|
|
@@ -48,39 +48,39 @@ export declare class Input<S extends Source = Source> implements Disposable {
|
|
|
48
48
|
*/
|
|
49
49
|
computeDuration(): Promise<number>;
|
|
50
50
|
/** Returns the list of all tracks of this input file. */
|
|
51
|
-
getTracks(): Promise<import("./input-track
|
|
51
|
+
getTracks(): Promise<import("./input-track").InputTrack[]>;
|
|
52
52
|
/** Returns the list of all video tracks of this input file. */
|
|
53
|
-
getVideoTracks(): Promise<import("./input-track
|
|
53
|
+
getVideoTracks(): Promise<import("./input-track").InputVideoTrack[]>;
|
|
54
54
|
/** Returns the list of all audio tracks of this input file. */
|
|
55
|
-
getAudioTracks(): Promise<import("./input-track
|
|
55
|
+
getAudioTracks(): Promise<import("./input-track").InputAudioTrack[]>;
|
|
56
56
|
/** Returns the list of all subtitle tracks of this input file. */
|
|
57
|
-
getSubtitleTracks(): Promise<import("./input-track
|
|
57
|
+
getSubtitleTracks(): Promise<import("./input-track").InputSubtitleTrack[]>;
|
|
58
58
|
/** Returns the primary video track of this input file, or null if there are no video tracks. */
|
|
59
|
-
getPrimaryVideoTrack(): Promise<import("./input-track
|
|
59
|
+
getPrimaryVideoTrack(): Promise<import("./input-track").InputVideoTrack | null>;
|
|
60
60
|
/** Returns the primary audio track of this input file, or null if there are no audio tracks. */
|
|
61
|
-
getPrimaryAudioTrack(): Promise<import("./input-track
|
|
61
|
+
getPrimaryAudioTrack(): Promise<import("./input-track").InputAudioTrack | null>;
|
|
62
62
|
/**
|
|
63
63
|
* Returns the list of all subtitle tracks of this input file. This is a convenience property that calls
|
|
64
64
|
* {@link Input.getSubtitleTracks} and caches the result. Note that this property is a promise!
|
|
65
65
|
*/
|
|
66
|
-
get subtitleTracks(): Promise<import("./input-track
|
|
66
|
+
get subtitleTracks(): Promise<import("./input-track").InputSubtitleTrack[]>;
|
|
67
67
|
/**
|
|
68
68
|
* Returns the list of all video tracks of this input file. This is a convenience property that calls
|
|
69
69
|
* {@link Input.getVideoTracks} and caches the result. Note that this property is a promise!
|
|
70
70
|
*/
|
|
71
|
-
get videoTracks(): Promise<import("./input-track
|
|
71
|
+
get videoTracks(): Promise<import("./input-track").InputVideoTrack[]>;
|
|
72
72
|
/**
|
|
73
73
|
* Returns the list of all audio tracks of this input file. This is a convenience property that calls
|
|
74
74
|
* {@link Input.getAudioTracks} and caches the result. Note that this property is a promise!
|
|
75
75
|
*/
|
|
76
|
-
get audioTracks(): Promise<import("./input-track
|
|
76
|
+
get audioTracks(): Promise<import("./input-track").InputAudioTrack[]>;
|
|
77
77
|
/** Returns the full MIME type of this input file, including track codecs. */
|
|
78
78
|
getMimeType(): Promise<string>;
|
|
79
79
|
/**
|
|
80
80
|
* Returns descriptive metadata tags about the media file, such as title, author, date, cover art, or other
|
|
81
81
|
* attached files.
|
|
82
82
|
*/
|
|
83
|
-
getMetadataTags(): Promise<import("./metadata
|
|
83
|
+
getMetadataTags(): Promise<import("./metadata").MetadataTags>;
|
|
84
84
|
/**
|
|
85
85
|
* Disposes this input and frees connected resources. When an input is disposed, ongoing read operations will be
|
|
86
86
|
* canceled, all future read operations will fail, any open decoders will be closed, and all ongoing media sink
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { Writer } from
|
|
9
|
-
import { IsobmffAudioTrackData, IsobmffMuxer, IsobmffSubtitleTrackData, IsobmffTrackData, IsobmffVideoTrackData } from
|
|
8
|
+
import type { Writer } from "../writer";
|
|
9
|
+
import { type IsobmffAudioTrackData, type IsobmffMuxer, type IsobmffSubtitleTrackData, type IsobmffTrackData, type IsobmffVideoTrackData } from "./isobmff-muxer";
|
|
10
10
|
export declare class IsobmffBoxWriter {
|
|
11
11
|
private writer;
|
|
12
12
|
private helper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isobmff-boxes.d.ts","sourceRoot":"","sources":["../../../../src/isobmff/isobmff-boxes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"isobmff-boxes.d.ts","sourceRoot":"","sources":["../../../../src/isobmff/isobmff-boxes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8BH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAGN,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAG1B,MAAM,iBAAiB,CAAC;AAEzB,qBAAa,gBAAgB;IAUhB,OAAO,CAAC,MAAM;IAT1B,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,UAAU,CAAoC;IAEtD;;;OAGG;IACH,OAAO,uBAA8B;gBAEjB,MAAM,EAAE,MAAM;IAElC,QAAQ,CAAC,KAAK,EAAE,MAAM;IAKtB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAMtB,UAAU,CAAC,IAAI,EAAE,MAAM;IAWvB,QAAQ,CAAC,GAAG,EAAE,GAAG;IAqBjB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAMrC,gBAAgB,CAAC,GAAG,EAAE,G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AAI,OAAO,MAAM,QAAgD,CAAC"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
-
import { AacCodecInfo, AudioCodec, SubtitleCodec, VideoCodec } from
|
|
9
|
-
import { Av1CodecInfo, AvcDecoderConfigurationRecord, HevcDecoderConfigurationRecord, Vp9CodecInfo } from
|
|
10
|
-
import { Demuxer } from
|
|
11
|
-
import { Input } from
|
|
12
|
-
import { InputTrack } from
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { type AacCodecInfo, type AudioCodec, type SubtitleCodec, type VideoCodec } from "../codec";
|
|
9
|
+
import { type Av1CodecInfo, type AvcDecoderConfigurationRecord, type HevcDecoderConfigurationRecord, type Vp9CodecInfo } from "../codec-data";
|
|
10
|
+
import { Demuxer } from "../demuxer";
|
|
11
|
+
import type { Input } from "../input";
|
|
12
|
+
import { type InputTrack } from "../input-track";
|
|
13
|
+
import { type MetadataTags, type TrackDisposition } from "../metadata";
|
|
14
|
+
import { type Rotation } from "../misc";
|
|
15
|
+
import { FileSlice, type Reader } from "../reader";
|
|
16
16
|
type InternalTrack = {
|
|
17
17
|
id: number;
|
|
18
18
|
demuxer: IsobmffDemuxer;
|
|
@@ -46,7 +46,7 @@ type InternalTrack = {
|
|
|
46
46
|
info: null;
|
|
47
47
|
} | {
|
|
48
48
|
info: {
|
|
49
|
-
type:
|
|
49
|
+
type: "video";
|
|
50
50
|
width: number;
|
|
51
51
|
height: number;
|
|
52
52
|
codec: VideoCodec | null;
|
|
@@ -60,7 +60,7 @@ type InternalTrack = {
|
|
|
60
60
|
};
|
|
61
61
|
} | {
|
|
62
62
|
info: {
|
|
63
|
-
type:
|
|
63
|
+
type: "audio";
|
|
64
64
|
numberOfChannels: number;
|
|
65
65
|
sampleRate: number;
|
|
66
66
|
codec: AudioCodec | null;
|
|
@@ -69,7 +69,7 @@ type InternalTrack = {
|
|
|
69
69
|
};
|
|
70
70
|
} | {
|
|
71
71
|
info: {
|
|
72
|
-
type:
|
|
72
|
+
type: "subtitle";
|
|
73
73
|
codec: SubtitleCodec | null;
|
|
74
74
|
codecPrivateText: string | null;
|
|
75
75
|
};
|
|
@@ -150,7 +150,7 @@ type Fragment = {
|
|
|
150
150
|
moofOffset: number;
|
|
151
151
|
moofSize: number;
|
|
152
152
|
implicitBaseDataOffset: number;
|
|
153
|
-
trackData: Map<InternalTrack[
|
|
153
|
+
trackData: Map<InternalTrack["id"], FragmentTrackData>;
|
|
154
154
|
};
|
|
155
155
|
export declare class IsobmffDemuxer extends Demuxer {
|
|
156
156
|
reader: Reader;
|