@mediaway/container 0.1.6 → 0.1.8
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/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface Rational {
|
|
|
10
10
|
num: number;
|
|
11
11
|
den: number;
|
|
12
12
|
}
|
|
13
|
-
export type VideoCodec = "h264" | "hevc" | "av1" | "vp9" | "vp8";
|
|
13
|
+
export type VideoCodec = "h264" | "hevc" | "av1" | "vp9" | "vp8" | "prores_422_proxy" | "prores_422_lt" | "prores_422" | "prores_422_hq" | "prores_4444" | "prores_4444_xq";
|
|
14
14
|
export type AudioCodec = "aac" | "opus" | "mp3" | "raw_audio";
|
|
15
15
|
export type PixelFormat = "nv12" | "bgra8" | "rgba8" | "i420" | "yuy2";
|
|
16
16
|
/** Which format `Muxer`/`Demuxer` open — mirrors mediaway_container_format_t.
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,12 @@ export const CODEC_TO_ABI = {
|
|
|
27
27
|
vorbis: 7,
|
|
28
28
|
raw_audio: 11,
|
|
29
29
|
vp8: 12,
|
|
30
|
+
prores_422_proxy: 13,
|
|
31
|
+
prores_422_lt: 14,
|
|
32
|
+
prores_422: 15,
|
|
33
|
+
prores_422_hq: 16,
|
|
34
|
+
prores_4444: 17,
|
|
35
|
+
prores_4444_xq: 18,
|
|
30
36
|
};
|
|
31
37
|
export const ABI_TO_CODEC = Object.fromEntries(Object.entries(CODEC_TO_ABI).map(([k, v]) => [v, k]));
|
|
32
38
|
export function check(status) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediaway/container",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Rust-based, lightweight, fast — sans-IO fragmented MP4 (fMP4) mux and demux for Node.js — push packets in, poll bytes out",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|