mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Bump node-av to ^5.2.4
This commit is contained in:
Generated
+41
-73
@@ -2210,161 +2210,129 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-darwin-arm64": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-darwin-arm64/-/node-av-darwin-arm64-5.2.3.tgz",
|
||||
"integrity": "sha512-pLX0SS3LLRoDWHCt+aWWc/P5W/BpmB5vD935KcM5nlxDG+SMjc4uyYqG+t8VVKwvmPrE2kLCsAAu/h37x4ZPYQ==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-darwin-arm64/-/node-av-darwin-arm64-5.2.4.tgz",
|
||||
"integrity": "sha512-uQh6jWXDeXtjuaGOXrBx2rszPDcQbRa4W1YFrmlQG+ffOo+IJyczGjhTWfgzebRksB9tMAe9ViztU39THWZAkw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-darwin-x64": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-darwin-x64/-/node-av-darwin-x64-5.2.3.tgz",
|
||||
"integrity": "sha512-kMweEjMCItEH0eolKntm6IXWFDgMlfrW4xLFTIsrLfe9w9mdAMMQIqWA+7WTCWKMGUl9z5Nc/Y5GNl4HGx8N9w==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-darwin-x64/-/node-av-darwin-x64-5.2.4.tgz",
|
||||
"integrity": "sha512-S9ptQF7JhvGSbvZH9jVeDAPXyRklA7rySKiFzi4UeLTMJslgFTSWFgY2nJAtHrP4wRdkAPnAVjExqd8U7jRZgg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-linux-arm64": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-linux-arm64/-/node-av-linux-arm64-5.2.3.tgz",
|
||||
"integrity": "sha512-WHtPyzkIaiQtDV8Dashp84adEdMGHByMWDdHWnTIVhc29+0vrv+xZbgWKh1Y+z5XrpzSXUM36WzSttkzpDs6bw==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-linux-arm64/-/node-av-linux-arm64-5.2.4.tgz",
|
||||
"integrity": "sha512-XlQAWIcqFxVItr98VShaxzx57Cfl0y+RPCPciLOHXuEmfeKjON4o/xdbChHg02hHFrVAeSCfaHWQmHNgB9m6eQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-linux-x64": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-linux-x64/-/node-av-linux-x64-5.2.3.tgz",
|
||||
"integrity": "sha512-Nwm25hBKUl4TTv6zY2AbZJNSTor3ubilbW02NofQx0ch68fANs5zIPDvWFMZOrQwDnl5NYpO4rHB3/UnoNEBcg==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-linux-x64/-/node-av-linux-x64-5.2.4.tgz",
|
||||
"integrity": "sha512-+2LdgZ7irDik++0mO6Bo1odYa2NZvze6xiy4B8jTbcf3F8k46qQEKkPjBwtV0qQu5fn3M+fUc/wk5coHdfxjxA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-win32-arm64-mingw": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-arm64-mingw/-/node-av-win32-arm64-mingw-5.2.3.tgz",
|
||||
"integrity": "sha512-0J/IArDO/jebA7a8Ep6j1XeZFF8DmDQD8x0+LrYsMQiv89i5NQJto/Bbaazfmldi+HGKBiJe+NwswzVW18pMyA==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-arm64-mingw/-/node-av-win32-arm64-mingw-5.2.4.tgz",
|
||||
"integrity": "sha512-uVNgRQ44uSdtMcR9O6R+nrBou5BWmroTFnGPI3PX8pHR8oe1Nim5zXtWK0qGTTqOiTPNsK5XnSshM3c5/n0/Fg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-win32-arm64-msvc": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-arm64-msvc/-/node-av-win32-arm64-msvc-5.2.3.tgz",
|
||||
"integrity": "sha512-NCoOZSD4KppikZUv71xzTQEKpRMUaR2ZSzgpwGGaCLEWZ27lKRpSmE6vMQJXYuBMN5ePf36FsBdP7he+dMQpvQ==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-arm64-msvc/-/node-av-win32-arm64-msvc-5.2.4.tgz",
|
||||
"integrity": "sha512-Gi+Op8j028WHbdl2jR7MnyHqR2J1TfkEogLPludb3jx54Yi+MO1zvouICFUmtSbxd9JC7CAeoU8++CZAMqcEvA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-win32-x64-mingw": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-x64-mingw/-/node-av-win32-x64-mingw-5.2.3.tgz",
|
||||
"integrity": "sha512-HClIpeM+73yEAIIAgSL/vHV385ka7gYRyJ+Z3s/t4uvLWD2VGhgGhZSS7U6d1RMS75+D4wBiEqLPiXTz7NLA1w==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-x64-mingw/-/node-av-win32-x64-mingw-5.2.4.tgz",
|
||||
"integrity": "sha512-gClAhvV/aJa681tuTlG6dTqqMpnTM5k6QVhnWolBgkbpZXMi0qABzoUBTYpuwxnOEd6j2mBBAVwqx6kut55Ukw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@seydx/node-av-win32-x64-msvc": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-x64-msvc/-/node-av-win32-x64-msvc-5.2.3.tgz",
|
||||
"integrity": "sha512-abGMjVfnzCV6YTGBabXL6KJEHCODUY5Bl8/WLC2taBAwZHsvj2S4B7LfoxvulJmm3HeSWqG0/ygD1nk7VyyQMw==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@seydx/node-av-win32-x64-msvc/-/node-av-win32-x64-msvc-5.2.4.tgz",
|
||||
"integrity": "sha512-01s5ij6nudrtZ7ojiAOAgzuUrImvuQYrAE5o6uesoxYqOha6j7yRu5e4qCXRQCDKrh2FBzyO1cGDc7Ht8Ly8wQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
||||
}
|
||||
@@ -9001,24 +8969,24 @@
|
||||
}
|
||||
},
|
||||
"node_modules/node-av": {
|
||||
"version": "5.2.3",
|
||||
"resolved": "https://registry.npmjs.org/node-av/-/node-av-5.2.3.tgz",
|
||||
"integrity": "sha512-tUFIqn1kV5Ihzgzc2/g0s00Di21+On50g5TTHRpVl57b7kqzFidQr5rire8iktfltWg9Q8cRNyo8wpcxG9pkNA==",
|
||||
"version": "5.2.4",
|
||||
"resolved": "https://registry.npmjs.org/node-av/-/node-av-5.2.4.tgz",
|
||||
"integrity": "sha512-L5r+6k+YGvH5MZX8o55JHQbbeRZ+iFieAb1bhKtpa8hrqBEGuSwdkXRwpE4vd414JqVJsq/EQq6s+3qKeviQTg==",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"unzipper": "^0.12.3",
|
||||
"werift": "^0.22.9"
|
||||
"werift": "^0.23.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@seydx/node-av-darwin-arm64": "^5.2.3",
|
||||
"@seydx/node-av-darwin-x64": "^5.2.3",
|
||||
"@seydx/node-av-linux-arm64": "^5.2.3",
|
||||
"@seydx/node-av-linux-x64": "^5.2.3",
|
||||
"@seydx/node-av-win32-arm64-mingw": "^5.2.3",
|
||||
"@seydx/node-av-win32-arm64-msvc": "^5.2.3",
|
||||
"@seydx/node-av-win32-x64-mingw": "^5.2.3",
|
||||
"@seydx/node-av-win32-x64-msvc": "^5.2.3"
|
||||
"@seydx/node-av-darwin-arm64": "^5.2.4",
|
||||
"@seydx/node-av-darwin-x64": "^5.2.4",
|
||||
"@seydx/node-av-linux-arm64": "^5.2.4",
|
||||
"@seydx/node-av-linux-x64": "^5.2.4",
|
||||
"@seydx/node-av-win32-arm64-mingw": "^5.2.4",
|
||||
"@seydx/node-av-win32-arm64-msvc": "^5.2.4",
|
||||
"@seydx/node-av-win32-x64-mingw": "^5.2.4",
|
||||
"@seydx/node-av-win32-x64-msvc": "^5.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/node-domexception": {
|
||||
@@ -12437,9 +12405,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/werift": {
|
||||
"version": "0.22.9",
|
||||
"resolved": "https://registry.npmjs.org/werift/-/werift-0.22.9.tgz",
|
||||
"integrity": "sha512-TE9AxskSRWBMYm0MBRllfnKVXQelqC76JCvyolQyVWpmKabfY5BA/cuvkGg+71JWn3QrGih1YWtpIWGPqoxcoA==",
|
||||
"version": "0.23.0",
|
||||
"resolved": "https://registry.npmjs.org/werift/-/werift-0.23.0.tgz",
|
||||
"integrity": "sha512-/WcIN5DHFG9Ri4anGOmIkp8gxBGFMWSIB/m4sfZ5CWlLfD3iMhiaAUuTBuc+KV3SY9NDmvmLtiN2uaM7k3lVzw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fidm/x509": "^1.2.1",
|
||||
@@ -12901,14 +12869,14 @@
|
||||
"version": "1.45.0",
|
||||
"license": "MPL-2.0",
|
||||
"dependencies": {
|
||||
"node-av": "^5.2.3"
|
||||
"node-av": "^5.2.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "individual",
|
||||
"url": "https://github.com/sponsors/Vanilagy"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"mediabunny": "^1.0.0"
|
||||
"mediabunny": "^1.45.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"url": "https://github.com/sponsors/Vanilagy"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-av": "^5.2.3"
|
||||
"node-av": "^5.2.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"mediabunny": "^1.45.0"
|
||||
|
||||
@@ -237,6 +237,3 @@ export const getChannelLayout = (numChannels: number): NodeAv.ChannelLayout => {
|
||||
default: return { nbChannels: numChannels, order: NodeAv.AV_CHANNEL_ORDER_UNSPEC, mask: 0n };
|
||||
}
|
||||
};
|
||||
|
||||
// The value is incorrect in the node-av source code, so we do:
|
||||
export const LIBVPX_VP9 = 'libvpx-vp9' as (NodeAv.FFEncoderCodec & NodeAv.FFDecoderCodec);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
import { CustomVideoDecoder, VideoCodec, EncodedPacket, VideoSample, type MaybePromise, Rational } from 'mediabunny';
|
||||
import * as NodeAv from 'node-av';
|
||||
import { CODEC_TO_CODEC_ID, getHardwareDecoderCodec, LIBVPX_VP9 } from './misc';
|
||||
import { CODEC_TO_CODEC_ID, getHardwareDecoderCodec } from './misc';
|
||||
import { assert, binarySearchLessOrEqual, simplifyRational, toUint8Array } from '../../../src/misc';
|
||||
import { AvFrameVideoSampleResource } from './video-sample';
|
||||
|
||||
@@ -47,7 +47,7 @@ export class NodeAvVideoDecoder extends CustomVideoDecoder {
|
||||
|
||||
let codec: NodeAv.Codec | null;
|
||||
if (this.codec === 'vp9' && packet.sideData.alpha) {
|
||||
codec = NodeAv.Codec.findDecoderByName(LIBVPX_VP9) ?? NodeAv.Codec.findDecoder(codecId);
|
||||
codec = NodeAv.Codec.findDecoderByName(NodeAv.FF_DECODER_LIBVPX_VP9) ?? NodeAv.Codec.findDecoder(codecId);
|
||||
} else if (
|
||||
// This check used to be "is not prefer-hardware", meaning it would default to using software decode. I
|
||||
// didn't leave a comment for that back then so I actually don't know what it was for. I'm sure it was to
|
||||
|
||||
@@ -19,7 +19,6 @@ import * as NodeAv from 'node-av';
|
||||
import {
|
||||
CODEC_TO_CODEC_ID,
|
||||
getHardwareEncoderCodec,
|
||||
LIBVPX_VP9,
|
||||
unmapColorPrimaries,
|
||||
unmapMatrixCoefficients,
|
||||
unmapTransferCharacteristics,
|
||||
@@ -81,7 +80,7 @@ export class NodeAvVideoEncoder extends CustomVideoEncoder {
|
||||
|
||||
let codec: NodeAv.Codec | null = null;
|
||||
if (this.codec === 'vp9' && this.config.alpha === 'keep') {
|
||||
codec = NodeAv.Codec.findEncoderByName(LIBVPX_VP9) ?? NodeAv.Codec.findEncoder(codecId);
|
||||
codec = NodeAv.Codec.findEncoderByName(NodeAv.FF_ENCODER_LIBVPX_VP9) ?? NodeAv.Codec.findEncoder(codecId);
|
||||
} else if (this.config.hardwareAcceleration === 'prefer-software') {
|
||||
codec = NodeAv.Codec.findEncoder(codecId);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user