One way to run svtplay-dl on android/termux

Install F-Droid from F-Droid.org
From inside F-Droid, install Termux.
From inside Termux, run:
pkg upgrade
pkg install python
pkg install python-cryptography
pip3 install svtplay-dl
pkg install ffmpeg
#test svtplay-dl
svtplay-dl --version
#optional, enable moving downloaded .mp4 to "normal" android download folder:
termux-setup-storage
mkdir storage/downloads/svtplay_dl
svtplay-dl <svtplay-URL>
mv *.mp4 storage/downloads/svtplay_dl/
exit TERMUX, play *.mp4 in e.g. VLC
This has been tested on
android 10 (should also work on 11),
F-Droid 1.13.1,
Termux 0.117,
svtplay-dl 4.2,
ffmpeg 4.4-1,
Termux app size after these installs: ~673MB


svtplay-dl@termux

OLD OUTDATE 2021: After various updates pulled in through
pip install --upgrade pip
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
If, later, the python cryptography package is to be upgraded, then the
export CRY...=1
has to be re-issued again first. HOWEVER, see below...
OLD OUTdated 2021-10-20: After various updates pulled in through
pkg upgrade ...
Now the export CRY...=1 trick doesn't work anymore :-(
this seems to be related to cryptography.io :
"...For the current release only you can temporarily bypass the requirement to have Rust installed by
setting the CRYPTOGRAPHY_DONT_BUILD_RUST environment variable. Note that this option will be
removed in the next release and not having Rust available will be a hard error".
So, now a Rust compiler is needed, which is installed by
OLD OUTdated 2021-12-14:
pkg install rustc-dev
pkg install rust
export CARGO_BUILD_TARGET=aarch64-linux-android , found here.
Note that this makes the total Termux App install size much larger (~2.1 GB) :-(
Maybe it is possible to de-install rust, once svtplay-dl has been built/installed, but I have not tried.


Comments?