node-av 2.0.0 → 2.1.0
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 +10 -2
- package/binding.gyp +12 -0
- package/dist/api/bitstream-filter.d.ts +132 -0
- package/dist/api/bitstream-filter.js +198 -0
- package/dist/api/bitstream-filter.js.map +1 -1
- package/dist/api/decoder.d.ts +145 -0
- package/dist/api/decoder.js +225 -0
- package/dist/api/decoder.js.map +1 -1
- package/dist/api/encoder.d.ts +206 -0
- package/dist/api/encoder.js +315 -0
- package/dist/api/encoder.js.map +1 -1
- package/dist/api/filter-presets.d.ts +92 -0
- package/dist/api/filter-presets.js +92 -0
- package/dist/api/filter-presets.js.map +1 -1
- package/dist/api/filter.d.ts +225 -0
- package/dist/api/filter.js +363 -0
- package/dist/api/filter.js.map +1 -1
- package/dist/api/hardware.d.ts +17 -0
- package/dist/api/hardware.js +17 -0
- package/dist/api/hardware.js.map +1 -1
- package/dist/api/io-stream.d.ts +6 -0
- package/dist/api/io-stream.js +2 -0
- package/dist/api/io-stream.js.map +1 -1
- package/dist/api/media-input.d.ts +207 -1
- package/dist/api/media-input.js +353 -0
- package/dist/api/media-input.js.map +1 -1
- package/dist/api/media-output.d.ts +132 -1
- package/dist/api/media-output.js +339 -0
- package/dist/api/media-output.js.map +1 -1
- package/dist/api/pipeline.d.ts +65 -0
- package/dist/api/pipeline.js +61 -0
- package/dist/api/pipeline.js.map +1 -1
- package/dist/api/types.d.ts +7 -0
- package/dist/api/utils.js +2 -0
- package/dist/api/utils.js.map +1 -1
- package/dist/lib/audio-fifo.d.ts +103 -0
- package/dist/lib/audio-fifo.js +109 -0
- package/dist/lib/audio-fifo.js.map +1 -1
- package/dist/lib/binding.d.ts +1 -0
- package/dist/lib/binding.js.map +1 -1
- package/dist/lib/bitstream-filter-context.d.ts +79 -0
- package/dist/lib/bitstream-filter-context.js +83 -0
- package/dist/lib/bitstream-filter-context.js.map +1 -1
- package/dist/lib/bitstream-filter.d.ts +2 -0
- package/dist/lib/bitstream-filter.js +2 -0
- package/dist/lib/bitstream-filter.js.map +1 -1
- package/dist/lib/codec-context.d.ts +168 -0
- package/dist/lib/codec-context.js +178 -0
- package/dist/lib/codec-context.js.map +1 -1
- package/dist/lib/codec-parameters.d.ts +3 -0
- package/dist/lib/codec-parameters.js +3 -0
- package/dist/lib/codec-parameters.js.map +1 -1
- package/dist/lib/codec-parser.d.ts +6 -0
- package/dist/lib/codec-parser.js +6 -0
- package/dist/lib/codec-parser.js.map +1 -1
- package/dist/lib/codec.d.ts +12 -0
- package/dist/lib/codec.js +12 -0
- package/dist/lib/codec.js.map +1 -1
- package/dist/lib/dictionary.d.ts +16 -0
- package/dist/lib/dictionary.js +16 -0
- package/dist/lib/dictionary.js.map +1 -1
- package/dist/lib/error.d.ts +8 -0
- package/dist/lib/error.js +9 -0
- package/dist/lib/error.js.map +1 -1
- package/dist/lib/filter-context.d.ts +100 -0
- package/dist/lib/filter-context.js +104 -0
- package/dist/lib/filter-context.js.map +1 -1
- package/dist/lib/filter-graph.d.ts +80 -0
- package/dist/lib/filter-graph.js +84 -0
- package/dist/lib/filter-graph.js.map +1 -1
- package/dist/lib/filter-inout.d.ts +1 -0
- package/dist/lib/filter-inout.js +1 -0
- package/dist/lib/filter-inout.js.map +1 -1
- package/dist/lib/filter.d.ts +2 -0
- package/dist/lib/filter.js +2 -0
- package/dist/lib/filter.js.map +1 -1
- package/dist/lib/format-context.d.ts +338 -2
- package/dist/lib/format-context.js +355 -3
- package/dist/lib/format-context.js.map +1 -1
- package/dist/lib/frame.d.ts +41 -0
- package/dist/lib/frame.js +43 -0
- package/dist/lib/frame.js.map +1 -1
- package/dist/lib/hardware-device-context.d.ts +8 -0
- package/dist/lib/hardware-device-context.js +8 -0
- package/dist/lib/hardware-device-context.js.map +1 -1
- package/dist/lib/hardware-frames-context.d.ts +55 -0
- package/dist/lib/hardware-frames-context.js +57 -0
- package/dist/lib/hardware-frames-context.js.map +1 -1
- package/dist/lib/input-format.d.ts +43 -3
- package/dist/lib/input-format.js +48 -0
- package/dist/lib/input-format.js.map +1 -1
- package/dist/lib/io-context.d.ts +212 -0
- package/dist/lib/io-context.js +228 -0
- package/dist/lib/io-context.js.map +1 -1
- package/dist/lib/log.d.ts +2 -0
- package/dist/lib/log.js +2 -0
- package/dist/lib/log.js.map +1 -1
- package/dist/lib/native-types.d.ts +39 -1
- package/dist/lib/option.d.ts +90 -0
- package/dist/lib/option.js +97 -0
- package/dist/lib/option.js.map +1 -1
- package/dist/lib/output-format.d.ts +4 -0
- package/dist/lib/output-format.js +4 -0
- package/dist/lib/output-format.js.map +1 -1
- package/dist/lib/packet.d.ts +7 -0
- package/dist/lib/packet.js +7 -0
- package/dist/lib/packet.js.map +1 -1
- package/dist/lib/rational.d.ts +1 -0
- package/dist/lib/rational.js +1 -0
- package/dist/lib/rational.js.map +1 -1
- package/dist/lib/software-resample-context.d.ts +64 -0
- package/dist/lib/software-resample-context.js +66 -0
- package/dist/lib/software-resample-context.js.map +1 -1
- package/dist/lib/software-scale-context.d.ts +98 -0
- package/dist/lib/software-scale-context.js +102 -0
- package/dist/lib/software-scale-context.js.map +1 -1
- package/dist/lib/stream.d.ts +1 -0
- package/dist/lib/stream.js +1 -0
- package/dist/lib/stream.js.map +1 -1
- package/dist/lib/utilities.d.ts +60 -0
- package/dist/lib/utilities.js +60 -0
- package/dist/lib/utilities.js.map +1 -1
- package/package.json +13 -13
|
@@ -42,6 +42,7 @@ export class FilterContext extends OptionMember {
|
|
|
42
42
|
_hwDeviceCtx; // Cache for hardware device context wrapper
|
|
43
43
|
/**
|
|
44
44
|
* @param native - The native filter context instance
|
|
45
|
+
*
|
|
45
46
|
* @internal
|
|
46
47
|
*/
|
|
47
48
|
constructor(native) {
|
|
@@ -152,6 +153,7 @@ export class FilterContext extends OptionMember {
|
|
|
152
153
|
* Direct mapping to avfilter_init_dict().
|
|
153
154
|
*
|
|
154
155
|
* @param options - Dictionary of filter options
|
|
156
|
+
*
|
|
155
157
|
* @returns 0 on success, negative AVERROR on error:
|
|
156
158
|
* - AVERROR_EINVAL: Invalid parameters
|
|
157
159
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -179,6 +181,7 @@ export class FilterContext extends OptionMember {
|
|
|
179
181
|
* Direct mapping to avfilter_init_str().
|
|
180
182
|
*
|
|
181
183
|
* @param args - Filter arguments string
|
|
184
|
+
*
|
|
182
185
|
* @returns 0 on success, negative AVERROR on error:
|
|
183
186
|
* - AVERROR_EINVAL: Invalid arguments
|
|
184
187
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -210,8 +213,11 @@ export class FilterContext extends OptionMember {
|
|
|
210
213
|
* Direct mapping to avfilter_link().
|
|
211
214
|
*
|
|
212
215
|
* @param srcPad - Output pad index of this filter
|
|
216
|
+
*
|
|
213
217
|
* @param dst - Destination filter context
|
|
218
|
+
*
|
|
214
219
|
* @param dstPad - Input pad index of destination filter
|
|
220
|
+
*
|
|
215
221
|
* @returns 0 on success, negative AVERROR on error:
|
|
216
222
|
* - AVERROR_EINVAL: Invalid pad indices or incompatible formats
|
|
217
223
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -264,6 +270,7 @@ export class FilterContext extends OptionMember {
|
|
|
264
270
|
* Direct mapping to av_buffersrc_add_frame().
|
|
265
271
|
*
|
|
266
272
|
* @param frame - Frame to send, or null for EOF
|
|
273
|
+
*
|
|
267
274
|
* @returns 0 on success, negative AVERROR on error:
|
|
268
275
|
* - AVERROR_EAGAIN: Filter needs more output consumption
|
|
269
276
|
* - AVERROR_EOF: Filter has been closed
|
|
@@ -292,6 +299,47 @@ export class FilterContext extends OptionMember {
|
|
|
292
299
|
async buffersrcAddFrame(frame) {
|
|
293
300
|
return await this.native.buffersrcAddFrame(frame ? frame.getNative() : null);
|
|
294
301
|
}
|
|
302
|
+
/**
|
|
303
|
+
* Add frame to buffer source filter synchronously.
|
|
304
|
+
* Synchronous version of buffersrcAddFrame.
|
|
305
|
+
*
|
|
306
|
+
* Sends a frame to a buffer source filter for processing.
|
|
307
|
+
* Only valid for buffer source filters (buffer, abuffer).
|
|
308
|
+
*
|
|
309
|
+
* Direct mapping to av_buffersrc_add_frame().
|
|
310
|
+
*
|
|
311
|
+
* @param frame - Frame to send (null to mark EOF)
|
|
312
|
+
*
|
|
313
|
+
* @returns 0 on success, negative AVERROR on error:
|
|
314
|
+
* - AVERROR_EAGAIN: Need to retrieve output first
|
|
315
|
+
* - AVERROR_EOF: Graph has finished processing
|
|
316
|
+
* - AVERROR_EINVAL: Invalid parameters
|
|
317
|
+
* - AVERROR(ENOMEM): Memory allocation failure
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```typescript
|
|
321
|
+
* import { FFmpegError } from 'node-av';
|
|
322
|
+
* import { AVERROR_EAGAIN } from 'node-av/constants';
|
|
323
|
+
*
|
|
324
|
+
* // Send frame to filter
|
|
325
|
+
* const ret = bufferSrc.buffersrcAddFrameSync(frame);
|
|
326
|
+
* if (ret === AVERROR_EAGAIN) {
|
|
327
|
+
* // Need to get output frames first
|
|
328
|
+
* const filtered = new Frame();
|
|
329
|
+
* bufferSink.buffersinkGetFrameSync(filtered);
|
|
330
|
+
* } else {
|
|
331
|
+
* FFmpegError.throwIfError(ret, 'buffersrcAddFrameSync');
|
|
332
|
+
* }
|
|
333
|
+
*
|
|
334
|
+
* // Mark end of stream
|
|
335
|
+
* bufferSrc.buffersrcAddFrameSync(null);
|
|
336
|
+
* ```
|
|
337
|
+
*
|
|
338
|
+
* @see {@link buffersrcAddFrame} For async version
|
|
339
|
+
*/
|
|
340
|
+
buffersrcAddFrameSync(frame) {
|
|
341
|
+
return this.native.buffersrcAddFrameSync(frame ? frame.getNative() : null);
|
|
342
|
+
}
|
|
295
343
|
/**
|
|
296
344
|
* Set parameters for a buffer source filter.
|
|
297
345
|
*
|
|
@@ -301,17 +349,29 @@ export class FilterContext extends OptionMember {
|
|
|
301
349
|
* Direct mapping to av_buffersrc_parameters_set().
|
|
302
350
|
*
|
|
303
351
|
* @param params - Source parameters
|
|
352
|
+
*
|
|
304
353
|
* @param params.width - Video frame width
|
|
354
|
+
*
|
|
305
355
|
* @param params.height - Video frame height
|
|
356
|
+
*
|
|
306
357
|
* @param params.format - Pixel or sample format
|
|
358
|
+
*
|
|
307
359
|
* @param params.timeBase - Time base for timestamps
|
|
360
|
+
*
|
|
308
361
|
* @param params.frameRate - Video frame rate
|
|
362
|
+
*
|
|
309
363
|
* @param params.sampleAspectRatio - Pixel aspect ratio
|
|
364
|
+
*
|
|
310
365
|
* @param params.hwFramesCtx - Hardware frames context
|
|
366
|
+
*
|
|
311
367
|
* @param params.sampleRate - Audio sample rate
|
|
368
|
+
*
|
|
312
369
|
* @param params.channelLayout - Audio channel layout
|
|
370
|
+
*
|
|
313
371
|
* @param params.colorRange - Color range for video
|
|
372
|
+
*
|
|
314
373
|
* @param params.colorSpace - Color space for video
|
|
374
|
+
*
|
|
315
375
|
* @returns 0 on success, negative AVERROR on error:
|
|
316
376
|
* - AVERROR_EINVAL: Invalid parameters
|
|
317
377
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -361,6 +421,7 @@ export class FilterContext extends OptionMember {
|
|
|
361
421
|
* Direct mapping to av_buffersink_get_frame().
|
|
362
422
|
*
|
|
363
423
|
* @param frame - Frame to receive filtered data
|
|
424
|
+
*
|
|
364
425
|
* @returns 0 on success, negative AVERROR on error:
|
|
365
426
|
* - AVERROR_EAGAIN: No frame available yet
|
|
366
427
|
* - AVERROR_EOF: No more frames will be produced
|
|
@@ -390,6 +451,49 @@ export class FilterContext extends OptionMember {
|
|
|
390
451
|
async buffersinkGetFrame(frame) {
|
|
391
452
|
return await this.native.buffersinkGetFrame(frame.getNative());
|
|
392
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* Get frame from buffer sink filter synchronously.
|
|
456
|
+
* Synchronous version of buffersinkGetFrame.
|
|
457
|
+
*
|
|
458
|
+
* Retrieves a filtered frame from a buffer sink filter.
|
|
459
|
+
* Only valid for buffer sink filters (buffersink, abuffersink).
|
|
460
|
+
*
|
|
461
|
+
* Direct mapping to av_buffersink_get_frame().
|
|
462
|
+
*
|
|
463
|
+
* @param frame - Frame to receive filtered data
|
|
464
|
+
*
|
|
465
|
+
* @returns 0 on success, negative AVERROR on error:
|
|
466
|
+
* - AVERROR_EAGAIN: Need more input
|
|
467
|
+
* - AVERROR_EOF: No more frames available
|
|
468
|
+
* - AVERROR_EINVAL: Invalid parameters
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```typescript
|
|
472
|
+
* import { Frame, FFmpegError } from 'node-av';
|
|
473
|
+
* import { AVERROR_EAGAIN, AVERROR_EOF } from 'node-av/constants';
|
|
474
|
+
*
|
|
475
|
+
* // Get filtered frame
|
|
476
|
+
* const filtered = new Frame();
|
|
477
|
+
* const ret = bufferSink.buffersinkGetFrameSync(filtered);
|
|
478
|
+
*
|
|
479
|
+
* if (ret === 0) {
|
|
480
|
+
* // Process filtered frame
|
|
481
|
+
* console.log(`Got filtered frame with ${filtered.nbSamples} samples`);
|
|
482
|
+
* filtered.unref();
|
|
483
|
+
* } else if (ret === AVERROR_EAGAIN) {
|
|
484
|
+
* // Need more input frames
|
|
485
|
+
* } else if (ret === AVERROR_EOF) {
|
|
486
|
+
* // No more frames
|
|
487
|
+
* } else {
|
|
488
|
+
* FFmpegError.throwIfError(ret, 'buffersinkGetFrameSync');
|
|
489
|
+
* }
|
|
490
|
+
* ```
|
|
491
|
+
*
|
|
492
|
+
* @see {@link buffersinkGetFrame} For async version
|
|
493
|
+
*/
|
|
494
|
+
buffersinkGetFrameSync(frame) {
|
|
495
|
+
return this.native.buffersinkGetFrameSync(frame.getNative());
|
|
496
|
+
}
|
|
393
497
|
/**
|
|
394
498
|
* Get time base from buffer sink.
|
|
395
499
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-context.js","sourceRoot":"","sources":["../../src/lib/filter-context.ts"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
* Direct mapping to avfilter_graph_create_filter().
|
|
154
154
|
*
|
|
155
155
|
* @param filter - Filter descriptor to instantiate
|
|
156
|
+
*
|
|
156
157
|
* @param name - Name for this filter instance
|
|
158
|
+
*
|
|
157
159
|
* @param args - Initialization arguments (filter-specific)
|
|
160
|
+
*
|
|
158
161
|
* @returns Created filter context, or null on failure
|
|
159
162
|
*
|
|
160
163
|
* @example
|
|
@@ -187,7 +190,9 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
187
190
|
* Direct mapping to avfilter_graph_alloc_filter().
|
|
188
191
|
*
|
|
189
192
|
* @param filter - Filter descriptor to instantiate
|
|
193
|
+
*
|
|
190
194
|
* @param name - Name for this filter instance
|
|
195
|
+
*
|
|
191
196
|
* @returns Allocated filter context, or null on failure
|
|
192
197
|
*
|
|
193
198
|
* @example
|
|
@@ -216,6 +221,7 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
216
221
|
* Direct mapping to avfilter_graph_get_filter().
|
|
217
222
|
*
|
|
218
223
|
* @param name - Name of the filter instance
|
|
224
|
+
*
|
|
219
225
|
* @returns Filter context if found, null otherwise
|
|
220
226
|
*
|
|
221
227
|
* @example
|
|
@@ -258,6 +264,32 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
258
264
|
* @see {@link validate} To check configuration
|
|
259
265
|
*/
|
|
260
266
|
config(): Promise<number>;
|
|
267
|
+
/**
|
|
268
|
+
* Configure the filter graph synchronously.
|
|
269
|
+
* Synchronous version of config.
|
|
270
|
+
*
|
|
271
|
+
* Validates and finalizes the graph structure after all filters
|
|
272
|
+
* have been added and connected. Must be called before processing.
|
|
273
|
+
*
|
|
274
|
+
* Direct mapping to avfilter_graph_config().
|
|
275
|
+
*
|
|
276
|
+
* @returns 0 on success, negative AVERROR on error:
|
|
277
|
+
* - AVERROR_EINVAL: Invalid graph structure
|
|
278
|
+
* - AVERROR_ENOMEM: Memory allocation failure
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```typescript
|
|
282
|
+
* import { FFmpegError } from 'node-av';
|
|
283
|
+
*
|
|
284
|
+
* // Configure graph after building
|
|
285
|
+
* const ret = graph.configSync();
|
|
286
|
+
* FFmpegError.throwIfError(ret, 'configSync');
|
|
287
|
+
* // Graph is now ready for processing
|
|
288
|
+
* ```
|
|
289
|
+
*
|
|
290
|
+
* @see {@link config} For async version
|
|
291
|
+
*/
|
|
292
|
+
configSync(): number;
|
|
261
293
|
/**
|
|
262
294
|
* Parse a filter graph description.
|
|
263
295
|
*
|
|
@@ -267,8 +299,11 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
267
299
|
* Direct mapping to avfilter_graph_parse().
|
|
268
300
|
*
|
|
269
301
|
* @param filters - Filter graph description string
|
|
302
|
+
*
|
|
270
303
|
* @param inputs - Linked list of graph inputs
|
|
304
|
+
*
|
|
271
305
|
* @param outputs - Linked list of graph outputs
|
|
306
|
+
*
|
|
272
307
|
* @returns 0 on success, negative AVERROR on error:
|
|
273
308
|
* - AVERROR_EINVAL: Parse error
|
|
274
309
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -305,6 +340,7 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
305
340
|
* Direct mapping to avfilter_graph_parse2().
|
|
306
341
|
*
|
|
307
342
|
* @param filters - Filter graph description string
|
|
343
|
+
*
|
|
308
344
|
* @returns 0 on success, negative AVERROR on error:
|
|
309
345
|
* - AVERROR_EINVAL: Parse error
|
|
310
346
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -331,8 +367,11 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
331
367
|
* Direct mapping to avfilter_graph_parse_ptr().
|
|
332
368
|
*
|
|
333
369
|
* @param filters - Filter graph description string
|
|
370
|
+
*
|
|
334
371
|
* @param inputs - Optional linked list of inputs
|
|
372
|
+
*
|
|
335
373
|
* @param outputs - Optional linked list of outputs
|
|
374
|
+
*
|
|
336
375
|
* @returns 0 on success, negative AVERROR on error:
|
|
337
376
|
* - AVERROR_EINVAL: Parse error
|
|
338
377
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -399,6 +438,38 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
399
438
|
* ```
|
|
400
439
|
*/
|
|
401
440
|
requestOldest(): Promise<number>;
|
|
441
|
+
/**
|
|
442
|
+
* Request the oldest queued frame from filters synchronously.
|
|
443
|
+
* Synchronous version of requestOldest.
|
|
444
|
+
*
|
|
445
|
+
* Requests a frame from the oldest sink in the graph.
|
|
446
|
+
* Used for pulling frames through the filter pipeline.
|
|
447
|
+
*
|
|
448
|
+
* Direct mapping to avfilter_graph_request_oldest().
|
|
449
|
+
*
|
|
450
|
+
* @returns 0 on success, negative AVERROR on error:
|
|
451
|
+
* - AVERROR_EOF: No more frames
|
|
452
|
+
* - AVERROR_EAGAIN: Need more input
|
|
453
|
+
*
|
|
454
|
+
* @example
|
|
455
|
+
* ```typescript
|
|
456
|
+
* import { FFmpegError } from 'node-av';
|
|
457
|
+
* import { AVERROR_EOF, AVERROR_EAGAIN } from 'node-av/constants';
|
|
458
|
+
*
|
|
459
|
+
* // Pull frames through the graph
|
|
460
|
+
* const ret = graph.requestOldestSync();
|
|
461
|
+
* if (ret === AVERROR_EOF) {
|
|
462
|
+
* // All frames processed
|
|
463
|
+
* } else if (ret === AVERROR_EAGAIN) {
|
|
464
|
+
* // Need more input frames
|
|
465
|
+
* } else {
|
|
466
|
+
* FFmpegError.throwIfError(ret, 'requestOldestSync');
|
|
467
|
+
* }
|
|
468
|
+
* ```
|
|
469
|
+
*
|
|
470
|
+
* @see {@link requestOldest} For async version
|
|
471
|
+
*/
|
|
472
|
+
requestOldestSync(): number;
|
|
402
473
|
/**
|
|
403
474
|
* Dump the filter graph to a string.
|
|
404
475
|
*
|
|
@@ -428,9 +499,13 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
428
499
|
* Direct mapping to avfilter_graph_send_command().
|
|
429
500
|
*
|
|
430
501
|
* @param target - Filter name or "all"
|
|
502
|
+
*
|
|
431
503
|
* @param cmd - Command to send
|
|
504
|
+
*
|
|
432
505
|
* @param arg - Command argument
|
|
506
|
+
*
|
|
433
507
|
* @param flags - Command flags
|
|
508
|
+
*
|
|
434
509
|
* @returns Error code or response object
|
|
435
510
|
*
|
|
436
511
|
* @example
|
|
@@ -464,10 +539,15 @@ export declare class FilterGraph extends OptionMember<NativeFilterGraph> impleme
|
|
|
464
539
|
* Direct mapping to avfilter_graph_queue_command().
|
|
465
540
|
*
|
|
466
541
|
* @param target - Filter name or "all"
|
|
542
|
+
*
|
|
467
543
|
* @param cmd - Command to queue
|
|
544
|
+
*
|
|
468
545
|
* @param arg - Command argument
|
|
546
|
+
*
|
|
469
547
|
* @param ts - Timestamp for execution
|
|
548
|
+
*
|
|
470
549
|
* @param flags - Command flags
|
|
550
|
+
*
|
|
471
551
|
* @returns 0 on success, negative AVERROR on error
|
|
472
552
|
*
|
|
473
553
|
* @example
|
package/dist/lib/filter-graph.js
CHANGED
|
@@ -175,8 +175,11 @@ export class FilterGraph extends OptionMember {
|
|
|
175
175
|
* Direct mapping to avfilter_graph_create_filter().
|
|
176
176
|
*
|
|
177
177
|
* @param filter - Filter descriptor to instantiate
|
|
178
|
+
*
|
|
178
179
|
* @param name - Name for this filter instance
|
|
180
|
+
*
|
|
179
181
|
* @param args - Initialization arguments (filter-specific)
|
|
182
|
+
*
|
|
180
183
|
* @returns Created filter context, or null on failure
|
|
181
184
|
*
|
|
182
185
|
* @example
|
|
@@ -212,7 +215,9 @@ export class FilterGraph extends OptionMember {
|
|
|
212
215
|
* Direct mapping to avfilter_graph_alloc_filter().
|
|
213
216
|
*
|
|
214
217
|
* @param filter - Filter descriptor to instantiate
|
|
218
|
+
*
|
|
215
219
|
* @param name - Name for this filter instance
|
|
220
|
+
*
|
|
216
221
|
* @returns Allocated filter context, or null on failure
|
|
217
222
|
*
|
|
218
223
|
* @example
|
|
@@ -244,6 +249,7 @@ export class FilterGraph extends OptionMember {
|
|
|
244
249
|
* Direct mapping to avfilter_graph_get_filter().
|
|
245
250
|
*
|
|
246
251
|
* @param name - Name of the filter instance
|
|
252
|
+
*
|
|
247
253
|
* @returns Filter context if found, null otherwise
|
|
248
254
|
*
|
|
249
255
|
* @example
|
|
@@ -291,6 +297,34 @@ export class FilterGraph extends OptionMember {
|
|
|
291
297
|
async config() {
|
|
292
298
|
return await this.native.config();
|
|
293
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Configure the filter graph synchronously.
|
|
302
|
+
* Synchronous version of config.
|
|
303
|
+
*
|
|
304
|
+
* Validates and finalizes the graph structure after all filters
|
|
305
|
+
* have been added and connected. Must be called before processing.
|
|
306
|
+
*
|
|
307
|
+
* Direct mapping to avfilter_graph_config().
|
|
308
|
+
*
|
|
309
|
+
* @returns 0 on success, negative AVERROR on error:
|
|
310
|
+
* - AVERROR_EINVAL: Invalid graph structure
|
|
311
|
+
* - AVERROR_ENOMEM: Memory allocation failure
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```typescript
|
|
315
|
+
* import { FFmpegError } from 'node-av';
|
|
316
|
+
*
|
|
317
|
+
* // Configure graph after building
|
|
318
|
+
* const ret = graph.configSync();
|
|
319
|
+
* FFmpegError.throwIfError(ret, 'configSync');
|
|
320
|
+
* // Graph is now ready for processing
|
|
321
|
+
* ```
|
|
322
|
+
*
|
|
323
|
+
* @see {@link config} For async version
|
|
324
|
+
*/
|
|
325
|
+
configSync() {
|
|
326
|
+
return this.native.configSync();
|
|
327
|
+
}
|
|
294
328
|
/**
|
|
295
329
|
* Parse a filter graph description.
|
|
296
330
|
*
|
|
@@ -300,8 +334,11 @@ export class FilterGraph extends OptionMember {
|
|
|
300
334
|
* Direct mapping to avfilter_graph_parse().
|
|
301
335
|
*
|
|
302
336
|
* @param filters - Filter graph description string
|
|
337
|
+
*
|
|
303
338
|
* @param inputs - Linked list of graph inputs
|
|
339
|
+
*
|
|
304
340
|
* @param outputs - Linked list of graph outputs
|
|
341
|
+
*
|
|
305
342
|
* @returns 0 on success, negative AVERROR on error:
|
|
306
343
|
* - AVERROR_EINVAL: Parse error
|
|
307
344
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -340,6 +377,7 @@ export class FilterGraph extends OptionMember {
|
|
|
340
377
|
* Direct mapping to avfilter_graph_parse2().
|
|
341
378
|
*
|
|
342
379
|
* @param filters - Filter graph description string
|
|
380
|
+
*
|
|
343
381
|
* @returns 0 on success, negative AVERROR on error:
|
|
344
382
|
* - AVERROR_EINVAL: Parse error
|
|
345
383
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -368,8 +406,11 @@ export class FilterGraph extends OptionMember {
|
|
|
368
406
|
* Direct mapping to avfilter_graph_parse_ptr().
|
|
369
407
|
*
|
|
370
408
|
* @param filters - Filter graph description string
|
|
409
|
+
*
|
|
371
410
|
* @param inputs - Optional linked list of inputs
|
|
411
|
+
*
|
|
372
412
|
* @param outputs - Optional linked list of outputs
|
|
413
|
+
*
|
|
373
414
|
* @returns 0 on success, negative AVERROR on error:
|
|
374
415
|
* - AVERROR_EINVAL: Parse error
|
|
375
416
|
* - AVERROR_ENOMEM: Memory allocation failure
|
|
@@ -442,6 +483,40 @@ export class FilterGraph extends OptionMember {
|
|
|
442
483
|
async requestOldest() {
|
|
443
484
|
return await this.native.requestOldest();
|
|
444
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* Request the oldest queued frame from filters synchronously.
|
|
488
|
+
* Synchronous version of requestOldest.
|
|
489
|
+
*
|
|
490
|
+
* Requests a frame from the oldest sink in the graph.
|
|
491
|
+
* Used for pulling frames through the filter pipeline.
|
|
492
|
+
*
|
|
493
|
+
* Direct mapping to avfilter_graph_request_oldest().
|
|
494
|
+
*
|
|
495
|
+
* @returns 0 on success, negative AVERROR on error:
|
|
496
|
+
* - AVERROR_EOF: No more frames
|
|
497
|
+
* - AVERROR_EAGAIN: Need more input
|
|
498
|
+
*
|
|
499
|
+
* @example
|
|
500
|
+
* ```typescript
|
|
501
|
+
* import { FFmpegError } from 'node-av';
|
|
502
|
+
* import { AVERROR_EOF, AVERROR_EAGAIN } from 'node-av/constants';
|
|
503
|
+
*
|
|
504
|
+
* // Pull frames through the graph
|
|
505
|
+
* const ret = graph.requestOldestSync();
|
|
506
|
+
* if (ret === AVERROR_EOF) {
|
|
507
|
+
* // All frames processed
|
|
508
|
+
* } else if (ret === AVERROR_EAGAIN) {
|
|
509
|
+
* // Need more input frames
|
|
510
|
+
* } else {
|
|
511
|
+
* FFmpegError.throwIfError(ret, 'requestOldestSync');
|
|
512
|
+
* }
|
|
513
|
+
* ```
|
|
514
|
+
*
|
|
515
|
+
* @see {@link requestOldest} For async version
|
|
516
|
+
*/
|
|
517
|
+
requestOldestSync() {
|
|
518
|
+
return this.native.requestOldestSync();
|
|
519
|
+
}
|
|
445
520
|
/**
|
|
446
521
|
* Dump the filter graph to a string.
|
|
447
522
|
*
|
|
@@ -473,9 +548,13 @@ export class FilterGraph extends OptionMember {
|
|
|
473
548
|
* Direct mapping to avfilter_graph_send_command().
|
|
474
549
|
*
|
|
475
550
|
* @param target - Filter name or "all"
|
|
551
|
+
*
|
|
476
552
|
* @param cmd - Command to send
|
|
553
|
+
*
|
|
477
554
|
* @param arg - Command argument
|
|
555
|
+
*
|
|
478
556
|
* @param flags - Command flags
|
|
557
|
+
*
|
|
479
558
|
* @returns Error code or response object
|
|
480
559
|
*
|
|
481
560
|
* @example
|
|
@@ -509,10 +588,15 @@ export class FilterGraph extends OptionMember {
|
|
|
509
588
|
* Direct mapping to avfilter_graph_queue_command().
|
|
510
589
|
*
|
|
511
590
|
* @param target - Filter name or "all"
|
|
591
|
+
*
|
|
512
592
|
* @param cmd - Command to queue
|
|
593
|
+
*
|
|
513
594
|
* @param arg - Command argument
|
|
595
|
+
*
|
|
514
596
|
* @param ts - Timestamp for execution
|
|
597
|
+
*
|
|
515
598
|
* @param flags - Command flags
|
|
599
|
+
*
|
|
516
600
|
* @returns 0 on success, negative AVERROR on error
|
|
517
601
|
*
|
|
518
602
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-graph.js","sourceRoot":"","sources":["../../src/lib/filter-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAO3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,OAAO,WAAY,SAAQ,YAA+B;IAC9D;QACE,KAAK,CAAC,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;OAMG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED;;;;;;OAMG;IACH,IAAI,OAAO;QACT,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QACpC,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1B,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;IAChC,CAAC;IAED,IAAI,UAAU,CAAC,KAAwB;QACrC,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;IACjC,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;IAC/B,CAAC;IAED,IAAI,S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AAE,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -46,6 +46,7 @@ export declare class FilterInOut implements Disposable, NativeWrapper<NativeFilt
|
|
|
46
46
|
* of filter specifications. Each item becomes a node in the list.
|
|
47
47
|
*
|
|
48
48
|
* @param items - Array of filter input/output specifications
|
|
49
|
+
*
|
|
49
50
|
* @returns Head of the linked list, or null if items is empty
|
|
50
51
|
*
|
|
51
52
|
* @example
|
package/dist/lib/filter-inout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-inout.js","sourceRoot":"","sources":["../../src/lib/filter-inout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,OAAO,WAAW;IACd,MAAM,CAAoB;IAElC;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC3C,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"filter-inout.js","sourceRoot":"","sources":["../../src/lib/filter-inout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,OAAO,WAAW;IACd,MAAM,CAAoB;IAElC;QACE,IAAI,CAAC,MAAM,GAAG,IAAI,Q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OAAO,CAAC,IAAI,CAAC;QACzB,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;IAChC,CAAC;CACF"}
|
package/dist/lib/filter.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare class Filter implements NativeWrapper<NativeFilter> {
|
|
|
37
37
|
private native;
|
|
38
38
|
/**
|
|
39
39
|
* @param native - The native filter instance
|
|
40
|
+
*
|
|
40
41
|
* @internal
|
|
41
42
|
*/
|
|
42
43
|
constructor(native: NativeFilter);
|
|
@@ -49,6 +50,7 @@ export declare class Filter implements NativeWrapper<NativeFilter> {
|
|
|
49
50
|
* Direct mapping to avfilter_get_by_name().
|
|
50
51
|
*
|
|
51
52
|
* @param name - Name of the filter
|
|
53
|
+
*
|
|
52
54
|
* @returns Filter instance if found, null otherwise
|
|
53
55
|
*
|
|
54
56
|
* @example
|
package/dist/lib/filter.js
CHANGED
|
@@ -37,6 +37,7 @@ export class Filter {
|
|
|
37
37
|
native;
|
|
38
38
|
/**
|
|
39
39
|
* @param native - The native filter instance
|
|
40
|
+
*
|
|
40
41
|
* @internal
|
|
41
42
|
*/
|
|
42
43
|
constructor(native) {
|
|
@@ -51,6 +52,7 @@ export class Filter {
|
|
|
51
52
|
* Direct mapping to avfilter_get_by_name().
|
|
52
53
|
*
|
|
53
54
|
* @param name - Name of the filter
|
|
55
|
+
*
|
|
54
56
|
* @returns Filter instance if found, null otherwise
|
|
55
57
|
*
|
|
56
58
|
* @example
|
package/dist/lib/filter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../src/lib/filter.ts"],"names":[],"mappings":"AAAA,O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