User Tools

Site Tools


mpv

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

Keybinding page

KeyFunctionRemark
Playback
p / SpacePause (pressing again unpauses).
PausePause.1)
/ / *Decrease / increase volume.
9 / 0Decrease / increase volume.
mMute / unmute sound.
qStop playing and quit the program.
QLike q, but store the current playback position. Playing the same file later will resume at the old playback position if possible.
StopStop playing and quit.2)
Seek
Shift+ Left / Right1 second exact seek. (see --hr-seek).
Left / RightSeek backward / forward 5 seconds. (see --hr-seek).
Shift+ Up / Down5 second exact seek. (see --hr-seek).
Up / DownSeek forward / backward 1 minute.
Previous / NextSeek backward / forward 1 minute.3)
Shift+Page Up / DownSeek backward or forward by 10 minutes. (This used to be mapped to Page Up / Page Down without Shift.)
Page Up / Page DownSeek 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.
lSet / clear A-B loop points. See ab-loop command for details.
LToggle infinite looping.
Shift + BackspaceUndo 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 + BackspaceMark 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
BackspaceReset playback speed to normal.
[ / ]Decrease / increase current playback speed by 10%.
{ / }Halve / double current playback speed.
Subtitles
Ctrl + Left / RightSeek to the previous / next subtitle. Subject to some restrictions and might not always work; see sub-seek command.
Ctrl+Shift + Left / RightAdjust 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.
ENTERGo forward in the playlist.
#Cycle through the available audio tracks.
Video
_Cycle through the available video tracks.
fToggle fullscreen (see also --fs).
EscExit fullscreen mode.
TToggle stay-on-top (see also --ontop).
w / WDecrease / 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.
OToggle OSD states between normal and playback time/duration.
vToggle subtitle visibility.
j and JCycle through the available subtitles.
z and ZAdjust 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.
uSwitch 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.
VToggle subtitle VSFilter aspect compatibility mode. See --sub-ass-vsfilter-aspect-compat for more info.
r and RMove subtitles up/down. The t key does the same as R currently, but use is discouraged.
sTake a screenshot.
STake a screenshot, without subtitles. (Whether this works depends on VO driver support.)
Ctrl sTake a screenshot, as the window shows it (with subtitles, OSD, and scaled video).
dActivate / deactivate deinterlacer.
ACycle aspect ratio override.
Ctrl hToggle hardware video decoding on / off.
Alt+ Left / Right, Alt+ Up / DownMove the video rectangle (panning).
Alt + / -Combining Alt with the + or - keys changes video zoom.
Alt+ BackspaceReset the pan/zoom settings.
F8Show the playlist and the current position in it (useful only if a UI window is used, broken on the terminal).
F9Show the list of audio and subtitle streams (useful only if a UI window is used, broken on the terminal).
1 / 2Adjust contrast.4)
3 / 4Adjust brightness.5)
5 / 6Adjust gamma.6)
7 / 8Adjust saturation.7)
Alt+ 0Resize video window to half its original size.8)Is 'command + 0' on OSX
Alt+ 1Resize video window to its original size.9)Is 'command + 1' on OSX
Alt+ 2Resize 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.

1) , 2) , 3)
Only valid if you have a keyboard with multimedia keys.
4) , 5) , 6) , 7) , 8) , 9) , 10) , 11)
Only valid when using a video output that supports the corresponding adjustment.
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
mpv.txt · Last modified: 23-06-2023 17:22 by wim