mpv
Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
mpv
Multimedia player. Also plays streams (.m3u url's)
MPV home
Playing
Local mp3 file
mpv --audio-device=alsa/plughw:CARD=CMI8738,DEV=0 /home/user/somefile.mp3 mpv pulse/alsa_output.pci-0000_09_00.0.analog-stereo /home/user/somefile.mp3
Audio CD
mpv cdda:///dev/cdrom --cdrom-device=/dev/cdrom mpv cdda:////dev/dvd
Stream
With volume settings
mpv -volume 30 http://someIPnumber:80/
Without video output
mpv --vo null --volume 30 http://somestreamURL:80/
Keybindings
Key | Function | Remark |
---|---|---|
Playback | ||
p / Space | Pause (pressing again unpauses). | |
Pause | Pause.1) | |
/ / * | Decrease / increase volume. | |
9 / 0 | Decrease / increase volume. | |
m | Mute / unmute sound. | |
q | Stop playing and quit the program. | |
Q | Like q, but store the current playback position. Playing the same file later will resume at the old playback position if possible. | |
Stop | Stop playing and quit.2) | |
Seek | ||
Shift+ Left / Right | 1 second exact seek. (see --hr-seek). | |
Left / Right | Seek backward / forward 5 seconds. (see --hr-seek). | |
Shift+ Up / Down | 5 second exact seek. (see --hr-seek). | |
Up / Down | Seek forward / backward 1 minute. | |
Previous / Next | Seek backward / forward 1 minute.3) | |
Shift+Page Up / Down | Seek backward or forward by 10 minutes. (This used to be mapped to Page Up / Page Down without Shift.) | |
Page Up / Page Down | Seek to the beginning of the previous / next chapter. In most cases, “previous” will actually go to the beginning of the current chapter; see --chapter-seek-threshold. | |
l | Set / clear A-B loop points. See ab-loop command for details. | |
L | Toggle infinite looping. | |
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. See revert-seek command for details. | |
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. | |
. | Step forward. Pressing once will pause, every consecutive press will play one frame and then go into pause mode again. | Does not seem to work. |
, | Step backward. Pressing once will pause, every consecutive press will play one frame in reverse and then go into pause mode again. | Does not seem to work. |
Speed | ||
Backspace | Reset playback speed to normal. | |
[ / ] | Decrease / increase current playback speed by 10%. | |
{ / } | Halve / double current playback speed. | |
Subtitles | ||
Ctrl + Left / Right | Seek to the previous / next subtitle. Subject to some restrictions and might not always work; see sub-seek command. | |
Ctrl+Shift + Left / Right | Adjust subtitle delay so that the next or previous subtitle is displayed now. This is especially useful to sync subtitles to audio. | |
Playlist | ||
< / > | Go backward / forward in the playlist. | |
ENTER | Go forward in the playlist. | |
# | Cycle through the available audio tracks. | |
Video | ||
_ | Cycle through the available video tracks. | |
f | Toggle fullscreen (see also --fs). | |
Esc | Exit fullscreen mode. | |
T | Toggle stay-on-top (see also --ontop). | |
w / W | Decrease / increase pan-and-scan range. The e key does the same as W currently, but use is discouraged. | |
o (also 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. The x key does the same as Z currently, but use is discouraged. | |
Ctrl + and Ctrl - | Adjust audio delay (A/V sync) by +/- 0.1 seconds. | |
u | Switch between applying no style overrides to SSA/ASS subtitles, and overriding them almost completely with the normal subtitle style. See --sub-ass-override for more info. | |
V | Toggle subtitle VSFilter aspect compatibility mode. See --sub-ass-vsfilter-aspect-compat for more info. | |
r and R | Move subtitles up/down. The t key does the same as R currently, but use is discouraged. | |
s | Take a screenshot. | |
S | Take a screenshot, without subtitles. (Whether this works depends on VO driver support.) | |
Ctrl s | Take a screenshot, as the window shows it (with subtitles, OSD, and scaled video). | |
d | Activate / deactivate deinterlacer. | |
A | Cycle aspect ratio override. | |
Ctrl h | Toggle hardware video decoding on / off. | |
Alt+ Left / Right, Alt+ Up / Down | Move the video rectangle (panning). | |
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). | |
1 / 2 | Adjust contrast.4) | |
3 / 4 | Adjust brightness.5) | |
5 / 6 | Adjust gamma.6) | |
7 / 8 | Adjust saturation.7) | |
Alt+ 0 | Resize video window to half its original size.8) | Is 'command + 0' on OSX |
Alt+ 1 | Resize video window to its original size.9) | Is 'command + 1' on OSX |
Alt+ 2 | Resize video window to double its original size.10) | and 'command + 2' on OSX) |
command + f (OSX only)11) Toggle fullscreen (see also --fs). |
If you miss some older key bindings, look at etc/restore-old-bindings.conf in the mpv git repository.
Issues
No sound
When there is no sound do
- mpv --audio-device=help (list audio devices)
- mpv --audio-device=[test all items from the list] someaudiofile.mp3 (the default is auto)
- Add the found device to /etc/mpv/mpv.conf in the format audio-device=[the found audio device]
- Do a test: mpv someaudiofile.mp3
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.
mpv.txt · Last modified: 23-06-2023 17:22 by wim