MPV

April 2014 ยท 1 minute read

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

  sub-codepage = utf8:cp1256
  # Path to the font
  subfont=C:\Users\[user]\Downloads\player\fonts \DejaVuSans.ttf

Stream

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

# Only Audio
mpv --no-video URL

Options

  • --ytdl-format usually 18 means medium, and 22 means best. Best is the default settings. To list supported format by a video youtube-dl --list-formats url
  • --no-video will try to download only audio, So it could save bandwidth.
  • --ontop
  • --no-border
  • --geometry position of the window when open. Right and down –geometry=100%:0%
  • --loop