node-av 6.0.0-beta.5 → 6.0.0-beta.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
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
[](https://ffmpeg.org)
|
|
12
12
|
[%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)](https://github.com/seydx/node-av)
|
|
13
13
|
|
|
14
|
-
Native Node.js bindings for FFmpeg with full TypeScript support. Provides direct access to FFmpeg's C APIs through N-API. Includes both raw FFmpeg bindings for full control and higher-level abstractions. Automatic resource management via Disposable pattern, hardware acceleration support and prebuilt binaries for Windows, Linux, and macOS.
|
|
14
|
+
Native Node.js bindings for FFmpeg with full TypeScript support - including type-safe options (autocomplete + validation) for every codec, format, filter, and bitstream filter, generated from FFmpeg's own metadata. Provides direct access to FFmpeg's C APIs through N-API. Includes both raw FFmpeg bindings for full control and higher-level abstractions. Automatic resource management via Disposable pattern, hardware acceleration support and prebuilt binaries for Windows, Linux, and macOS.
|
|
15
15
|
|
|
16
16
|
📚 **[Documentation](https://seydx.github.io/node-av)**
|
|
17
17
|
|
|
@@ -446,6 +446,9 @@ import * as ffmpeg from 'node-av';
|
|
|
446
446
|
|
|
447
447
|
Beyond basic transcoding, NodeAV provides advanced media processing capabilities:
|
|
448
448
|
|
|
449
|
+
**Fully Typed FFmpeg Options**
|
|
450
|
+
Every FFmpeg option is typed - across codecs, formats, ~580 filters, and bitstream filters. Keys autocomplete, enum values are validated, and typos become compile-time errors, all generated directly from FFmpeg's `AVOption` metadata (including each option's description and a link to the FFmpeg docs as JSDoc). No more grepping the FFmpeg docs for flag names.
|
|
451
|
+
|
|
449
452
|
**Speech Recognition with Whisper**
|
|
450
453
|
Integrate automatic speech-to-text transcription using OpenAI's Whisper model through the whisper.cpp implementation. The library handles automatic model downloading from HuggingFace, supports multiple model sizes (tiny, base, small, medium, large) for different accuracy/performance tradeoffs, and provides hardware-accelerated inference through Metal (macOS), Vulkan (cross-platform), or OpenCL backends. Transcription results include precise timestamps and can be processed in real-time from any audio source.
|
|
451
454
|
|
|
@@ -522,11 +525,13 @@ If you encounter module resolution errors like `Cannot find module 'lib/binary-s
|
|
|
522
525
|
| `electron-builder` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/electron/builder) |
|
|
523
526
|
| `electron-forge` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/electron/forge) |
|
|
524
527
|
| `api-abort-signal` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-abort-signal.ts) |
|
|
528
|
+
| `api-bitstream-filter` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-bitstream-filter.ts) |
|
|
525
529
|
| `api-dash` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-dash.ts) |
|
|
526
530
|
| `api-device-capture` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-device-capture.ts) |
|
|
527
531
|
| `api-encode-decode` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-encode-decode.ts) |
|
|
528
532
|
| `api-filter-complex` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-filter-complex.ts) |
|
|
529
533
|
| `api-filter-complex-grid` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-filter-complex-grid.ts) |
|
|
534
|
+
| `api-filter-complex-typed` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-filter-complex-typed.ts) |
|
|
530
535
|
| `api-fmp4` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-fmp4.ts) |
|
|
531
536
|
| `api-frame-extract` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-frame-extract.ts) |
|
|
532
537
|
| `api-hw-codecs` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-hw-codecs.ts) |
|
|
@@ -539,8 +544,11 @@ If you encounter module resolution errors like `Cannot find module 'lib/binary-s
|
|
|
539
544
|
| `api-hw-filter-sync` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-hw-filter-sync.ts) |
|
|
540
545
|
| `api-muxing` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-muxing.ts) |
|
|
541
546
|
| `api-pipeline-hw-rtsp` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-pipeline-hw-rtsp.ts) |
|
|
547
|
+
| `api-pipeline-progress` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-pipeline-progress.ts) |
|
|
542
548
|
| `api-pipeline-raw-muxing` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-pipeline-raw-muxing.ts) |
|
|
549
|
+
| `api-probe` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-probe.ts) |
|
|
543
550
|
| `api-rtp` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-rtp.ts) |
|
|
551
|
+
| `api-rtsp-backchannel` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-rtsp-backchannel.ts) |
|
|
544
552
|
| `api-sdp-custom` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-sdp-custom.ts) |
|
|
545
553
|
| `api-sdp-input` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-sdp-input.ts) |
|
|
546
554
|
| `api-stream-input` | | | [✓](https://github.com/seydx/node-av/tree/main/examples/api-stream-input.ts) |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Frame } from '../../lib/frame.js';
|
|
2
|
-
import type { AVPixelFormat } from '../../constants/constants.js';
|
|
2
|
+
import type { AVColorPrimaries, AVColorRange, AVColorSpace, AVColorTransferCharacteristic, AVPixelFormat } from '../../constants/constants.js';
|
|
3
3
|
import type { IRational } from '../../lib/types.js';
|
|
4
4
|
import type { HardwareContext } from '../hardware.js';
|
|
5
5
|
/**
|
|
@@ -69,6 +69,45 @@ export interface ImportHandleProps {
|
|
|
69
69
|
pts?: bigint;
|
|
70
70
|
timeBase?: IRational;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Map an Electron color space descriptor to FFmpeg color properties.
|
|
74
|
+
*
|
|
75
|
+
* Translates Electron's `textureInfo.colorSpace` strings (range, primaries,
|
|
76
|
+
* transfer, matrix) to the corresponding `AVCOL_*` enums. Unknown values map to
|
|
77
|
+
* the `UNSPECIFIED` variants; a missing descriptor falls back to the BGRA/sRGB
|
|
78
|
+
* defaults typical of Electron textures.
|
|
79
|
+
*
|
|
80
|
+
* @param colorSpace - Electron color space descriptor from textureInfo.colorSpace
|
|
81
|
+
*
|
|
82
|
+
* @returns Mapped FFmpeg color properties (colorRange, colorPrimaries, colorTrc, colorSpace) with fallbacks
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export declare function mapColorSpace(colorSpace?: TextureColorSpace): {
|
|
87
|
+
colorRange: AVColorRange;
|
|
88
|
+
colorPrimaries: AVColorPrimaries;
|
|
89
|
+
colorTrc: AVColorTransferCharacteristic;
|
|
90
|
+
colorSpace: AVColorSpace;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Resolve the software pixel format for a hardware mapping context.
|
|
94
|
+
*
|
|
95
|
+
* The mapping context's sw_format must be the *software* layout of the frames
|
|
96
|
+
* (e.g. NV12, BGRA), never a hardware wrapper format like AV_PIX_FMT_DRM_PRIME /
|
|
97
|
+
* D3D11 / VIDEOTOOLBOX (which is what `srcFrame.format` is for an imported GPU
|
|
98
|
+
* frame). Prefer the source frame's own hwframe context software format (set on
|
|
99
|
+
* macOS IOSurface imports), and fall back to the layout used at the last import
|
|
100
|
+
* for bare frames (Windows D3D11, Linux DMA-BUF) that carry no hwframe context.
|
|
101
|
+
*
|
|
102
|
+
* @param srcFrame - The source hardware frame being mapped
|
|
103
|
+
*
|
|
104
|
+
* @param fallback - Software format to use when the frame carries no hwframe context
|
|
105
|
+
*
|
|
106
|
+
* @returns The software pixel format to set on the mapping context
|
|
107
|
+
*
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
export declare function resolveMappingSwFormat(srcFrame: Frame, fallback: AVPixelFormat): AVPixelFormat;
|
|
72
111
|
/**
|
|
73
112
|
* High-level GPU texture import for Electron shared textures.
|
|
74
113
|
*
|
|
@@ -103,6 +142,7 @@ export declare class SharedTexture implements Disposable {
|
|
|
103
142
|
private _currentWidth;
|
|
104
143
|
private _currentHeight;
|
|
105
144
|
private _swFormat;
|
|
145
|
+
private _importSwFormat;
|
|
106
146
|
private _isDisposed;
|
|
107
147
|
private _mappingCtx;
|
|
108
148
|
private _mappingHw;
|
|
@@ -51,13 +51,20 @@ const MATRIX_MAP = {
|
|
|
51
51
|
'bt2020-ncl': AVCOL_SPC_BT2020_NCL,
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
|
+
* Map an Electron color space descriptor to FFmpeg color properties.
|
|
55
|
+
*
|
|
56
|
+
* Translates Electron's `textureInfo.colorSpace` strings (range, primaries,
|
|
57
|
+
* transfer, matrix) to the corresponding `AVCOL_*` enums. Unknown values map to
|
|
58
|
+
* the `UNSPECIFIED` variants; a missing descriptor falls back to the BGRA/sRGB
|
|
59
|
+
* defaults typical of Electron textures.
|
|
60
|
+
*
|
|
54
61
|
* @param colorSpace - Electron color space descriptor from textureInfo.colorSpace
|
|
55
62
|
*
|
|
56
63
|
* @returns Mapped FFmpeg color properties (colorRange, colorPrimaries, colorTrc, colorSpace) with fallbacks
|
|
57
64
|
*
|
|
58
65
|
* @internal
|
|
59
66
|
*/
|
|
60
|
-
function mapColorSpace(colorSpace) {
|
|
67
|
+
export function mapColorSpace(colorSpace) {
|
|
61
68
|
if (!colorSpace) {
|
|
62
69
|
// Fallback: Electron textures are typically BGRA (full range, sRGB)
|
|
63
70
|
return {
|
|
@@ -74,6 +81,27 @@ function mapColorSpace(colorSpace) {
|
|
|
74
81
|
colorSpace: MATRIX_MAP[colorSpace.matrix ?? ''] ?? AVCOL_SPC_UNSPECIFIED,
|
|
75
82
|
};
|
|
76
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Resolve the software pixel format for a hardware mapping context.
|
|
86
|
+
*
|
|
87
|
+
* The mapping context's sw_format must be the *software* layout of the frames
|
|
88
|
+
* (e.g. NV12, BGRA), never a hardware wrapper format like AV_PIX_FMT_DRM_PRIME /
|
|
89
|
+
* D3D11 / VIDEOTOOLBOX (which is what `srcFrame.format` is for an imported GPU
|
|
90
|
+
* frame). Prefer the source frame's own hwframe context software format (set on
|
|
91
|
+
* macOS IOSurface imports), and fall back to the layout used at the last import
|
|
92
|
+
* for bare frames (Windows D3D11, Linux DMA-BUF) that carry no hwframe context.
|
|
93
|
+
*
|
|
94
|
+
* @param srcFrame - The source hardware frame being mapped
|
|
95
|
+
*
|
|
96
|
+
* @param fallback - Software format to use when the frame carries no hwframe context
|
|
97
|
+
*
|
|
98
|
+
* @returns The software pixel format to set on the mapping context
|
|
99
|
+
*
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
export function resolveMappingSwFormat(srcFrame, fallback) {
|
|
103
|
+
return srcFrame.hwFramesCtx?.swFormat ?? fallback;
|
|
104
|
+
}
|
|
77
105
|
/**
|
|
78
106
|
* High-level GPU texture import for Electron shared textures.
|
|
79
107
|
*
|
|
@@ -108,6 +136,7 @@ export class SharedTexture {
|
|
|
108
136
|
_currentWidth = 0;
|
|
109
137
|
_currentHeight = 0;
|
|
110
138
|
_swFormat;
|
|
139
|
+
_importSwFormat;
|
|
111
140
|
_isDisposed = false;
|
|
112
141
|
// Mapping context cache for mapTo() helper
|
|
113
142
|
_mappingCtx = null;
|
|
@@ -115,6 +144,7 @@ export class SharedTexture {
|
|
|
115
144
|
constructor(hardware, options) {
|
|
116
145
|
this._hardware = hardware;
|
|
117
146
|
this._swFormat = options.swFormat ?? AV_PIX_FMT_BGRA;
|
|
147
|
+
this._importSwFormat = this._swFormat;
|
|
118
148
|
if (options.width)
|
|
119
149
|
this._currentWidth = options.width;
|
|
120
150
|
if (options.height)
|
|
@@ -313,8 +343,12 @@ export class SharedTexture {
|
|
|
313
343
|
* @internal
|
|
314
344
|
*/
|
|
315
345
|
ensureMappingContext(srcFrame, targetHw) {
|
|
316
|
-
|
|
317
|
-
|
|
346
|
+
const swFormat = resolveMappingSwFormat(srcFrame, this._importSwFormat);
|
|
347
|
+
// Re-create if target hardware, dimensions, or software format changed
|
|
348
|
+
if (this._mappingHw !== targetHw ||
|
|
349
|
+
this._mappingCtx?.width !== srcFrame.width ||
|
|
350
|
+
this._mappingCtx?.height !== srcFrame.height ||
|
|
351
|
+
this._mappingCtx?.swFormat !== swFormat) {
|
|
318
352
|
// Free previous context
|
|
319
353
|
if (this._mappingCtx) {
|
|
320
354
|
this._mappingCtx.free();
|
|
@@ -324,7 +358,7 @@ export class SharedTexture {
|
|
|
324
358
|
const ctx = new HardwareFramesContext();
|
|
325
359
|
ctx.alloc(targetHw.deviceContext);
|
|
326
360
|
ctx.format = targetHw.devicePixelFormat;
|
|
327
|
-
ctx.swFormat =
|
|
361
|
+
ctx.swFormat = swFormat;
|
|
328
362
|
ctx.width = srcFrame.width;
|
|
329
363
|
ctx.height = srcFrame.height;
|
|
330
364
|
const ret = ctx.init();
|
|
@@ -379,6 +413,9 @@ export class SharedTexture {
|
|
|
379
413
|
* @internal
|
|
380
414
|
*/
|
|
381
415
|
importFromHandle(handle, width, height, swFormat, options, colorSpace) {
|
|
416
|
+
// Remember the layout actually used, so mapTo() can fall back to it for
|
|
417
|
+
// bare hardware frames (D3D11/DMA-BUF) that carry no hw_frames_ctx.
|
|
418
|
+
this._importSwFormat = swFormat;
|
|
382
419
|
let frame;
|
|
383
420
|
if (handle.ioSurface && handle.ioSurface.length > 0) {
|
|
384
421
|
// macOS — IOSurface
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"electron-shared-texture.js","sourceRoot":"","sources":["../../../src/api/utilities/electron-shared-texture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,kBA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B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,MAAM,EAAE,gBAAgB;IACxB,GAAG,EAAE,aAAa;IAClB,UAAU,EAAE,kBAAkB;IAC9B,cAAc,EAAE,sBAAsB;IACtC,YAAY,EAAE,oBAAoB;IAClC,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,mBAAmB;IAChC,EAAE,EAAE,mBAAmB;IACvB,cAAc,EAAE,kBAAkB;IAClC,GAAG,EAAE,sBAAsB;CAC5B,CAAC;AAEF,MAAM,UAAU,GAAiC;IAC/C,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,eAAe;IACtB,GAAG,EAAE,aAAa;IAClB,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,eAAe;IACtB,YAAY,EAAE,oBAAoB;CACnC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"electron-shared-texture.js","sourceRoot":"","sources":["../../../src/api/utilities/electron-shared-texture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACt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AQ,CAAC;QAC9B,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;QACxB,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;QAE1B,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;QAC7B,WAAW,CAAC,YAAY,CAAC,GAAG,EAAE,4CAA4C,CAAC,CAAC;QAE5E,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;;;;;;OAUG;IACK,kBAAkB,CAAC,IAAY;QACrC,8EAA8E;QAC9E,MAAM,GAAG,GAAG,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1D,IAAI,GAAG,KAAK,eAAe,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,SAAS,CAAC;QACxB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-av",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.6",
|
|
4
4
|
"description": "FFmpeg bindings for Node.js",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/node-av)",
|
|
6
6
|
"type": "module",
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
},
|
|
86
86
|
"optionalDependencies": {
|
|
87
87
|
"werift": "^0.23.0",
|
|
88
|
-
"@seydx/node-av-darwin-arm64": "^6.0.0-beta.
|
|
89
|
-
"@seydx/node-av-darwin-x64": "^6.0.0-beta.
|
|
90
|
-
"@seydx/node-av-linux-arm64": "^6.0.0-beta.
|
|
91
|
-
"@seydx/node-av-linux-x64": "^6.0.0-beta.
|
|
92
|
-
"@seydx/node-av-win32-arm64-mingw": "^6.0.0-beta.
|
|
93
|
-
"@seydx/node-av-win32-arm64-msvc": "^6.0.0-beta.
|
|
94
|
-
"@seydx/node-av-win32-x64-mingw": "^6.0.0-beta.
|
|
95
|
-
"@seydx/node-av-win32-x64-msvc": "^6.0.0-beta.
|
|
88
|
+
"@seydx/node-av-darwin-arm64": "^6.0.0-beta.6",
|
|
89
|
+
"@seydx/node-av-darwin-x64": "^6.0.0-beta.6",
|
|
90
|
+
"@seydx/node-av-linux-arm64": "^6.0.0-beta.6",
|
|
91
|
+
"@seydx/node-av-linux-x64": "^6.0.0-beta.6",
|
|
92
|
+
"@seydx/node-av-win32-arm64-mingw": "^6.0.0-beta.6",
|
|
93
|
+
"@seydx/node-av-win32-arm64-msvc": "^6.0.0-beta.6",
|
|
94
|
+
"@seydx/node-av-win32-x64-mingw": "^6.0.0-beta.6",
|
|
95
|
+
"@seydx/node-av-win32-x64-msvc": "^6.0.0-beta.6"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@stylistic/eslint-plugin": "^5.10.0",
|