node-av 6.1.1 → 6.2.0-beta.10
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 +29 -0
- package/dist/api/audio-frame-buffer.d.ts +73 -1
- package/dist/api/audio-frame-buffer.js +127 -1
- package/dist/api/audio-frame-buffer.js.map +1 -1
- package/dist/api/bitstream-filter.d.ts +82 -4
- package/dist/api/bitstream-filter.js +197 -100
- package/dist/api/bitstream-filter.js.map +1 -1
- package/dist/api/decoder.d.ts +5 -0
- package/dist/api/decoder.js +12 -5
- package/dist/api/decoder.js.map +1 -1
- package/dist/api/demuxer.d.ts +10 -1
- package/dist/api/demuxer.js +114 -31
- package/dist/api/demuxer.js.map +1 -1
- package/dist/api/encoder-pool.d.ts +43 -1
- package/dist/api/encoder-pool.js +113 -9
- package/dist/api/encoder-pool.js.map +1 -1
- package/dist/api/encoder.d.ts +2 -0
- package/dist/api/encoder.js +105 -41
- package/dist/api/encoder.js.map +1 -1
- package/dist/api/filter-complex.d.ts +16 -10
- package/dist/api/filter-complex.js +129 -81
- package/dist/api/filter-complex.js.map +1 -1
- package/dist/api/filter-presets.d.ts +15 -1
- package/dist/api/filter-presets.js +23 -5
- package/dist/api/filter-presets.js.map +1 -1
- package/dist/api/filter.js +15 -6
- package/dist/api/filter.js.map +1 -1
- package/dist/api/fmp4-stream.d.ts +211 -4
- package/dist/api/fmp4-stream.js +550 -84
- package/dist/api/fmp4-stream.js.map +1 -1
- package/dist/api/hardware.js +4 -3
- package/dist/api/hardware.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/io-stream.js +61 -5
- package/dist/api/io-stream.js.map +1 -1
- package/dist/api/muxer.d.ts +13 -0
- package/dist/api/muxer.js +82 -19
- package/dist/api/muxer.js.map +1 -1
- package/dist/api/pipeline.d.ts +122 -0
- package/dist/api/pipeline.js +25 -7
- package/dist/api/pipeline.js.map +1 -1
- package/dist/api/rtp-stream.d.ts +146 -1
- package/dist/api/rtp-stream.js +533 -125
- package/dist/api/rtp-stream.js.map +1 -1
- package/dist/api/scaler.d.ts +102 -16
- package/dist/api/scaler.js +316 -106
- package/dist/api/scaler.js.map +1 -1
- package/dist/api/types.d.ts +17 -0
- package/dist/api/types.js +2 -0
- package/dist/api/types.js.map +1 -0
- package/dist/api/utilities/async-queue.d.ts +3 -0
- package/dist/api/utilities/async-queue.js +8 -0
- package/dist/api/utilities/async-queue.js.map +1 -1
- package/dist/api/webrtc-stream.d.ts +17 -10
- package/dist/api/webrtc-stream.js +117 -24
- package/dist/api/webrtc-stream.js.map +1 -1
- package/dist/api/whisper.d.ts +2 -0
- package/dist/api/whisper.js +63 -23
- package/dist/api/whisper.js.map +1 -1
- package/dist/ffmpeg/install.js +115 -29
- package/dist/ffmpeg/install.js.map +1 -1
- package/dist/lib/binding.d.ts +1 -0
- package/dist/lib/binding.js.map +1 -1
- package/dist/lib/codec-context.d.ts +0 -2
- package/dist/lib/codec-context.js +4 -22
- package/dist/lib/codec-context.js.map +1 -1
- package/dist/lib/filter-context.d.ts +0 -1
- package/dist/lib/filter-context.js +2 -11
- package/dist/lib/filter-context.js.map +1 -1
- package/dist/lib/format-context.d.ts +45 -4
- package/dist/lib/format-context.js +50 -16
- package/dist/lib/format-context.js.map +1 -1
- package/dist/lib/frame.d.ts +12 -12
- package/dist/lib/frame.js +13 -20
- package/dist/lib/frame.js.map +1 -1
- package/dist/lib/hardware-frames-context.d.ts +0 -1
- package/dist/lib/hardware-frames-context.js +2 -8
- package/dist/lib/hardware-frames-context.js.map +1 -1
- package/dist/lib/native-types.d.ts +2 -2
- package/dist/lib/option.d.ts +26 -0
- package/dist/lib/option.js +42 -18
- package/dist/lib/option.js.map +1 -1
- package/dist/lib/packet.d.ts +7 -1
- package/dist/lib/packet.js +9 -2
- package/dist/lib/packet.js.map +1 -1
- package/dist/lib/stream.d.ts +3 -4
- package/dist/lib/stream.js +17 -24
- package/dist/lib/stream.js.map +1 -1
- package/dist/webrtc/index.d.ts +1 -0
- package/dist/webrtc/index.js.map +1 -1
- package/install/check.js +26 -63
- package/package.json +36 -19
- package/build_mac_local.sh +0 -69
package/build_mac_local.sh
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e
|
|
3
|
-
|
|
4
|
-
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
5
|
-
BUILDER_DIR="$SCRIPT_DIR/externals/jellyfin-ffmpeg/builder"
|
|
6
|
-
BUILD_DIR="$BUILDER_DIR/build"
|
|
7
|
-
|
|
8
|
-
echo ""
|
|
9
|
-
echo "=== FFmpeg Local Build ==="
|
|
10
|
-
echo ""
|
|
11
|
-
echo " 1) Full build (clean + dependencies + FFmpeg)"
|
|
12
|
-
echo " 2) FFmpeg only (skip dependency builds)"
|
|
13
|
-
echo ""
|
|
14
|
-
read -rp "Choose [1/2]: " choice
|
|
15
|
-
|
|
16
|
-
case "$choice" in
|
|
17
|
-
1)
|
|
18
|
-
echo ""
|
|
19
|
-
echo "=> Full build selected. Cleaning build + prefix directories..."
|
|
20
|
-
rm -rf "$BUILD_DIR"
|
|
21
|
-
sudo rm -rf /opt/ffbuild/prefix
|
|
22
|
-
SKIP_BUILD=""
|
|
23
|
-
;;
|
|
24
|
-
2)
|
|
25
|
-
echo ""
|
|
26
|
-
echo "=> FFmpeg-only build selected. Skipping dependencies..."
|
|
27
|
-
SKIP_BUILD="--skip-build"
|
|
28
|
-
;;
|
|
29
|
-
*)
|
|
30
|
-
echo "Invalid choice."
|
|
31
|
-
exit 1
|
|
32
|
-
;;
|
|
33
|
-
esac
|
|
34
|
-
|
|
35
|
-
# Ensure submodules are initialized
|
|
36
|
-
if [ ! -f "$SCRIPT_DIR/externals/jellyfin-ffmpeg/configure" ]; then
|
|
37
|
-
echo "=> Initializing git submodules..."
|
|
38
|
-
git -C "$SCRIPT_DIR" submodule update --init --recursive
|
|
39
|
-
fi
|
|
40
|
-
|
|
41
|
-
# Log everything to terminal and file
|
|
42
|
-
LOG_FILE="$SCRIPT_DIR/ffmpeg_build.log"
|
|
43
|
-
exec > >(tee "$LOG_FILE") 2>&1
|
|
44
|
-
|
|
45
|
-
# Ensure /opt/ffbuild exists with correct permissions
|
|
46
|
-
sudo mkdir -p /opt/ffbuild/prefix
|
|
47
|
-
sudo chown -R "$(whoami):staff" /opt/ffbuild
|
|
48
|
-
sudo chmod -R 755 /opt/ffbuild
|
|
49
|
-
|
|
50
|
-
cd "$SCRIPT_DIR"
|
|
51
|
-
|
|
52
|
-
# Apply FFmpeg patches (skips if already applied)
|
|
53
|
-
node scripts/patch-ffmpeg.js
|
|
54
|
-
|
|
55
|
-
cd "$BUILDER_DIR"
|
|
56
|
-
|
|
57
|
-
# Run Jellyfin build script
|
|
58
|
-
./buildmac.sh arm64 $SKIP_BUILD
|
|
59
|
-
|
|
60
|
-
# The build script uses /ffbuild/prefix but we need /opt/ffbuild/prefix
|
|
61
|
-
cd ..
|
|
62
|
-
make install DESTDIR="" prefix="/opt/ffbuild/prefix"
|
|
63
|
-
|
|
64
|
-
# Fix permissions after install
|
|
65
|
-
sudo chown -R "$(whoami):staff" /opt/ffbuild
|
|
66
|
-
|
|
67
|
-
cd "$SCRIPT_DIR"
|
|
68
|
-
|
|
69
|
-
# npm run build:native
|