node-av 6.0.0-beta.3 → 6.0.0-beta.4

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.
@@ -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,7 @@
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
+ export {};
7
+ //# sourceMappingURL=formats.js.map
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-av",
3
- "version": "6.0.0-beta.3",
3
+ "version": "6.0.0-beta.4",
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.3",
88
- "@seydx/node-av-darwin-x64": "^6.0.0-beta.3",
89
- "@seydx/node-av-linux-arm64": "^6.0.0-beta.3",
90
- "@seydx/node-av-linux-x64": "^6.0.0-beta.3",
91
- "@seydx/node-av-win32-arm64-mingw": "^6.0.0-beta.3",
92
- "@seydx/node-av-win32-arm64-msvc": "^6.0.0-beta.3",
93
- "@seydx/node-av-win32-x64-mingw": "^6.0.0-beta.3",
94
- "@seydx/node-av-win32-x64-msvc": "^6.0.0-beta.3"
88
+ "@seydx/node-av-darwin-arm64": "^6.0.0-beta.4",
89
+ "@seydx/node-av-darwin-x64": "^6.0.0-beta.4",
90
+ "@seydx/node-av-linux-arm64": "^6.0.0-beta.4",
91
+ "@seydx/node-av-linux-x64": "^6.0.0-beta.4",
92
+ "@seydx/node-av-win32-arm64-mingw": "^6.0.0-beta.4",
93
+ "@seydx/node-av-win32-arm64-msvc": "^6.0.0-beta.4",
94
+ "@seydx/node-av-win32-x64-mingw": "^6.0.0-beta.4",
95
+ "@seydx/node-av-win32-x64-msvc": "^6.0.0-beta.4"
95
96
  },
96
97
  "devDependencies": {
97
98
  "@stylistic/eslint-plugin": "^5.10.0",