Synopsis
- are interpreted as options. Everything else is treated as a filename or URL. Options require a parameter in the form --option=value. Flag options use --flag (equivalent to --flag=yes) or --no-flag (equivalent to --flag=no).
Playing local files
Pass one or more file paths directly to mpv:Reading from stdin
Use- as the filename to read media data from stdin:
Using
- as the filename disables console controls, which makes it suitable
for playing data piped to stdin.-- to stop mpv from interpreting subsequent arguments as options — useful if you need to play a file that starts with a -:
Playing URLs and streams
mpv accepts HTTP and HTTPS URLs directly:yt-dlp (or youtube-dl) automatically when you pass an http(s):// URL that points to a supported site:
ytdl:// prefix:
Special protocols
DVD — dvd://
DVD — dvd://
Play a DVD disc or ISO image. Without a title number, mpv auto-selects the longest title. DVD menus are not supported.
dvdnav:// is an alias for dvd://.Blu-ray — bd://
Blu-ray — bd://
Play a Blu-ray disc or ISO image. Requires libbluray. Since libbluray 1.0.1, ISO files are supported via
--bluray-device.bluray:// is an alias for bd://.CD audio — cdda://
CD audio — cdda://
Play an audio CD. Navigate tracks using chapter seek keys (
Page Up / Page Down).FFmpeg protocols — lavf://
FFmpeg protocols — lavf://
Pass a string directly to FFmpeg’s libavformat:
libavdevice inputs — av://
libavdevice inputs — av://
Use libavdevice demuxers.
type is the demuxer name and options is the pseudo-filename:avdevice:// is an alias.File descriptor — fd://
File descriptor — fd://
Read from an arbitrary file descriptor. Similar to piping to stdin, but uses the specified descriptor number:Use
fdclose://3 to automatically close the descriptor after use.Samba shares — smb://
Samba shares — smb://
Image sequences — mf://
Image sequences — mf://
Play a series of images as a video:
Essential playback options
Seeking
Speed and volume
Looping
--loop (alias for --loop-file) counts the number of additional seeks to
the beginning, not the total number of playthroughs. --loop=1 plays the
file twice. --loop-playlist counts full playthroughs, so --loop-playlist=2
plays the list twice.Screenshots
s to take a screenshot including subtitles, or S to take one without subtitles. Screenshots are saved as mpv-shotNNNN.<ext> in the working directory (or the desktop in pseudo-GUI mode).
Per-file options
When playing multiple files you can apply options to a subset using--{ and --} markers: