node-av 3.0.3 → 3.0.5
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 +3 -1
- package/binding.gyp +1 -0
- package/dist/api/encoder.d.ts +26 -1
- package/dist/api/encoder.js +38 -0
- package/dist/api/encoder.js.map +1 -1
- package/dist/api/media-input.d.ts +52 -1
- package/dist/api/media-input.js +64 -0
- package/dist/api/media-input.js.map +1 -1
- package/dist/api/media-output.d.ts +177 -2
- package/dist/api/media-output.js +312 -19
- package/dist/api/media-output.js.map +1 -1
- package/dist/api/types.d.ts +9 -8
- package/dist/lib/binding.d.ts +3 -0
- package/dist/lib/binding.js.map +1 -1
- package/dist/lib/codec-parameters.d.ts +15 -0
- package/dist/lib/codec-parameters.js +17 -0
- package/dist/lib/codec-parameters.js.map +1 -1
- package/dist/lib/dictionary.d.ts +1 -1
- package/dist/lib/dictionary.js +3 -0
- package/dist/lib/dictionary.js.map +1 -1
- package/dist/lib/native-types.d.ts +1 -0
- package/dist/lib/rational.d.ts +25 -1
- package/dist/lib/rational.js +32 -5
- package/dist/lib/rational.js.map +1 -1
- package/dist/lib/utilities.d.ts +102 -0
- package/dist/lib/utilities.js +107 -0
- package/dist/lib/utilities.js.map +1 -1
- package/package.json +17 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-parameters.js","sourceRoot":"","sources":["../../src/lib/codec-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAkBzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,OAAO,eAAe;IAClB,MAAM,CAAwB;IAEtC;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,eAAe,EAAE,CAAC;IAC/C,CAAC;IAED;;;;;;OAMG;IACH,IAAI,SAAS;QACX,O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;IAChC,CAAC;IAED,IAAI,UAAU,CAAC,KAAa;QAC1B,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;IACjC,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,IAAI;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,IAAI,CAAC,GAAoB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,WAAW,CAAC,YAA0B;QACpC,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,YAA0B;QAClC,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;IAChC,CAAC;CACF"}
|
package/dist/lib/dictionary.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare class Dictionary implements Disposable, NativeWrapper<NativeDicti
|
|
|
72
72
|
* });
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
static fromObject(obj: Record<string, string | number>, flags?: AVDictFlag): Dictionary;
|
|
75
|
+
static fromObject(obj: Record<string, string | number | undefined | null>, flags?: AVDictFlag): Dictionary;
|
|
76
76
|
/**
|
|
77
77
|
* Create dictionary from native instance.
|
|
78
78
|
*
|
package/dist/lib/dictionary.js
CHANGED
|
@@ -77,6 +77,9 @@ export class Dictionary {
|
|
|
77
77
|
static fromObject(obj, flags = AVFLAG_NONE) {
|
|
78
78
|
const dict = new Dictionary();
|
|
79
79
|
for (const [key, value] of Object.entries(obj)) {
|
|
80
|
+
if (value === undefined || value === null) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
80
83
|
dict.set(key, value.toString(), flags);
|
|
81
84
|
}
|
|
82
85
|
return dict;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../src/lib/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,OAAO,UAAU;IACb,MAAM,CAAmB;IAEjC;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;IAC1C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../src/lib/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,OAAO,UAAU;IACb,MAAM,CA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231
|
export interface NativeCodecParameters extends Disposable {
|
|
232
232
|
readonly __brand: 'NativeCodecParameters';
|
|
233
|
+
readonly codecTagString: string | null;
|
|
233
234
|
readonly extradataSize: number;
|
|
234
235
|
codecType: AVMediaType;
|
|
235
236
|
codecId: AVCodecID;
|
package/dist/lib/rational.d.ts
CHANGED
|
@@ -134,6 +134,27 @@ export declare class Rational {
|
|
|
134
134
|
* ```
|
|
135
135
|
*/
|
|
136
136
|
div(other: Rational): Rational;
|
|
137
|
+
/**
|
|
138
|
+
* Check if this rational is valid (both num and den are positive).
|
|
139
|
+
*
|
|
140
|
+
* FFmpeg uses { 0, 0 } as "undefined" and { num, 0 } as infinity.
|
|
141
|
+
* This method returns true only if both values are positive.
|
|
142
|
+
*
|
|
143
|
+
* @returns true if num > 0 and den > 0
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* const valid = new Rational(25, 1);
|
|
148
|
+
* console.log(valid.isValid()); // true
|
|
149
|
+
*
|
|
150
|
+
* const undefined = new Rational(0, 0);
|
|
151
|
+
* console.log(undefined.isValid()); // false
|
|
152
|
+
*
|
|
153
|
+
* const infinity = new Rational(1, 0);
|
|
154
|
+
* console.log(infinity.isValid()); // false
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
isValid(): boolean;
|
|
137
158
|
/**
|
|
138
159
|
* Invert the rational number (reciprocal).
|
|
139
160
|
*
|
|
@@ -156,7 +177,7 @@ export declare class Rational {
|
|
|
156
177
|
* Calculates the decimal value: num / den
|
|
157
178
|
* Note: This may lose precision for some rational values.
|
|
158
179
|
*
|
|
159
|
-
* @returns The floating point representation
|
|
180
|
+
* @returns The floating point representation (Infinity if den = 0, NaN if both = 0)
|
|
160
181
|
*
|
|
161
182
|
* @example
|
|
162
183
|
* ```typescript
|
|
@@ -165,6 +186,9 @@ export declare class Rational {
|
|
|
165
186
|
*
|
|
166
187
|
* const half = new Rational(1, 2);
|
|
167
188
|
* console.log(half.toDouble()); // 0.5
|
|
189
|
+
*
|
|
190
|
+
* const infinity = new Rational(1, 0);
|
|
191
|
+
* console.log(infinity.toDouble()); // Infinity
|
|
168
192
|
* ```
|
|
169
193
|
*/
|
|
170
194
|
toDouble(): number;
|
package/dist/lib/rational.js
CHANGED
|
@@ -64,9 +64,10 @@ export class Rational {
|
|
|
64
64
|
constructor(num, den) {
|
|
65
65
|
this.num = num;
|
|
66
66
|
this.den = den;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
67
|
+
// Note: FFmpeg allows den = 0 as a special value:
|
|
68
|
+
// - { 0, 0 } = undefined/not set
|
|
69
|
+
// - { num, 0 } = infinity
|
|
70
|
+
// We allow it for FFmpeg compatibility, but operations may fail.
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
73
|
* Add two rational numbers.
|
|
@@ -148,6 +149,29 @@ export class Rational {
|
|
|
148
149
|
div(other) {
|
|
149
150
|
return new Rational(this.num * other.den, this.den * other.num);
|
|
150
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Check if this rational is valid (both num and den are positive).
|
|
154
|
+
*
|
|
155
|
+
* FFmpeg uses { 0, 0 } as "undefined" and { num, 0 } as infinity.
|
|
156
|
+
* This method returns true only if both values are positive.
|
|
157
|
+
*
|
|
158
|
+
* @returns true if num > 0 and den > 0
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* const valid = new Rational(25, 1);
|
|
163
|
+
* console.log(valid.isValid()); // true
|
|
164
|
+
*
|
|
165
|
+
* const undefined = new Rational(0, 0);
|
|
166
|
+
* console.log(undefined.isValid()); // false
|
|
167
|
+
*
|
|
168
|
+
* const infinity = new Rational(1, 0);
|
|
169
|
+
* console.log(infinity.isValid()); // false
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
isValid() {
|
|
173
|
+
return this.num > 0 && this.den > 0;
|
|
174
|
+
}
|
|
151
175
|
/**
|
|
152
176
|
* Invert the rational number (reciprocal).
|
|
153
177
|
*
|
|
@@ -172,7 +196,7 @@ export class Rational {
|
|
|
172
196
|
* Calculates the decimal value: num / den
|
|
173
197
|
* Note: This may lose precision for some rational values.
|
|
174
198
|
*
|
|
175
|
-
* @returns The floating point representation
|
|
199
|
+
* @returns The floating point representation (Infinity if den = 0, NaN if both = 0)
|
|
176
200
|
*
|
|
177
201
|
* @example
|
|
178
202
|
* ```typescript
|
|
@@ -181,10 +205,13 @@ export class Rational {
|
|
|
181
205
|
*
|
|
182
206
|
* const half = new Rational(1, 2);
|
|
183
207
|
* console.log(half.toDouble()); // 0.5
|
|
208
|
+
*
|
|
209
|
+
* const infinity = new Rational(1, 0);
|
|
210
|
+
* console.log(infinity.toDouble()); // Infinity
|
|
184
211
|
* ```
|
|
185
212
|
*/
|
|
186
213
|
toDouble() {
|
|
187
|
-
return this.num / this.den;
|
|
214
|
+
return this.num / this.den; // JavaScript handles division by zero correctly (Infinity/NaN)
|
|
188
215
|
}
|
|
189
216
|
/**
|
|
190
217
|
* Check if this rational equals another.
|
package/dist/lib/rational.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rational.js","sourceRoot":"","sources":["../../src/lib/rational.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,OAAO,QAAQ;IA+BD;IACA;IA/BlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YACkB,GAAW,EACX,GAAW;QADX,QAAG,GAAH,GAAG,CAAQ;QACX,QAAG,GAAH,GAAG,CAAQ;QAE3B,
|
|
1
|
+
{"version":3,"file":"rational.js","sourceRoot":"","sources":["../../src/lib/rational.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,OAAO,QAAQ;IA+BD;IACA;IA/BlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YACkB,GAAW,EACX,GAA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IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,+DAA+D;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,KAAe;QACpB,OAAO,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;IACnC,CAAC;CACF"}
|
package/dist/lib/utilities.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AVCodecID, AVMediaType, AVPixelFormat, AVSampleFormat } from '../constants/constants.js';
|
|
2
2
|
import type { FormatContext } from './format-context.js';
|
|
3
|
+
import type { NativeCodecParameters, NativeWrapper } from './native-types.js';
|
|
3
4
|
import type { ChannelLayout, IRational } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* Get FFmpeg library information.
|
|
@@ -172,6 +173,107 @@ export declare function avSampleFmtIsPlanar(sampleFmt: AVSampleFormat): boolean;
|
|
|
172
173
|
* @see [avcodec_get_name](https://ffmpeg.org/doxygen/7.1/group__lavc__core.html#ga2016a52e94f867ebe5113bdf448e182d) - FFmpeg Doxygen
|
|
173
174
|
*/
|
|
174
175
|
export declare function avGetCodecName(codecId: AVCodecID): string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Get DASH/RFC 6381 codec string from codec parameters.
|
|
178
|
+
*
|
|
179
|
+
* Generates codec strings for MPEG-DASH manifests following RFC 6381.
|
|
180
|
+
* Uses FFmpeg's dashenc.c implementation for accurate codec strings.
|
|
181
|
+
*
|
|
182
|
+
* Supported codecs:
|
|
183
|
+
* - **WebM codecs**: VP8, VP9 (detailed), Vorbis, Opus, FLAC
|
|
184
|
+
* - **H.264** (avc1): `avc1.PPCCLL` (profile, constraints, level)
|
|
185
|
+
* - **HEVC** (hvc1/hev1): Base tag only (`hvc1` or `hev1`) - no profile details
|
|
186
|
+
* - **AV1** (av01): `av01.P.LLT.BB...` (profile, level, tier, bitdepth, etc.)
|
|
187
|
+
* - **AAC** (mp4a): `mp4a.OT.AOT` (object type, audio object type)
|
|
188
|
+
*
|
|
189
|
+
* Note: For HLS with detailed HEVC codec strings, use {@link avGetCodecStringHls}.
|
|
190
|
+
*
|
|
191
|
+
* @param codecpar - Codec parameters
|
|
192
|
+
*
|
|
193
|
+
* @returns DASH codec string, or null if cannot be determined
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* import { avGetCodecStringDash } from 'node-av/lib';
|
|
198
|
+
*
|
|
199
|
+
* // Get codec string from DASH output stream
|
|
200
|
+
* const stream = dashOutput.video();
|
|
201
|
+
* const codecString = avGetCodecStringDash(stream.codecpar);
|
|
202
|
+
* console.log(codecString); // "hev1" for HEVC, "avc1.42c01e" for H.264
|
|
203
|
+
*
|
|
204
|
+
* // Use for DASH manifest
|
|
205
|
+
* const mimeType = `video/mp4; codecs="${codecString}"`;
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* @see [RFC 6381](https://tools.ietf.org/html/rfc6381) - RFC 6381: Codecs Parameter Specification
|
|
209
|
+
* @see [dashenc](https://ffmpeg.org/doxygen/trunk/dashenc_8c_source.html#l00345) - FFmpeg dashenc.c implementation
|
|
210
|
+
*/
|
|
211
|
+
export declare function avGetCodecStringDash(codecpar: NativeWrapper<NativeCodecParameters>): string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Get HLS codec string from codec parameters.
|
|
214
|
+
*
|
|
215
|
+
* Generates codec strings for HLS playlists. Uses FFmpeg's hlsenc.c implementation.
|
|
216
|
+
* Provides detailed HEVC codec strings with profile, tier, level, and constraints.
|
|
217
|
+
*
|
|
218
|
+
* Supported codecs:
|
|
219
|
+
* - **H.264** (avc1): `avc1.PPCCLL` (profile, constraints, level)
|
|
220
|
+
* - **HEVC** (hvc1): `hvc1.P.PC.TL.C` (profile, profile_compatibility, tier+level, constraints)
|
|
221
|
+
* - **AAC**: `mp4a.40.AOT` (audio object type based on profile)
|
|
222
|
+
* - **MP2**: `mp4a.40.33`
|
|
223
|
+
* - **MP3**: `mp4a.40.34`
|
|
224
|
+
* - **AC-3**: `ac-3`
|
|
225
|
+
* - **E-AC-3**: `ec-3`
|
|
226
|
+
*
|
|
227
|
+
* Note: For DASH manifests, use {@link avGetCodecStringDash} instead.
|
|
228
|
+
*
|
|
229
|
+
* @param codecpar - Codec parameters
|
|
230
|
+
*
|
|
231
|
+
* @returns HLS codec string, or null if cannot be determined
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* ```typescript
|
|
235
|
+
* import { avGetCodecStringHls } from 'node-av/lib';
|
|
236
|
+
*
|
|
237
|
+
* // Get detailed HEVC codec string for HLS
|
|
238
|
+
* const stream = hlsOutput.video();
|
|
239
|
+
* const codecString = avGetCodecStringHls(stream.codecpar);
|
|
240
|
+
* console.log(codecString); // "hvc1.1.6.L93.B0" - detailed HEVC profile info
|
|
241
|
+
*
|
|
242
|
+
* // Use for HLS playlist
|
|
243
|
+
* const codecsAttr = `CODECS="${codecString}"`;
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
246
|
+
* @see [hlsenc](https://ffmpeg.org/doxygen/trunk/hlsenc_8c_source.html#l00351) - FFmpeg hlsenc.c implementation
|
|
247
|
+
*/
|
|
248
|
+
export declare function avGetCodecStringHls(codecpar: NativeWrapper<NativeCodecParameters>): string | null;
|
|
249
|
+
/**
|
|
250
|
+
* Get DASH MIME type for codec parameters.
|
|
251
|
+
*
|
|
252
|
+
* Determines the MIME type for MPEG-DASH segments based on codec.
|
|
253
|
+
* Uses FFmpeg's segment type selection logic:
|
|
254
|
+
* - WebM codecs (VP8, VP9, Vorbis, Opus) → `video/webm` or `audio/webm`
|
|
255
|
+
* - All other codecs → `video/mp4` or `audio/mp4`
|
|
256
|
+
*
|
|
257
|
+
* @param codecpar - Codec parameters
|
|
258
|
+
*
|
|
259
|
+
* @returns MIME type string, or null if invalid media type
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* import { avGetMimeTypeDash } from 'node-av/lib';
|
|
264
|
+
*
|
|
265
|
+
* const stream = input.video();
|
|
266
|
+
* const mimeType = avGetMimeTypeDash(stream.codecpar);
|
|
267
|
+
* console.log(mimeType); // "video/mp4" for H.264
|
|
268
|
+
*
|
|
269
|
+
* // VP9 codec
|
|
270
|
+
* const mimeTypeVP9 = avGetMimeTypeDash(vp9Stream.codecpar);
|
|
271
|
+
* console.log(mimeTypeVP9); // "video/webm"
|
|
272
|
+
* ```
|
|
273
|
+
*
|
|
274
|
+
* @see https://ffmpeg.org/doxygen/trunk/dashenc_8c_source.html#l00285 - FFmpeg dashenc.c segment type selection
|
|
275
|
+
*/
|
|
276
|
+
export declare function avGetMimeTypeDash(codecpar: NativeWrapper<NativeCodecParameters>): string | null;
|
|
175
277
|
/**
|
|
176
278
|
* Get pixel format name.
|
|
177
279
|
*
|
package/dist/lib/utilities.js
CHANGED
|
@@ -173,6 +173,113 @@ export function avSampleFmtIsPlanar(sampleFmt) {
|
|
|
173
173
|
export function avGetCodecName(codecId) {
|
|
174
174
|
return bindings.avGetCodecName(codecId);
|
|
175
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Get DASH/RFC 6381 codec string from codec parameters.
|
|
178
|
+
*
|
|
179
|
+
* Generates codec strings for MPEG-DASH manifests following RFC 6381.
|
|
180
|
+
* Uses FFmpeg's dashenc.c implementation for accurate codec strings.
|
|
181
|
+
*
|
|
182
|
+
* Supported codecs:
|
|
183
|
+
* - **WebM codecs**: VP8, VP9 (detailed), Vorbis, Opus, FLAC
|
|
184
|
+
* - **H.264** (avc1): `avc1.PPCCLL` (profile, constraints, level)
|
|
185
|
+
* - **HEVC** (hvc1/hev1): Base tag only (`hvc1` or `hev1`) - no profile details
|
|
186
|
+
* - **AV1** (av01): `av01.P.LLT.BB...` (profile, level, tier, bitdepth, etc.)
|
|
187
|
+
* - **AAC** (mp4a): `mp4a.OT.AOT` (object type, audio object type)
|
|
188
|
+
*
|
|
189
|
+
* Note: For HLS with detailed HEVC codec strings, use {@link avGetCodecStringHls}.
|
|
190
|
+
*
|
|
191
|
+
* @param codecpar - Codec parameters
|
|
192
|
+
*
|
|
193
|
+
* @returns DASH codec string, or null if cannot be determined
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* import { avGetCodecStringDash } from 'node-av/lib';
|
|
198
|
+
*
|
|
199
|
+
* // Get codec string from DASH output stream
|
|
200
|
+
* const stream = dashOutput.video();
|
|
201
|
+
* const codecString = avGetCodecStringDash(stream.codecpar);
|
|
202
|
+
* console.log(codecString); // "hev1" for HEVC, "avc1.42c01e" for H.264
|
|
203
|
+
*
|
|
204
|
+
* // Use for DASH manifest
|
|
205
|
+
* const mimeType = `video/mp4; codecs="${codecString}"`;
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* @see [RFC 6381](https://tools.ietf.org/html/rfc6381) - RFC 6381: Codecs Parameter Specification
|
|
209
|
+
* @see [dashenc](https://ffmpeg.org/doxygen/trunk/dashenc_8c_source.html#l00345) - FFmpeg dashenc.c implementation
|
|
210
|
+
*/
|
|
211
|
+
export function avGetCodecStringDash(codecpar) {
|
|
212
|
+
return bindings.avGetCodecStringDash(codecpar.getNative());
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get HLS codec string from codec parameters.
|
|
216
|
+
*
|
|
217
|
+
* Generates codec strings for HLS playlists. Uses FFmpeg's hlsenc.c implementation.
|
|
218
|
+
* Provides detailed HEVC codec strings with profile, tier, level, and constraints.
|
|
219
|
+
*
|
|
220
|
+
* Supported codecs:
|
|
221
|
+
* - **H.264** (avc1): `avc1.PPCCLL` (profile, constraints, level)
|
|
222
|
+
* - **HEVC** (hvc1): `hvc1.P.PC.TL.C` (profile, profile_compatibility, tier+level, constraints)
|
|
223
|
+
* - **AAC**: `mp4a.40.AOT` (audio object type based on profile)
|
|
224
|
+
* - **MP2**: `mp4a.40.33`
|
|
225
|
+
* - **MP3**: `mp4a.40.34`
|
|
226
|
+
* - **AC-3**: `ac-3`
|
|
227
|
+
* - **E-AC-3**: `ec-3`
|
|
228
|
+
*
|
|
229
|
+
* Note: For DASH manifests, use {@link avGetCodecStringDash} instead.
|
|
230
|
+
*
|
|
231
|
+
* @param codecpar - Codec parameters
|
|
232
|
+
*
|
|
233
|
+
* @returns HLS codec string, or null if cannot be determined
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```typescript
|
|
237
|
+
* import { avGetCodecStringHls } from 'node-av/lib';
|
|
238
|
+
*
|
|
239
|
+
* // Get detailed HEVC codec string for HLS
|
|
240
|
+
* const stream = hlsOutput.video();
|
|
241
|
+
* const codecString = avGetCodecStringHls(stream.codecpar);
|
|
242
|
+
* console.log(codecString); // "hvc1.1.6.L93.B0" - detailed HEVC profile info
|
|
243
|
+
*
|
|
244
|
+
* // Use for HLS playlist
|
|
245
|
+
* const codecsAttr = `CODECS="${codecString}"`;
|
|
246
|
+
* ```
|
|
247
|
+
*
|
|
248
|
+
* @see [hlsenc](https://ffmpeg.org/doxygen/trunk/hlsenc_8c_source.html#l00351) - FFmpeg hlsenc.c implementation
|
|
249
|
+
*/
|
|
250
|
+
export function avGetCodecStringHls(codecpar) {
|
|
251
|
+
return bindings.avGetCodecStringHls(codecpar.getNative());
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Get DASH MIME type for codec parameters.
|
|
255
|
+
*
|
|
256
|
+
* Determines the MIME type for MPEG-DASH segments based on codec.
|
|
257
|
+
* Uses FFmpeg's segment type selection logic:
|
|
258
|
+
* - WebM codecs (VP8, VP9, Vorbis, Opus) → `video/webm` or `audio/webm`
|
|
259
|
+
* - All other codecs → `video/mp4` or `audio/mp4`
|
|
260
|
+
*
|
|
261
|
+
* @param codecpar - Codec parameters
|
|
262
|
+
*
|
|
263
|
+
* @returns MIME type string, or null if invalid media type
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```typescript
|
|
267
|
+
* import { avGetMimeTypeDash } from 'node-av/lib';
|
|
268
|
+
*
|
|
269
|
+
* const stream = input.video();
|
|
270
|
+
* const mimeType = avGetMimeTypeDash(stream.codecpar);
|
|
271
|
+
* console.log(mimeType); // "video/mp4" for H.264
|
|
272
|
+
*
|
|
273
|
+
* // VP9 codec
|
|
274
|
+
* const mimeTypeVP9 = avGetMimeTypeDash(vp9Stream.codecpar);
|
|
275
|
+
* console.log(mimeTypeVP9); // "video/webm"
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @see https://ffmpeg.org/doxygen/trunk/dashenc_8c_source.html#l00285 - FFmpeg dashenc.c segment type selection
|
|
279
|
+
*/
|
|
280
|
+
export function avGetMimeTypeDash(codecpar) {
|
|
281
|
+
return bindings.avGetMimeTypeDash(codecpar.getNative());
|
|
282
|
+
}
|
|
176
283
|
/**
|
|
177
284
|
* Get pixel format name.
|
|
178
285
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../src/lib/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../src/lib/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAOzC;;;;;;;;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CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC;AACzD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,WAAW,CAAC,QAAyB;IACnD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,yCAAyC;IACzC,MAAM,cAAc,GAAG,QAAQ;SAC5B,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACX,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,EAAE,CAAC;YAC/C,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;YAClC,IAAI,SAAS,EAAE,CAAC;gBACd,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;IACH,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC;IAEtC,oDAAoD;IACpD,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AAC9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-av",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "FFmpeg bindings for Node.js",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/av)",
|
|
6
6
|
"type": "module",
|
|
@@ -62,35 +62,35 @@
|
|
|
62
62
|
"test:all": "npm run build:tests && npm run build:tsc && tsx --test test/*.test.ts",
|
|
63
63
|
"update": "updates --update ./"
|
|
64
64
|
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"unzipper": "^0.12.3"
|
|
67
|
+
},
|
|
65
68
|
"optionalDependencies": {
|
|
66
|
-
"@seydx/node-av-darwin-arm64": "^3.0.
|
|
67
|
-
"@seydx/node-av-darwin-x64": "^3.0.
|
|
68
|
-
"@seydx/node-av-linux-arm64": "^3.0.
|
|
69
|
-
"@seydx/node-av-linux-x64": "^3.0.
|
|
70
|
-
"@seydx/node-av-win32-arm64-mingw": "^3.0.
|
|
71
|
-
"@seydx/node-av-win32-arm64-msvc": "^3.0.
|
|
72
|
-
"@seydx/node-av-win32-x64-mingw": "^3.0.
|
|
73
|
-
"@seydx/node-av-win32-x64-msvc": "^3.0.
|
|
69
|
+
"@seydx/node-av-darwin-arm64": "^3.0.5",
|
|
70
|
+
"@seydx/node-av-darwin-x64": "^3.0.5",
|
|
71
|
+
"@seydx/node-av-linux-arm64": "^3.0.5",
|
|
72
|
+
"@seydx/node-av-linux-x64": "^3.0.5",
|
|
73
|
+
"@seydx/node-av-win32-arm64-mingw": "^3.0.5",
|
|
74
|
+
"@seydx/node-av-win32-arm64-msvc": "^3.0.5",
|
|
75
|
+
"@seydx/node-av-win32-x64-mingw": "^3.0.5",
|
|
76
|
+
"@seydx/node-av-win32-x64-msvc": "^3.0.5"
|
|
74
77
|
},
|
|
75
78
|
"devDependencies": {
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@types/debug": "^4.1.12",
|
|
79
|
-
"@types/node": "^24.7.2",
|
|
79
|
+
"@stylistic/eslint-plugin": "^5.5.0",
|
|
80
|
+
"@types/node": "^24.8.1",
|
|
80
81
|
"@types/node-abi": "^3.0.3",
|
|
81
|
-
"@types/pngjs": "^6.0.5",
|
|
82
82
|
"@types/semver": "^7.7.1",
|
|
83
83
|
"@types/unzipper": "^0.10.11",
|
|
84
|
+
"@types/ws": "^8.18.1",
|
|
84
85
|
"@typescript-eslint/parser": "^8.46.1",
|
|
85
86
|
"concurrently": "^9.2.1",
|
|
86
87
|
"cpy-cli": "^6.0.0",
|
|
87
88
|
"cross-env": "^10.1.0",
|
|
88
|
-
"eslint": "^9.
|
|
89
|
+
"eslint": "^9.38.0",
|
|
89
90
|
"eslint-plugin-jsdoc": "^61.1.4",
|
|
90
91
|
"globals": "^16.4.0",
|
|
91
92
|
"node-addon-api": "^8.5.0",
|
|
92
93
|
"node-gyp": "^11.5.0",
|
|
93
|
-
"pngjs": "^7.0.0",
|
|
94
94
|
"prettier": "^3.6.2",
|
|
95
95
|
"rimraf": "^6.0.1",
|
|
96
96
|
"sharp": "^0.34.4",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"typescript-eslint": "^8.46.1",
|
|
103
103
|
"updates": "^16.8.1",
|
|
104
104
|
"vitepress": "^2.0.0-alpha.12",
|
|
105
|
-
"
|
|
105
|
+
"ws": "^8.18.3"
|
|
106
106
|
},
|
|
107
107
|
"bugs": {
|
|
108
108
|
"url": "https://github.com/seydx/av/issues"
|
|
@@ -119,8 +119,5 @@
|
|
|
119
119
|
"repository": {
|
|
120
120
|
"type": "git",
|
|
121
121
|
"url": "git+https://github.com/seydx/av.git"
|
|
122
|
-
},
|
|
123
|
-
"dependencies": {
|
|
124
|
-
"unzipper": "^0.12.3"
|
|
125
122
|
}
|
|
126
123
|
}
|