Play media files from the terminal with `mpv`
The lightweight player that opens any format instantly — and whose playback keystrokes nobody ever remembers.
Run `mpv file.mkv` to play a file; use space to pause, `q` to quit, and `--no-video` (e.g. `mpv --no-video music.flac`) to play audio without opening a window.
01Command
Command
$ mpv video.mkv02What it does
mpv detects terminal playback and can even render video as ASCII in a plain tty (`--vo=tct`), which makes `mpv --no-video` the perfect SSH music player. The forgotten but valuable flags: `--start 01:30 --end 02:00` plays just a clip, `--loop=inf` repeats forever, and `--speed=1.25` adjusts playback rate. Keyboard arrows skip 5 seconds, `<`/`>` move through playlist entries, and `o` shows the seek position.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- mpv(1) — a media playerEvidence: Documents CLI playback, --no-video, --loop, --start/--end trims and keyboard controls (space, q, arrows)
Last verified: 2026-09-17 · Category: Media