@hyperframes/parsers 0.9.79 → 0.9.80
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/mediaStreams.d.ts +2 -1
- package/dist/mediaStreams.js +6 -1
- package/package.json +2 -2
package/dist/mediaStreams.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ interface FfprobePcmFields extends FfprobeStreamCodec {
|
|
|
12
12
|
declare function misstatesPcmByteRate(stream: FfprobePcmFields): boolean;
|
|
13
13
|
/** The audio track ffmpeg can decode, as N in `-map 0:a:N`; ffprobe names no codec for one it cannot. */
|
|
14
14
|
declare function decodableAudioStream(streams: readonly FfprobeStreamCodec[]): number | null;
|
|
15
|
+
declare function untaggedVideoMatrix(codec: string, codedHeight: number): "bt709" | "smpte170m";
|
|
15
16
|
|
|
16
|
-
export { type FfprobePcmFields, type FfprobeStreamCodec, decodableAudioStream, misstatesPcmByteRate };
|
|
17
|
+
export { type FfprobePcmFields, type FfprobeStreamCodec, decodableAudioStream, misstatesPcmByteRate, untaggedVideoMatrix };
|
package/dist/mediaStreams.js
CHANGED
|
@@ -12,7 +12,12 @@ function decodableAudioStream(streams) {
|
|
|
12
12
|
const index = streams.filter((stream) => stream.codec_type === "audio").findIndex((stream) => stream.codec_name !== void 0);
|
|
13
13
|
return index < 0 ? null : index;
|
|
14
14
|
}
|
|
15
|
+
var BT601_UNTAGGED_CODECS = /* @__PURE__ */ new Set(["vp9", "av1"]);
|
|
16
|
+
function untaggedVideoMatrix(codec, codedHeight) {
|
|
17
|
+
return codedHeight >= 720 && !BT601_UNTAGGED_CODECS.has(codec) ? "bt709" : "smpte170m";
|
|
18
|
+
}
|
|
15
19
|
export {
|
|
16
20
|
decodableAudioStream,
|
|
17
|
-
misstatesPcmByteRate
|
|
21
|
+
misstatesPcmByteRate,
|
|
22
|
+
untaggedVideoMatrix
|
|
18
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/parsers",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.80",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"tsx": "^4.21.0",
|
|
152
152
|
"typescript": "^5.0.0",
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
|
-
"@hyperframes/core": "0.9.
|
|
154
|
+
"@hyperframes/core": "0.9.80"
|
|
155
155
|
},
|
|
156
156
|
"scripts": {
|
|
157
157
|
"build": "tsup",
|