node-av 6.0.0-beta.3 → 6.0.0-beta.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/dist/api/bitstream-filter.d.ts +101 -83
- package/dist/api/bitstream-filter.js +157 -100
- package/dist/api/bitstream-filter.js.map +1 -1
- package/dist/api/demuxer.d.ts +12 -12
- package/dist/api/demuxer.js.map +1 -1
- package/dist/api/filter-complex.d.ts +2 -1
- package/dist/api/filter-complex.js +3 -1
- package/dist/api/filter-complex.js.map +1 -1
- package/dist/api/filter-presets.d.ts +107 -0
- package/dist/api/filter-presets.js +115 -0
- package/dist/api/filter-presets.js.map +1 -1
- package/dist/api/index.d.ts +3 -2
- package/dist/api/index.js +4 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/muxer.d.ts +11 -8
- package/dist/api/muxer.js +27 -0
- package/dist/api/muxer.js.map +1 -1
- package/dist/api/pipeline.d.ts +50 -0
- package/dist/api/pipeline.js +138 -22
- package/dist/api/pipeline.js.map +1 -1
- package/dist/api/probe.d.ts +128 -0
- package/dist/api/probe.js +227 -0
- package/dist/api/probe.js.map +1 -0
- package/dist/constants/bsf-options.d.ts +7 -0
- package/dist/constants/format-options.d.ts +511 -10
- package/dist/constants/formats.d.ts +18 -0
- package/dist/constants/formats.js +7 -0
- package/dist/constants/formats.js.map +1 -0
- package/dist/constants/index.d.ts +3 -2
- package/dist/lib/error.d.ts +69 -0
- package/dist/lib/error.js +92 -0
- package/dist/lib/error.js.map +1 -1
- package/package.json +11 -10
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated FFmpeg muxer/demuxer format names.
|
|
3
|
+
* Generated from FFmpeg libavformat/libavdevice (see scripts/generate-formats.js).
|
|
4
|
+
* DO NOT EDIT MANUALLY.
|
|
5
|
+
*/
|
|
6
|
+
import type { DemuxerPrivateOptionsMap, FormatContextOptions, MuxerPrivateOptionsMap, UnknownFormatOptions } from './format-options.js';
|
|
7
|
+
export type MuxerFormat = '3g2' | '3gp' | 'a64' | 'ac3' | 'ac4' | 'adts' | 'adx' | 'aea' | 'aiff' | 'alp' | 'alsa' | 'amr' | 'amv' | 'apm' | 'apng' | 'aptx' | 'aptx_hd' | 'apv' | 'argo_asf' | 'argo_cvg' | 'asf' | 'asf_stream' | 'ass' | 'ast' | 'au' | 'audiotoolbox' | 'avi' | 'avif' | 'avm2' | 'avs2' | 'avs3' | 'bit' | 'caca' | 'caf' | 'cavsvideo' | 'chromaprint' | 'codec2' | 'codec2raw' | 'crc' | 'dash' | 'data' | 'daud' | 'decklink' | 'dfpwm' | 'dirac' | 'dnxhd' | 'dts' | 'dv' | 'dvd' | 'eac3' | 'evc' | 'f4v' | 'fbdev' | 'ffmetadata' | 'fifo' | 'fifo_test' | 'film_cpk' | 'filmstrip' | 'fits' | 'flac' | 'flv' | 'framecrc' | 'framehash' | 'framemd5' | 'g722' | 'g723_1' | 'g726' | 'g726le' | 'gif' | 'gsm' | 'gxf' | 'h261' | 'h263' | 'h264' | 'hash' | 'hds' | 'hevc' | 'hls' | 'iamf' | 'ico' | 'ilbc' | 'image2' | 'image2pipe' | 'ipod' | 'ircam' | 'ismv' | 'ivf' | 'jacosub' | 'kvag' | 'latm' | 'lc3' | 'lrc' | 'm4v' | 'matroska' | 'mcc' | 'md5' | 'microdvd' | 'mjpeg' | 'mkvtimestamp_v2' | 'mlp' | 'mmf' | 'mov' | 'mp2' | 'mp3' | 'mp4' | 'mpeg' | 'mpeg1video' | 'mpeg2video' | 'mpegts' | 'mpjpeg' | 'mxf' | 'mxf_d10' | 'mxf_opatom' | 'null' | 'nut' | 'obu' | 'oga' | 'ogg' | 'ogv' | 'oma' | 'opus' | 'oss' | 'pdv' | 'psp' | 'pulse' | 'rawvideo' | 'rcwt' | 'rm' | 'roq' | 'rso' | 'rtp' | 'rtp_mpegts' | 'rtsp' | 'sap' | 'sbc' | 'scc' | 'segment' | 'smjpeg' | 'smoothstreaming' | 'sndio' | 'sox' | 'spdif' | 'spx' | 'srt' | 'ssegment' | 'stream_segment' | 'streamhash' | 'sup' | 'svcd' | 'swf' | 'tee' | 'truehd' | 'tta' | 'ttml' | 'uncodedframecrc' | 'v4l2' | 'vc1' | 'vc1test' | 'vcd' | 'video4linux2' | 'vob' | 'voc' | 'vvc' | 'w64' | 'wav' | 'webm' | 'webm_chunk' | 'webm_dash_manifest' | 'webp' | 'webvtt' | 'whip' | 'wsaud' | 'wtv' | 'wv' | 'xv' | 'yuv4mpegpipe';
|
|
8
|
+
export type DemuxerFormat = '3dostr' | '3g2' | '3gp' | '4xm' | 'aa' | 'aac' | 'aax' | 'ac3' | 'ac4' | 'ace' | 'acm' | 'act' | 'adf' | 'adp' | 'ads' | 'adx' | 'aea' | 'afc' | 'aiff' | 'aix' | 'alias_pix' | 'alp' | 'alsa' | 'amr' | 'amrnb' | 'amrwb' | 'android_camera' | 'anm' | 'apac' | 'apc' | 'ape' | 'apm' | 'apng' | 'aptx' | 'aptx_hd' | 'apv' | 'aqtitle' | 'argo_asf' | 'argo_brp' | 'argo_cvg' | 'asf' | 'asf_o' | 'ass' | 'ast' | 'au' | 'av1' | 'avfoundation' | 'avi' | 'avisynth' | 'avr' | 'avs' | 'bethsoftvid' | 'bfi' | 'bfstm' | 'bin' | 'bink' | 'binka' | 'bit' | 'bitpacked' | 'bmv' | 'boa' | 'bonk' | 'brender_pix' | 'brstm' | 'c93' | 'caf' | 'cdg' | 'cdxl' | 'cine' | 'codec2' | 'codec2raw' | 'concat' | 'dash' | 'data' | 'daud' | 'dcstr' | 'decklink' | 'derf' | 'dfa' | 'dfpwm' | 'dhav' | 'dsf' | 'dshow' | 'dsicin' | 'dss' | 'dts' | 'dtshd' | 'dv' | 'dvdvideo' | 'dxa' | 'ea' | 'ea_cdata' | 'eac3' | 'epaf' | 'evc' | 'fbdev' | 'ffmetadata' | 'film_cpk' | 'filmstrip' | 'fits' | 'flac' | 'flic' | 'flv' | 'frm' | 'fsb' | 'fwse' | 'g722' | 'g723_1' | 'g726' | 'g726le' | 'g728' | 'g729' | 'gdigrab' | 'gdv' | 'genh' | 'gif' | 'gsm' | 'gxf' | 'hca' | 'hcom' | 'hls' | 'hnm' | 'hxvs' | 'iamf' | 'ico' | 'idcin' | 'idf' | 'iec61883' | 'iff' | 'ifv' | 'ilbc' | 'image2' | 'image2pipe' | 'imf' | 'ingenient' | 'ipmovie' | 'ipu' | 'ircam' | 'iss' | 'iv8' | 'ivf' | 'ivr' | 'jack' | 'jacosub' | 'jpegxl_anim' | 'jv' | 'kmsgrab' | 'kux' | 'kvag' | 'laf' | 'lavfi' | 'lc3' | 'libcdio' | 'libdc1394' | 'libgme' | 'libmodplug' | 'libopenmpt' | 'live_flv' | 'lmlm4' | 'loas' | 'lrc' | 'luodat' | 'lvf' | 'lxf' | 'm4a' | 'matroska' | 'mca' | 'mcc' | 'mgsts' | 'microdvd' | 'mj2' | 'mlp' | 'mlv' | 'mm' | 'mmf' | 'mods' | 'moflex' | 'mov' | 'mp3' | 'mp4' | 'mpc' | 'mpc8' | 'mpeg' | 'mpegts' | 'mpegtsraw' | 'mpjpeg' | 'mpl2' | 'mpsub' | 'msf' | 'msnwctcp' | 'msp' | 'mtaf' | 'mtv' | 'musx' | 'mv' | 'mvi' | 'mxf' | 'mxg' | 'nc' | 'nistsphere' | 'nsp' | 'nsv' | 'nut' | 'nuv' | 'obu' | 'ogg' | 'oma' | 'openal' | 'osq' | 'oss' | 'paf' | 'pdv' | 'pjs' | 'pmp' | 'pp_bnk' | 'psxstr' | 'pulse' | 'pva' | 'pvf' | 'qcp' | 'qoa' | 'r3d' | 'rawvideo' | 'rcwt' | 'rdt' | 'realtext' | 'redspark' | 'rka' | 'rl2' | 'rm' | 'roq' | 'rpl' | 'rsd' | 'rso' | 'rtp' | 'rtsp' | 's337m' | 'sami' | 'sap' | 'sbc' | 'sbg' | 'scc' | 'scd' | 'sdns' | 'sdp' | 'sdr2' | 'sds' | 'sdx' | 'ser' | 'sga' | 'shn' | 'siff' | 'simbiosis_imx' | 'sln' | 'smjpeg' | 'smk' | 'smush' | 'sndio' | 'sol' | 'sox' | 'spdif' | 'srt' | 'stl' | 'subviewer' | 'subviewer1' | 'sup' | 'svag' | 'svs' | 'swf' | 'tak' | 'tedcaptions' | 'thp' | 'tiertexseq' | 'tmv' | 'truehd' | 'tta' | 'tty' | 'txd' | 'ty' | 'usm' | 'v210' | 'v210x' | 'v4l2' | 'vag' | 'vapoursynth' | 'vc1test' | 'vfwcap' | 'video4linux2' | 'vividas' | 'vivo' | 'vmd' | 'vobsub' | 'voc' | 'vpk' | 'vplayer' | 'vqf' | 'w64' | 'wady' | 'wav' | 'wavarc' | 'wc3movie' | 'webm' | 'webm_dash_manifest' | 'webp_anim' | 'webvtt' | 'wsaud' | 'wsd' | 'wsvqa' | 'wtv' | 'wv' | 'wve' | 'x11grab' | 'xa' | 'xbin' | 'xmd' | 'xmv' | 'xvag' | 'xwma' | 'yop' | 'yuv4mpegpipe';
|
|
9
|
+
/**
|
|
10
|
+
* Options for a muxer: generic AVFormatContext options + the format's private
|
|
11
|
+
* options (when the format name is known) + an open bag for protocol/other keys.
|
|
12
|
+
*/
|
|
13
|
+
export type MuxerOptionsFor<F> = FormatContextOptions & (F extends keyof MuxerPrivateOptionsMap ? MuxerPrivateOptionsMap[F] : {}) & UnknownFormatOptions;
|
|
14
|
+
/**
|
|
15
|
+
* Options for a demuxer: generic AVFormatContext options + the format's private
|
|
16
|
+
* options (when the format name is known) + an open bag for protocol/other keys.
|
|
17
|
+
*/
|
|
18
|
+
export type DemuxerOptionsFor<F> = FormatContextOptions & (F extends keyof DemuxerPrivateOptionsMap ? DemuxerPrivateOptionsMap[F] : {}) & UnknownFormatOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formats.js","sourceRoot":"","sources":["../../src/constants/formats.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -3,7 +3,8 @@ export * from './constants.js';
|
|
|
3
3
|
export * from './decoders.js';
|
|
4
4
|
export * from './encoders.js';
|
|
5
5
|
export * from './hardware.js';
|
|
6
|
-
export type * from './options.js';
|
|
7
|
-
export type * from './format-options.js';
|
|
8
6
|
export type * from './bsf-options.js';
|
|
9
7
|
export type * from './filter-options.js';
|
|
8
|
+
export type * from './format-options.js';
|
|
9
|
+
export type * from './formats.js';
|
|
10
|
+
export type * from './options.js';
|
package/dist/lib/error.d.ts
CHANGED
|
@@ -231,6 +231,75 @@ export declare class FFmpegError extends Error implements NativeWrapper<NativeFF
|
|
|
231
231
|
* Human-readable description of the error.
|
|
232
232
|
*/
|
|
233
233
|
get message(): string;
|
|
234
|
+
/**
|
|
235
|
+
* Whether this is EAGAIN (resource temporarily unavailable).
|
|
236
|
+
*
|
|
237
|
+
* In codec/filter contexts this means "output not available yet, feed more
|
|
238
|
+
* input" rather than a hard failure.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```typescript
|
|
242
|
+
* const error = FFmpegError.fromCode(ret);
|
|
243
|
+
* if (error?.isEAGAIN) {
|
|
244
|
+
* // send more input, then retry
|
|
245
|
+
* }
|
|
246
|
+
* ```
|
|
247
|
+
*/
|
|
248
|
+
get isEAGAIN(): boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Whether this is the end of stream (AVERROR_EOF).
|
|
251
|
+
*/
|
|
252
|
+
get isEOF(): boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Whether this is invalid data found while processing input (AVERROR_INVALIDDATA).
|
|
255
|
+
*/
|
|
256
|
+
get isInvalidData(): boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Whether this is EINVAL (invalid argument).
|
|
259
|
+
*/
|
|
260
|
+
get isEINVAL(): boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Whether this is ENOMEM (out of memory).
|
|
263
|
+
*/
|
|
264
|
+
get isENOMEM(): boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Whether this is ENOENT (no such file or directory).
|
|
267
|
+
*/
|
|
268
|
+
get isENOENT(): boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Whether this is EACCES (permission denied).
|
|
271
|
+
*/
|
|
272
|
+
get isEACCES(): boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Whether this is EIO (I/O error).
|
|
275
|
+
*/
|
|
276
|
+
get isEIO(): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Whether this is EPIPE (broken pipe).
|
|
279
|
+
*/
|
|
280
|
+
get isEPIPE(): boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Whether this is the immediate-exit request (AVERROR_EXIT).
|
|
283
|
+
*/
|
|
284
|
+
get isExit(): boolean;
|
|
285
|
+
/**
|
|
286
|
+
* Check if this error matches a specific code.
|
|
287
|
+
*
|
|
288
|
+
* @param errorCode - FFmpeg error code to compare against
|
|
289
|
+
*
|
|
290
|
+
* @returns True if this error's code matches
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* ```typescript
|
|
294
|
+
* import { AVERROR_DECODER_NOT_FOUND } from 'node-av/constants';
|
|
295
|
+
*
|
|
296
|
+
* const error = FFmpegError.fromCode(ret);
|
|
297
|
+
* if (error?.is(AVERROR_DECODER_NOT_FOUND)) {
|
|
298
|
+
* // handle missing decoder
|
|
299
|
+
* }
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
302
|
+
is(errorCode: number): boolean;
|
|
234
303
|
/**
|
|
235
304
|
* Get the underlying native FFmpegError object.
|
|
236
305
|
*
|
package/dist/lib/error.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AVERROR_EOF, AVERROR_EXIT, AVERROR_INVALIDDATA } from '../constants/constants.js';
|
|
1
2
|
import { bindings } from './binding.js';
|
|
2
3
|
/**
|
|
3
4
|
* POSIX error names that can be converted to FFmpeg error codes.
|
|
@@ -289,6 +290,97 @@ export class FFmpegError extends Error {
|
|
|
289
290
|
get message() {
|
|
290
291
|
return this.native.message;
|
|
291
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Whether this is EAGAIN (resource temporarily unavailable).
|
|
295
|
+
*
|
|
296
|
+
* In codec/filter contexts this means "output not available yet, feed more
|
|
297
|
+
* input" rather than a hard failure.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* ```typescript
|
|
301
|
+
* const error = FFmpegError.fromCode(ret);
|
|
302
|
+
* if (error?.isEAGAIN) {
|
|
303
|
+
* // send more input, then retry
|
|
304
|
+
* }
|
|
305
|
+
* ```
|
|
306
|
+
*/
|
|
307
|
+
get isEAGAIN() {
|
|
308
|
+
return this.native.code === AVERROR_EAGAIN;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Whether this is the end of stream (AVERROR_EOF).
|
|
312
|
+
*/
|
|
313
|
+
get isEOF() {
|
|
314
|
+
return this.native.code === AVERROR_EOF;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Whether this is invalid data found while processing input (AVERROR_INVALIDDATA).
|
|
318
|
+
*/
|
|
319
|
+
get isInvalidData() {
|
|
320
|
+
return this.native.code === AVERROR_INVALIDDATA;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Whether this is EINVAL (invalid argument).
|
|
324
|
+
*/
|
|
325
|
+
get isEINVAL() {
|
|
326
|
+
return this.native.code === AVERROR_EINVAL;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Whether this is ENOMEM (out of memory).
|
|
330
|
+
*/
|
|
331
|
+
get isENOMEM() {
|
|
332
|
+
return this.native.code === AVERROR_ENOMEM;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Whether this is ENOENT (no such file or directory).
|
|
336
|
+
*/
|
|
337
|
+
get isENOENT() {
|
|
338
|
+
return this.native.code === AVERROR_ENOENT;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Whether this is EACCES (permission denied).
|
|
342
|
+
*/
|
|
343
|
+
get isEACCES() {
|
|
344
|
+
return this.native.code === AVERROR_EACCES;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Whether this is EIO (I/O error).
|
|
348
|
+
*/
|
|
349
|
+
get isEIO() {
|
|
350
|
+
return this.native.code === AVERROR_EIO;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Whether this is EPIPE (broken pipe).
|
|
354
|
+
*/
|
|
355
|
+
get isEPIPE() {
|
|
356
|
+
return this.native.code === AVERROR_EPIPE;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Whether this is the immediate-exit request (AVERROR_EXIT).
|
|
360
|
+
*/
|
|
361
|
+
get isExit() {
|
|
362
|
+
return this.native.code === AVERROR_EXIT;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Check if this error matches a specific code.
|
|
366
|
+
*
|
|
367
|
+
* @param errorCode - FFmpeg error code to compare against
|
|
368
|
+
*
|
|
369
|
+
* @returns True if this error's code matches
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* ```typescript
|
|
373
|
+
* import { AVERROR_DECODER_NOT_FOUND } from 'node-av/constants';
|
|
374
|
+
*
|
|
375
|
+
* const error = FFmpegError.fromCode(ret);
|
|
376
|
+
* if (error?.is(AVERROR_DECODER_NOT_FOUND)) {
|
|
377
|
+
* // handle missing decoder
|
|
378
|
+
* }
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
is(errorCode) {
|
|
382
|
+
return this.native.code === errorCode;
|
|
383
|
+
}
|
|
292
384
|
/**
|
|
293
385
|
* Get the underlying native FFmpegError object.
|
|
294
386
|
*
|
package/dist/lib/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/lib/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,UAiBX;AAjBD,WAAY,UAAU;IACpB,+BAAiB,C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CAAC,IAAI,KAAK,SAAS,CAAC;IACxC,CAAC;IAED;;;;;;OAMG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,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.5",
|
|
4
4
|
"description": "FFmpeg bindings for Node.js",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/node-av)",
|
|
6
6
|
"type": "module",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"docs:build": "npm run predocs && rimraf docs/.vitepress/dist && vitepress build docs && cpy --flat docs/logo.png docs/.vitepress/dist",
|
|
52
52
|
"docs:preview": "npm run predocs && vitepress preview docs --port 5174",
|
|
53
53
|
"format": "prettier --write src/ --write test/ --write scripts/ --write examples/ --write benchmarks/ --ignore-unknown --no-error-on-unmatched-pattern",
|
|
54
|
-
"generate": "npm run patch:ffmpeg && npm run generate:ffmpeg-version && npm run generate:constants && npm run generate:encoders && npm run generate:decoders && npm run generate:hardware && npm run generate:layouts && npm run generate:options && npm run generate:format-options && npm run generate:bsf-options && npm run generate:filter-options",
|
|
54
|
+
"generate": "npm run patch:ffmpeg && npm run generate:ffmpeg-version && npm run generate:constants && npm run generate:encoders && npm run generate:decoders && npm run generate:hardware && npm run generate:layouts && npm run generate:options && npm run generate:format-options && npm run generate:formats && npm run generate:bsf-options && npm run generate:filter-options",
|
|
55
55
|
"generate:ffmpeg-version": "node scripts/generate-ffmpeg-version.js",
|
|
56
56
|
"generate:constants": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-constants.js && prettier --write src/constants/constants.ts",
|
|
57
57
|
"generate:encoders": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-encoders.js --with-patches && prettier --write src/constants/encoders.ts",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"generate:layouts": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-channel-layouts.js && prettier --write src/constants/channel-layouts.ts",
|
|
61
61
|
"generate:options": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-options-source.js && prettier --write src/constants/options.ts",
|
|
62
62
|
"generate:format-options": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-format-options.js && prettier --write src/constants/format-options.ts",
|
|
63
|
+
"generate:formats": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-formats.js && prettier --write src/constants/formats.ts",
|
|
63
64
|
"generate:bsf-options": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-bsf-options.js && prettier --write src/constants/bsf-options.ts",
|
|
64
65
|
"generate:filter-options": "cross-env FFMPEG_DEV_PATH=externals/jellyfin-ffmpeg node scripts/generate-filter-options.js && prettier --write src/constants/filter-options.ts",
|
|
65
66
|
"install": "node install/check.js",
|
|
@@ -84,14 +85,14 @@
|
|
|
84
85
|
},
|
|
85
86
|
"optionalDependencies": {
|
|
86
87
|
"werift": "^0.23.0",
|
|
87
|
-
"@seydx/node-av-darwin-arm64": "^6.0.0-beta.
|
|
88
|
-
"@seydx/node-av-darwin-x64": "^6.0.0-beta.
|
|
89
|
-
"@seydx/node-av-linux-arm64": "^6.0.0-beta.
|
|
90
|
-
"@seydx/node-av-linux-x64": "^6.0.0-beta.
|
|
91
|
-
"@seydx/node-av-win32-arm64-mingw": "^6.0.0-beta.
|
|
92
|
-
"@seydx/node-av-win32-arm64-msvc": "^6.0.0-beta.
|
|
93
|
-
"@seydx/node-av-win32-x64-mingw": "^6.0.0-beta.
|
|
94
|
-
"@seydx/node-av-win32-x64-msvc": "^6.0.0-beta.
|
|
88
|
+
"@seydx/node-av-darwin-arm64": "^6.0.0-beta.5",
|
|
89
|
+
"@seydx/node-av-darwin-x64": "^6.0.0-beta.5",
|
|
90
|
+
"@seydx/node-av-linux-arm64": "^6.0.0-beta.5",
|
|
91
|
+
"@seydx/node-av-linux-x64": "^6.0.0-beta.5",
|
|
92
|
+
"@seydx/node-av-win32-arm64-mingw": "^6.0.0-beta.5",
|
|
93
|
+
"@seydx/node-av-win32-arm64-msvc": "^6.0.0-beta.5",
|
|
94
|
+
"@seydx/node-av-win32-x64-mingw": "^6.0.0-beta.5",
|
|
95
|
+
"@seydx/node-av-win32-x64-msvc": "^6.0.0-beta.5"
|
|
95
96
|
},
|
|
96
97
|
"devDependencies": {
|
|
97
98
|
"@stylistic/eslint-plugin": "^5.10.0",
|