node-av 5.2.4 → 6.0.0-beta.11
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 +15 -1
- package/dist/api/bitstream-filter.d.ts +110 -87
- package/dist/api/bitstream-filter.js +161 -103
- package/dist/api/bitstream-filter.js.map +1 -1
- package/dist/api/decoder.d.ts +177 -15
- package/dist/api/decoder.js +335 -28
- package/dist/api/decoder.js.map +1 -1
- package/dist/api/demuxer.d.ts +30 -24
- package/dist/api/demuxer.js +4 -5
- package/dist/api/demuxer.js.map +1 -1
- package/dist/api/device.js.map +1 -1
- package/dist/api/encoder-pool.d.ts +220 -0
- package/dist/api/encoder-pool.js +285 -0
- package/dist/api/encoder-pool.js.map +1 -0
- package/dist/api/encoder.d.ts +194 -7
- package/dist/api/encoder.js +431 -71
- package/dist/api/encoder.js.map +1 -1
- package/dist/api/filter-complex.d.ts +2 -1
- package/dist/api/filter-complex.js +11 -7
- package/dist/api/filter-complex.js.map +1 -1
- package/dist/api/filter-presets.d.ts +130 -654
- package/dist/api/filter-presets.js +180 -858
- package/dist/api/filter-presets.js.map +1 -1
- package/dist/api/filter.js +12 -9
- package/dist/api/filter.js.map +1 -1
- package/dist/api/fmp4-stream.js +1 -1
- package/dist/api/fmp4-stream.js.map +1 -1
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.js +8 -8
- package/dist/api/index.js.map +1 -1
- package/dist/api/muxer.d.ts +43 -15
- package/dist/api/muxer.js +79 -27
- 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/api/rtp-stream.d.ts +14 -11
- package/dist/api/rtp-stream.js +23 -48
- package/dist/api/rtp-stream.js.map +1 -1
- package/dist/api/scaler.d.ts +431 -0
- package/dist/api/scaler.js +620 -0
- package/dist/api/scaler.js.map +1 -0
- package/dist/api/utilities/async-queue.d.ts +27 -1
- package/dist/api/utilities/async-queue.js +38 -3
- package/dist/api/utilities/async-queue.js.map +1 -1
- package/dist/api/utilities/codec-format.d.ts +87 -0
- package/dist/api/utilities/codec-format.js +117 -0
- package/dist/api/utilities/codec-format.js.map +1 -0
- package/dist/api/utilities/electron-shared-texture.d.ts +41 -1
- package/dist/api/utilities/electron-shared-texture.js +41 -4
- package/dist/api/utilities/electron-shared-texture.js.map +1 -1
- package/dist/api/utilities/index.d.ts +2 -1
- package/dist/api/utilities/index.js +2 -0
- package/dist/api/utilities/index.js.map +1 -1
- package/dist/api/webrtc-stream.d.ts +0 -1
- package/dist/api/webrtc-stream.js +0 -1
- package/dist/api/webrtc-stream.js.map +1 -1
- package/dist/constants/bsf-options.d.ts +333 -0
- package/dist/constants/bsf-options.js +7 -0
- package/dist/constants/bsf-options.js.map +1 -0
- package/dist/constants/constants.d.ts +109 -0
- package/dist/constants/constants.js +110 -0
- package/dist/constants/constants.js.map +1 -1
- package/dist/constants/decoders.d.ts +636 -618
- package/dist/constants/decoders.js +1 -3
- package/dist/constants/decoders.js.map +1 -1
- package/dist/constants/encoders.d.ts +300 -282
- package/dist/constants/encoders.js +0 -2
- package/dist/constants/encoders.js.map +1 -1
- package/dist/constants/filter-options.d.ts +10915 -0
- package/dist/constants/filter-options.js +7 -0
- package/dist/constants/filter-options.js.map +1 -0
- package/dist/constants/format-options.d.ts +3056 -0
- package/dist/constants/format-options.js +7 -0
- package/dist/constants/format-options.js.map +1 -0
- 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 +5 -0
- package/dist/constants/options.d.ts +4073 -0
- package/dist/constants/options.js +7 -0
- package/dist/constants/options.js.map +1 -0
- package/dist/lib/binding.d.ts +5 -1
- package/dist/lib/binding.js.map +1 -1
- package/dist/lib/codec.d.ts +36 -5
- package/dist/lib/codec.js +37 -4
- package/dist/lib/codec.js.map +1 -1
- package/dist/lib/dictionary.d.ts +1 -1
- package/dist/lib/dictionary.js.map +1 -1
- package/dist/lib/error.d.ts +69 -0
- package/dist/lib/error.js +92 -0
- package/dist/lib/error.js.map +1 -1
- package/dist/lib/frame.d.ts +55 -3
- package/dist/lib/frame.js +59 -3
- package/dist/lib/frame.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/native-types.d.ts +68 -0
- package/dist/lib/packet.d.ts +22 -3
- package/dist/lib/packet.js +24 -3
- package/dist/lib/packet.js.map +1 -1
- package/dist/lib/utilities.d.ts +45 -0
- package/dist/lib/utilities.js +49 -0
- package/dist/lib/utilities.js.map +1 -1
- package/dist/webrtc/index.d.ts +3 -0
- package/dist/webrtc/index.js +7 -0
- package/dist/webrtc/index.js.map +1 -0
- package/package.json +34 -23
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-options.js","sourceRoot":"","sources":["../../src/constants/format-options.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -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,3 +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 './bsf-options.js';
|
|
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';
|