If MPV is a modern and fast video player, it’s not really accessible at first. That’s why here I want to share my tips on how to approach de the beast.
MPV is a fast, hardware accelerated video player, just check the scrub speed to be convinced.
sudo apt install mpv in terminal should do the trick.
On Windows/Mac get install on this page:
First opening you’ll see that it’s minimalist, a bit too much when not familiar.
Example, by default the player close when video reach the end. That usually throw off users.
We’re gonna change that, and more
Details can be found in official doc
Here is a quick command line fix for aformentioned auto close:
Open a terminal and enter the following
If you prefer it to loop
Same on Windows
mkdir %APPDATA%\mpv echo loop=yes >> %APPDATA%\mpv\mpv.conf
echo keep-open=yes >> %APPDATA%\mpv\mpv.conf
Windows Note: if you create a
mpv.exe, this config will be loaded.
an example of config file exists in
doc folder (
You can copy it to create or replace
%APPDATA%\mpv\mpv.conf and uncomment line that are of interest to you
Here are some config lines I have added for myself
# don't allow a new window to have a size larger than 90% of the screen size autofit-larger=90%x90% # Display prefered subtitles if available. (Here english then fallback to fr) slang=eng,English,en,en-US,US,French,fr,fre # change scale of subtitle sub-scale=0.8 # high quality video preset profile=gpu-hq
I find native shortcuts not so intuitive, but we can get use to it Here is a list of those I find most usefull
← / →: backward/forward 5 seconds
Shift + ← / →: backward/forward 1 second
< / >(qwerty) : frame before / after
L: Loop, set a A-B with cyclic pushes (A > B > cancel loop)
Shift + L: Loop on whole video.
Shift + Q: exit with resume at current time on next open.
Shift+ J: Change subs
T: Gu Up / Down
X: time offset
Other shortcuts here
They can be changed with
mpv.conf, a prefilled template is available in
Edit and place in you configuration file
Example, some user prefer to have frame by frame on arrows instead of 5 second move
To invert here is the
# invert frame step and seek RIGHT frame-step # advance one frame and pause LEFT frame-back-step # back one frame and pause . seek 5 # five second forward , seek -5 # five second backward
For my fellow French users that kept their azerty (not too late to change) you can map
b/n, not used by anything by default.
n frame-step # advance one frame and pause b frame-back-step # back one frame and pause
MPV use LUA as scripting language.
Here are two scripts I customised for my use to extract fragment of video while watching:
- Slicing with
c(A-B) : https://github.com/Pullusb/mpv_slicing
- multiple Slice without re-encoding: https://github.com/Pullusb/mpv-video-splice
You just have to create a
scritps folder in your configuration folder and place donwloaded
You’re free to personalise the experience