N_m3u8DL-RE icon indicating copy to clipboard operation
N_m3u8DL-RE copied to clipboard

[Test] Run N_m3u8DL-RE on Android-arm64 with Termux

Open nilaoda opened this issue 2 years ago • 19 comments

Install Termux

  • https://github.com/termux/termux-app/releases/download/v0.118.0/termux-app_v0.118.0+github-debug_universal.apk

Termux Get Storage Access

termux-setup-storage

Allow prompt, then restart Termux.

Config Ubuntu

pkg up -y
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntu

Get Apps

On Ubuntu:

  • mkdir
mkdir /RE
cd /RE
  • requirements
apt update
apt install wget
apt install unzip
apt-get install libicu-dev
  • ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz
tar -xvf ffmpeg-release-arm64-static.tar.xz --wildcards '*/ffmpeg' -O > ./ffmpeg
chmod +x ./ffmpeg
  • RE
wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip
unzip N_m3u8DL-RE_Beta_linux-arm64.zip
chmod +x ./N_m3u8DL-RE

Note: replace 2905367163 with latest id (Actions)

Test

./N_m3u8DL-RE --tmp-dir /sdcard/Download --save-dir /sdcard/Download --save-name TEST "http://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8"

ZVJRK)VM(TGE6Z1PF G12(A

nilaoda avatar Aug 20 '22 18:08 nilaoda

如果想用电脑远程操作,termux配合ttyd可以获得更好的使用体验(

  • https://github.com/tsl0922/ttyd
ttyd -t fontSize=22 -t 'theme={"background": "#282A36", "foreground": "#F8F8F2", "cursor": "#F8F8F2", "selection": "#44475A"}' bash

image

xhlove avatar Aug 23 '22 04:08 xhlove

Have tried release version of "https://github.com/nilaoda/N_m3u8DL-RE/actions/runs/3307213970"; [Version month Oct] Neither work in "termux" nor "termux-proot-ubuntu-distro"; And here is the issue in termux: when I exec the ./N_m3u8DL-RE, it returned nothing; in termux-proot-ubuntu-distro when I exec the ./N_m3u8DL-RE, it returned segment fault;

while I tried N_m3u8DL-RE (Beta version) 20220914 of "https://github.com/nilaoda/N_m3u8DL-RE/actions/runs/3052755353" It works, but when ffmpeg merging, and the end, it showed the "Too many open files" error;

popsc30 avatar Oct 24 '22 06:10 popsc30

@popsc30 Fixed in latest Release

nilaoda avatar Oct 24 '22 15:10 nilaoda

大佬,v0.1.5.3-beta还能用,v0.2.0-beta无法使用,也没报错信息,但我改用net7.0打包就好了 @nilaoda

yf718 avatar Aug 14 '23 02:08 yf718

大佬,v0.1.5.3-beta还能用,v0.2.0-beta无法使用,也没报错信息,但我改用net7.0打包就好了 @nilaoda

等有空我搞一个安卓静态编译的吧

nilaoda avatar Sep 12 '23 15:09 nilaoda

Followed test example precisely and not working with Latest Android V14. When run from the command line gives no response to N_m3u8DL-RE --help. Would really value a specific build for Termux or proot-distro Ubuntu

A-nglea avatar Nov 03 '23 11:11 A-nglea

~ $ proot-distro login ubuntu root@localhost:~# wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/6656210042/N_m3u8DL-RE_Beta_linux-arm64.zip --2023-11-05 11:21:07-- https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/6656210042/N_m3u8DL-RE_Beta_linux-arm64.zip Resolving nightly.link (nightly.link)... 2001:19f0:5001:3a1:5400:ff:fe59:31d1, 45.32.185.199 Connecting to nightly.link (nightly.link)|2001:19f0:5001:3a1:5400:ff:fe59:31d1|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://pipelinesghubeus10.actions.githubusercontent.com/VxtghUz2kNT0fliRIayK9Q9TeJXB8SOy6yioO9dq8pS0r23g7d/_apis/pipelines/1/runs/140/signedartifactscontent?artifactName=N_m3u8DL-RE_Beta_linux-arm64&urlExpires=2023-11-05T11%3A22%3A06.9118961Z&urlSigningMethod=HMACV2&urlSignature=Qeq%2FHT0uYjK423Gmvu7cBBKxLf6otaCjW5ORHy7b2GI%3D [following] --2023-11-05 11:21:08-- https://pipelinesghubeus10.actions.githubusercontent.com/VxtghUz2kNT0fliRIayK9Q9TeJXB8SOy6yioO9dq8pS0r23g7d/_apis/pipelines/1/runs/140/signedartifactscontent?artifactName=N_m3u8DL-RE_Beta_linux-arm64&urlExpires=2023-11-05T11%3A22%3A06.9118961Z&urlSigningMethod=HMACV2&urlSignature=Qeq%2FHT0uYjK423Gmvu7cBBKxLf6otaCjW5ORHy7b2GI%3D Resolving pipelinesghubeus10.actions.githubusercontent.com (pipelinesghubeus10.actions.githubusercontent.com)... 20.102.38.122 Connecting to pipelinesghubeus10.actions.githubusercontent.com (pipelinesghubeus10.actions.githubusercontent.com)|20.102.38.122|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘N_m3u8DL-RE_Beta_linux-arm64.zip’

N_m3u8DL-RE_Beta_linux- [ <=> ] 7.87M 5.28MB/s in 1.5s

2023-11-05 11:21:10 (5.28 MB/s) - ‘N_m3u8DL-RE_Beta_linux-arm64.zip’ saved [8253983]

root@localhost:~# unzip N_m3u8DL-RE_Beta_linux-arm64.zip Archive: N_m3u8DL-RE_Beta_linux-arm64.zip inflating: N_m3u8DL-RE
root@localhost:~# chmod +x N_m3u8DL-RE root@localhost:~# ./N_m3u8DL-RE And later... ~ $ proot-distro login ubuntu root@localhost:~# cd RE root@localhost:~/RE# ./N_m3u8DL-RE https://itvpnpdotcom.blue.content.itv.com/Y-1191-0021-002/34/1/VAR028-HD-s/Y-1191-0021-002_34_1_VAR028-HD-s.ism/.mpd?filter=%28%28type%3D%3D%22video%22%26%26DisplayHeight%3C%3D720%29%7C%7C%28type%21%3D%22video%22%29%29&hdnea=st%3D1699179122~exp%3D1699200722~acl%3D/Y-1191-0021-002/%2A~hmac%3Daf5acacbbaf2529635258aa0b3fc97bdcd971097862f475e7803dd05b4828d6e [1] 2856 root@localhost:~/RE# ps -A PID TTY TIME CMD 1493 pts/0 00:00:01 /data/data/com.termux/files/usr/bin/bash 2600 pts/1 00:00:00 proot 2845 /proc/2600/fd/2 00:00:00 /bin/bash 2860 /proc/2600/fd/2 00:00:00 ps 4596 ? 00:00:01 sshd 27334 ? 00:00:05 /data/data/com.termux/files/usr/bin/sshd 27344 /proc/2600/fd/2 00:00:00 /data/data/com.termux/files/usr/bin/bash [1]+ Exit 255 ./N_m3u8DL-RE https://itvpnpdotcom.blue.content.itv.com/Y-1191-0021-002/34/1/VAR028-HD-s/Y-1191-0021-002_34_1_VAR028-HD-s.ism/.mpd?filter=%28%28type%3D%3D%22video%22%26%26DisplayHeight%3C%3D720%29%7C%7C%28type%21%3D%22video%22%29%29 root@localhost:~/RE#

A-nglea avatar Nov 05 '23 11:11 A-nglea

Help, can't download it, i use the latest id.

EDIT: nevermind, i download again from different links.

vigilantejustice15 avatar Feb 19 '24 12:02 vigilantejustice15

wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/6851479504/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip sudo chmod +x ./N_m3u8DL-RE --2024-02-19 12:12:13-- https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/6851479504/N_m3u8DL-RE_Beta_linux-arm64.zip Resolving nightly.link (nightly.link)... 2001:19f0:5001:3a1:5400:ff:fe59:31d1, 45.32.185.199 Connecting to nightly.link (nightly.link)|2001:19f0:5001:3a1:5400:ff:fe59:31d1|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-02-19 12:12:14 ERROR 404: Not Found.

unzip: cannot find or open N_m3u8DL-RE_Beta_linux-arm64.zip, N_m3u8DL-RE_Beta_linux-arm64.zip.zip or N_m3u8DL-RE_Beta_linux-arm64.zip.ZIP. chmod: cannot access './N_m3u8DL-RE': No such file or directory

EDIT: FIXED

vigilantejustice15 avatar Feb 19 '24 12:02 vigilantejustice15

Help, can't download it, i use the latest id.

EDIT: nevermind, i download again from different links.

Hey I'm having same issue mind if u tell which link you used or maybe what exactly you replaced in wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip chmod +x ./N_m3u8DL-RE

LbsLightX avatar Feb 24 '24 20:02 LbsLightX

wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/6851479504/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip sudo chmod +x ./N_m3u8DL-RE --2024-02-19 12:12:13-- https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/6851479504/N_m3u8DL-RE_Beta_linux-arm64.zip Resolving nightly.link (nightly.link)... 2001:19f0:5001:3a1:5400:ff:fe59:31d1, 45.32.185.199 Connecting to nightly.link (nightly.link)|2001:19f0:5001:3a1:5400:ff:fe59:31d1|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-02-19 12:12:14 ERROR 404: Not Found.

unzip: cannot find or open N_m3u8DL-RE_Beta_linux-arm64.zip, N_m3u8DL-RE_Beta_linux-arm64.zip.zip or N_m3u8DL-RE_Beta_linux-arm64.zip.ZIP. chmod: cannot access './N_m3u8DL-RE': No such file or directory

EDIT: FIXED

Having exact same problem

LbsLightX avatar Feb 24 '24 20:02 LbsLightX

Help, can't download it, i use the latest id. EDIT: nevermind, i download again from different links.

Hey I'm having same issue mind if u tell which link you used or maybe what exactly you replaced in wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip chmod +x ./N_m3u8DL-RE

If i'am not wrong i tried download using this link. You can tried it.

https://github.com/nilaoda/N_m3u8DL-RE/releases

I'm using the "Beta linux arm64".

vigilantejustice15 avatar Feb 24 '24 20:02 vigilantejustice15

Help, can't download it, i use the latest id. EDIT: nevermind, i download again from different links.

Hey I'm having same issue mind if u tell which link you used or maybe what exactly you replaced in wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip chmod +x ./N_m3u8DL-RE

If i'am not wrong i tried download using this link. You can tried it.

https://github.com/nilaoda/N_m3u8DL-RE/releases

I'm using the "Beta linux arm64".

Hey thanks Really helped me well I'm not a tech guy i just follow the guide but I not sure what to do next

You see..

I did replace "wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip" with "wget https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_linux-arm64_20230628.tar.gz" ignoring the ID thing they ask to update

Plus link was in "tar.gz" so I used "tar -xvf" to unzip it and it did.

But the when I tried to run "chmod +x ./N_m3u8DL-RE" it's says "cannot access './N_m3u8DL-RE': No such file or directory"Screenshot_2024-02-25-07-54-55-22_84d3000e3f4017145260f7618db1d683.jpg It would a big help if you tell me a bit more

LbsLightX avatar Feb 25 '24 02:02 LbsLightX

Help, can't download it, i use the latest id. EDIT: nevermind, i download again from different links.

Hey I'm having same issue mind if u tell which link you used or maybe what exactly you replaced in wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip chmod +x ./N_m3u8DL-RE

If i'am not wrong i tried download using this link. You can tried it. https://github.com/nilaoda/N_m3u8DL-RE/releases I'm using the "Beta linux arm64".

Hey thanks Really helped me well I'm not a tech guy i just follow the guide but I not sure what to do next

You see..

I did replace "wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip" with "wget https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_linux-arm64_20230628.tar.gz" ignoring the ID thing they ask to update

Plus link was in "tar.gz" so I used "tar -xvf" to unzip it and it did.

But the when I tried to run "chmod +x ./N_m3u8DL-RE" it's says "cannot access './N_m3u8DL-RE': No such file or directory"Screenshot_2024-02-25-07-54-55-22_84d3000e3f4017145260f7618db1d683.jpg It would a big help if you tell me a bit more

there's still a folder in there you can try this command.

cd N_m3u8DL-RE_Beta_linux-arm64 chmod +x ./N_m3u8DL-RE

vigilantejustice15 avatar Feb 25 '24 05:02 vigilantejustice15

Help, can't download it, i use the latest id. EDIT: nevermind, i download again from different links.

Hey I'm having same issue mind if u tell which link you used or maybe what exactly you replaced in wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip chmod +x ./N_m3u8DL-RE

If i'am not wrong i tried download using this link. You can tried it. https://github.com/nilaoda/N_m3u8DL-RE/releases I'm using the "Beta linux arm64".

Hey thanks Really helped me well I'm not a tech guy i just follow the guide but I not sure what to do next

You see..

I did replace "wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip" with "wget https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_linux-arm64_20230628.tar.gz" ignoring the ID thing they ask to update

Plus link was in "tar.gz" so I used "tar -xvf" to unzip it and it did.

But the when I tried to run "chmod +x ./N_m3u8DL-RE" it's says "cannot access './N_m3u8DL-RE': No such file or directory"Screenshot_2024-02-25-07-54-55-22_84d3000e3f4017145260f7618db1d683.jpg It would a big help if you tell me a bit more

there's still a folder in there you can try this command.

cd N_m3u8DL-RE_Beta_linux-arm64 chmod +x ./N_m3u8DL-RE

Oh Thanks mate it worked appreciated 👍

LbsLightX avatar Feb 25 '24 07:02 LbsLightX

Help, can't download it, i use the latest id. EDIT: nevermind, i download again from different links.

Hey I'm having same issue mind if u tell which link you used or maybe what exactly you replaced in wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip unzip N_m3u8DL-RE_Beta_linux-arm64.zip chmod +x ./N_m3u8DL-RE

If i'am not wrong i tried download using this link. You can tried it. https://github.com/nilaoda/N_m3u8DL-RE/releases I'm using the "Beta linux arm64".

Hey thanks Really helped me well I'm not a tech guy i just follow the guide but I not sure what to do next You see.. I did replace "wget https://nightly.link/nilaoda/N_m3u8DL-RE/actions/runs/2905367163/N_m3u8DL-RE_Beta_linux-arm64.zip" with "wget https://github.com/nilaoda/N_m3u8DL-RE/releases/download/v0.2.0-beta/N_m3u8DL-RE_Beta_linux-arm64_20230628.tar.gz" ignoring the ID thing they ask to update Plus link was in "tar.gz" so I used "tar -xvf" to unzip it and it did. But the when I tried to run "chmod +x ./N_m3u8DL-RE" it's says "cannot access './N_m3u8DL-RE': No such file or directory"Screenshot_2024-02-25-07-54-55-22_84d3000e3f4017145260f7618db1d683.jpg It would a big help if you tell me a bit more

there's still a folder in there you can try this command. cd N_m3u8DL-RE_Beta_linux-arm64 chmod +x ./N_m3u8DL-RE

Oh Thanks mate it worked appreciated 👍

Me Not working Why Bro?

RAGAVANM1 avatar Mar 15 '24 01:03 RAGAVANM1

大佬,v0.1.5.3-beta还能用,v0.2.0-beta无法使用,也没报错信息,但我改用net7.0打包就好了 @nilaoda

.bashrc中添加export DOTNET_GCHeapHardLimit=1C0000000 如果不行,安装apt install -y dotnet-sdk-8.0后再试 参考 https://www.cnblogs.com/q-z-lin/p/18008593 https://github.com/dotnet/runtime/issues/85556#issuecomment-1532509992 https://github.com/termux/proot/issues/283#issuecomment-1688261712

yffbit avatar Apr 12 '24 12:04 yffbit

/data/data/com.termux/files/usr/bin » N_m3u8DL-RE ~» N_m3u8DL-RE: command not found

bash N_m3u8DL-RE N_m3u8DL-RE: N_m3u8DL-RE: cannot execute binary file

Nothing happens. Latest build

DecosSoft avatar Apr 20 '24 04:04 DecosSoft

In proot ubuntu also it's neither giving any output nor any error.

RevealedSoulEven avatar May 13 '24 20:05 RevealedSoulEven