u/Consistent-Career487

▲ 4 r/termux

Why termux-media-scan doesn't work on scripts?

[SOLVED] I accidentally modified PATH variable, i feel so stupid...

Termux-media-scan works fine when used in shell

But, it dont work when used in script

here's the output :

/data/data/com.termux/files/usr/bin/termux-media-scan: line 41: sed: command not found
/data/data/com.termux/files/usr/bin/termux-media-scan: line 16: realpath: command not found

Is this caused by env variables?

reddit.com
u/Consistent-Career487 — 19 hours ago

Why does video downloaded from yt-dlp not showing in gallery app?

The video exist in file manager and its 100% playable but it has no thumbnail it doesn't show up in gallery app and video editing app. Its only accessible through file manager

Im running yt-dlp on termux

Heres the command i used :

$PREFIX/bin/yt-dlp -f "bv*[height<=480][ext=mp4]+ba*[ext=m4a]" -N 4 https://youtube/xxx -o /sdcard/YTDOWNLOAD/name.mp4
reddit.com