Mpv
lastmod 2024-09-24created 2023-08-2312 edits
mpv is free and open-source media player software based on MPlayer, mplayer2, and FFmpeg. It runs on several operating systems, including Unix-like operating systems and Microsoft Windows, along with an Android port called mpv-android.
Categories
- libmpv - API description.
- MPV:Example:TrimRange - bash sample that uses mpv and ffmpeg to cut the range between two screenshots (s key) into a video
- python-mpv - libmpv bindings for Python
Config file
The config file paths are as follows:
- system-wide
/usr/local/etc/mpv.conf - per-user:
~/.config/mpv/mpv.conf
The order of precedence is as follows:
- Command-line parameters
- User settings
- System settings
Adjusting screenshot parameters
mpv --screenshot-template=%P \
--screenshot-directory="$TEMP_DIR" \
--screenshot-format=jpg \
--screenshot-jpeg-quality=0 \
...
Keyboard Control
-
[and] - Decrease/increase current playback speed by 10%.
-
,and. - Step backward/forward one frame, then pause the video.
-
/and* - Decrease/increase volume.
-
9and0 - Decrease/increase volume.
-
m - Mute sound.
-
v - Subtitle on/off