--- obj: application website: https://mpv.io flatpak-id: io.mpv.Mpv --- # MPV mpv is a based media player. It supports a wide variety of video [file formats](../../files/MIME.md), audio and video codecs, and subtitle types. Special input [URL](../../internet/URL.md) types are available to read input from a variety of sources other than disk files. Depending on platform, a variety of different video and audio output methods are supported. ## Usage Usage: `mpv [options] [file|URL|PLAYLIST|-]` ## Default Input | Input | Action | | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `LEFT` and `RIGHT` | Seek backward/forward 5 seconds. Shift+arrow does a 1 second exact seek. | | `UP` and `DOWN` | Seek forward/backward 1 minute. Shift+arrow does a 5 second exact seek. | | `Ctrl+LEFT` and `Ctrl+RIGHT` | Seek to the previous/next subtitle. Subject to some restrictions and might not always work | | `Ctrl+Shift+LEFT` and `Ctrl+Shift+RIGHT` | Adjust subtitle delay so that the next or previous subtitle is displayed now. This is especially useful to sync subtitles to audio. | | `[` and `]` | Decrease/increase current playback speed by 10%. | | `{` and `}` | Halve/double current playback speed. | | `BACKSPACE` | Reset playback speed to normal. | | `Shift+BACKSPACE` | Undo the last seek. This works only if the playlist entry was not changed. Hitting it a second time will go back to the original position. | | `Shift+Ctrl+BACKSPACE` | Mark the current position. This will then be used by Shift+BACKSPACE as revert position (once you seek back, the marker will be reset). You can use this to seek around in the file and then return to the exact position where you left off. | | `<` and `>` | Go backward/forward in the playlist. | | `ENTER` | Go forward in the playlist. | | `p` and `SPACE` | Pause (pressing again unpauses). | | `.` | Step forward. Pressing once will pause, every consecutive press will play one frame and then go into pause mode again. | | `,` | Step backward. Pressing once will pause, every consecutive press will play one frame in reverse and then go into pause mode again. | | `q` | Stop playing and quit. | | `Q` | Like q, but store the current playback position. Playing the same file later will resume at the old playback position if possible. | | `/` and `*` | Decrease/increase volume. | | `9` and `0` | Decrease/increase volume. | | `m` | Mute sound. | | `_` | Cycle through the available video tracks. | | `#` | Cycle through the available audio tracks. | | `E` | Cycle through the available Editions. | | `f` | Toggle fullscreen | | `ESC` | Exit fullscreen mode. | | `T` | Toggle stay-on-top (see also --ontop). | | `o` and `P` | Show progression bar, elapsed time and total duration on the OSD. | | `O` | Toggle OSD states between normal and playback time/duration. | | `v` | Toggle subtitle visibility. | | `j` and `J` | Cycle through the available subtitles. | | `z` and `Z` | Adjust subtitle delay by +/- 0.1 seconds. | | `l` | Set/clear A-B loop points. See ab-loop command for details. | | `L` | Toggle infinite looping. | | `Ctrl++` and `Ctrl+-` | Adjust audio delay (A/V sync) by +/- 0.1 seconds. | | `Shift+g` and `Shift+f` | Adjust subtitle font size by +/- 10%. | | `r` and `R` | Move subtitles up/down. | | `s` | Take a screenshot. | | `S` | Take a screenshot, without subtitles. | | `Ctrl+s` | Take a screenshot, as the window shows it (with subtitles, OSD, and scaled video). | | `PGUP` and `PGDWN` | Seek to the beginning of the previous/next chapter. In most cases, "previous" will actually go to the beginning of the current chapter. | | `Alt+LEFT`, `Alt+RIGHT`, `Alt+UP`, `Alt+DOWN` | Move the video rectangle (panning). | | `Alt++` and `Alt+-` | Combining `Alt` with the `+` or `-` keys changes video zoom. | | `Alt+BACKSPACE` | Reset the pan/zoom settings. | | `F8` | Show the playlist and the current position in it (useful only if a UI window is used, broken on the terminal). | | `F9` | Show the list of audio and subtitle streams (useful only if a UI window is used, broken on the terminal). | | `i` and `I` | Show/toggle an overlay displaying statistics about the currently playing file such as codec, framerate, number of dropped frames and so on. | | `DEL` | Cycle OSC visibility between never / auto (mouse-move) / always | | \` | Show the console. (`ESC` closes it again) | | `1` and `2` | Adjust contrast. | | `3` and `4` | Adjust brightness. | | `5` and `6` | Adjust gamma. | | `7` and `8` | Adjust saturation. | ## Options ### Track Selection - `--alang=` Specify a priority list of audio languages to use, as IETF language tags. Equivalent ISO 639-1 two-letter and ISO 639-2 three-letter codes are treated the same. The first tag in the list whose language matches a track in the file will be used. - `--slang=` Equivalent to `--alang`, for subtitle tracks. - `--vlang=<...>` Equivalent to `--alang` and `--slang`, for video tracks. - `--aid=` Select audio track. `auto` selects the default, `no` disables audio. See also `--alang`. mpv normally prints available audio tracks on the terminal when starting playback of a file. `--audio` is an alias for `--aid`. - `--sid=` Display the subtitle stream specified by ``. `auto` selects the default, `no` disables subtitles. `--sub` is an alias for `--sid`. - `--vid=` Select video channel. `auto` selects the default, `no` disables video. `--video` is an alias for `--vid`. ### Playback Control - `--start=` Seek to given time position. The general format for times is `[+|-][[hh:]mm:]ss[.ms]`. If the time is prefixed with `-`, the time is considered relative from the end of the file (as signaled by the demuxer/the file). A `+` is usually ignored. The following alternative time specifications are recognized: - `pp%` seeks to percent position pp (0-100). - `#c` seeks to chapter number `c`. (Chapters start from 1.) - `none` resets any previously set option (useful for libmpv). - `--end=` Stop at given time. Use `--length` if the time should be relative to `--start`. See `--start` for valid option values and examples. - `--length=` Stop after a given time relative to the start time. See `--start` for valid option values and examples. If both `--end` and `--length` are provided, playback will stop when it reaches either of the two endpoints. - `--speed=<0.01-100>` Slow down or speed up playback by the factor given as parameter. If `--audio-pitch-correction` (on by default) is used, playing with a speed higher than normal automatically inserts the `scaletempo2` audio filter. - `--pause` Start the player in paused state. - `--shuffle` Play files in random order. - `--playlist-start=` Set which file on the internal playlist to start playback with. The index is an integer, with 0 meaning the first file. The value auto means that the selection of the entry to play is left to the playback resume mechanism (default). - `--loop-playlist=, --loop-playlist` Loops playback `N` times. A value of 1 plays it one time (default), 2 two times, etc. `inf` means forever. `no` is the same as 1 and disables looping. If several files are specified on command line, the entire playlist is looped. `--loop-playlist` is the same as `--loop-playlist=inf`. - `--loop-file=, --loop=` Loop a single file `N` times. `inf` means forever, `no` means normal playback. For compatibility, `--loop-file` and `--loop-file=yes` are also accepted, and are the same as `--loop-file=inf`. The difference to `--loop-playlist` is that this doesn't loop the playlist, just the file itself. If the playlist contains only a single file, the difference between the two option is that this option performs a seek on loop, instead of reloading the file. - `--ab-loop-a=