MPV


mpv is the best player for me.

Arabic subtitle

To enable Arabic subtitles, you need to add some configuration.

On Mac

vi ~/.mpv/config

slang=ar
sub-codepage = utf8:cp1256

On Windows

Stream

# Video
mpv --ontop --no-border --geometry=100%:0% URL

# Only Audio
mpv --no-video URL
// or
mpv --ytdl-format "bestaudio" URL

Options

Download playlist

sync

youtube-dl -f best URL

parallel

Get list of urls

youtube-dl -j --flat-playlist 'URL' | jq -r '"https://youtu.be/"+ .url' > urls.txt
cat urls.txt | xargs -n 1 -P 8 youtube-dl -f best
# -n 1 indicates one url for each youtube-dl call; -P 4 indicates 4 parallel youtube-dl calls

docker

docker run -d -v /Users/yaser/Downloads/youtube-dl:/downloads qmcgaw/youtube-dl-alpine URL -ciw --write-auto-sub -o "/downloads/%(title)s.%(ext)s"

Ref:

comments powered by Disqus