url Youtube --> yt-dlp --> MPlayer
https://frippery.org/busybox/
BusyBox is a single binary that contains many common Unix tools.
Executing Bash scripts on Windows
busybox.exe sh "YT-ytdl-MP,sh"
----- "YT-ytdl-MP,sh" ---------------------------------------------------
-------------------------------------------------------------------------
#!/bin/bash
echo -e "\033]0;YT-ytdl-MP\007"
echo -e "\e[1;32m"
# home
cd ~
# path yt-dlp
cd "./Documents/Softw-Portable/yt-dlp-x86-WXP"
# path mplayer-exe
mplayer="../mplayer/mplayer.exe"
# proxy
# export http_proxy='http://127.0.0.1:8118'
echo '.'
echo '-------------------------------------------------------------------------'
echo ' ---------YouTube---yt-dlp---Mplayer-------------'
echo '-------------------------------------------------------------------------'
echo '........ Format Video(480p)+ Audio'
echo '........ youtube link ... https://www.youtube.com/watch?v=T9s97sDe0pk'
echo '........ youtube video ID ... T9s97sDe0pk'
echo '-------------------------------------------------------------------------'
read -p 'Enter youtube url: ' YTuurl
echo ''
"./yt-dlp.exe" --no-check-certificate --force-ipv4 --youtube-skip-dash-manifest --concurrent-fragments '5' --format 'bv*[height<=480]+ba/b[height<=480]' --get-url "$YTuurl" > 'YT-AV.tmp'
mimeVideo=`cat YT-AV.tmp | grep "mime=video" | head -n 1`
mimeAudio=`cat YT-AV.tmp | grep "mime=audio" | head -n 1`
echo ''
$mplayer -subfont-osd-scale '2' -noconfig 'all' -quiet -noautosub -nosub -vo 'directx' -ao 'win32' -autosync '10' -cache-min '2' -cache '204800' -prefer-ipv4 -vf 'fspp=4:0:0:0,framestep=1,screenshot=screenshot/YT0' -lavdopts 'threads=2:lowres=1:st=2:sb=2:skiploopfilter=nonref' -xy '1.1' -sws '1' -dr -double -priority 'abovenormal' -stereo '0' -af volnorm -volume '90' "$mimeVideo" -audiofile "$mimeAudio" -audiofile-cache '40960'
echo ''
echo ''
read -p "Press enter to continue"
exec "$0"
-------------------------------------------------------------------------
.. associate the file type .SH with this batchfile ("Busybox-Run-sh.bat" in my case) and you can double-click on the .SH and it runs.