nilaoda / N_m3u8DL-RE

Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
MIT License
4.77k stars 499 forks source link

在Termux中运行N_m3u8DL-RE | Run N_m3u8DL-RE on Termux (Android) #516

Open nilaoda opened 3 days ago

nilaoda commented 3 days ago

安装 Termux Install Termux

https://github.com/termux/termux-app/releases/download/v0.119.0-beta.1/termux-app_v0.119.0-beta.1+apt-android-7-github-debug_universal.apk

获取文件访问权限 Termux Get Storage Access

termux-setup-storage

安装 ffmpeg Install ffmpeg

pkg install -y ffmpeg

下载最新构建 Download latest build

download android-bionic-arm64 or android-bionic-x64

https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/12088125167

复制文件到家目录 Copy latest build to $HOME

cd ~/ && mkdir test && cd test
cp ~/storage/downloads/N_m3u8DL-RE .
chmod +x ./N_m3u8DL-RE

复制openssl库文件 Copy openssl library

cd ~/test
cp /data/data/com.termux/files/usr/lib/libssl.so .
cp /data/data/com.termux/files/usr/lib/libcrypto.so .

运行 Run

./N_m3u8DL-RE http://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8

compile ref: android-bionic.md