5

I'm using mpv Media Player in Ubuntu 17.10, and whenever I take a screenshot it goes to the home directory. Is there any way to change the directory for the screenshots taken?

Kendots
  • 97

1 Answers1

6

Edit: Based on a comment by doug, who does a lot of work with mpv, one can simply edit ~/.config/mpv.conf to add screenshot-directory=~/Public/ if $HOME/Public is the desired destination.


The following works with mpv/xenial,now 2:0.28.0~xenial1 amd64 [installed] and with mpv/bionic,now 0.27.0-2ubuntu4 amd64 [installed]. I haven't tested with the version available on 17.10.

I copied over /usr/share/applications/mpv.desktop to $HOME/.local/share/applications.

I then modified the Exec line from

Exec=mpv --player-operation-mode=pseudo-gui -- %U

to

Exec=mpv --player-operation-mode=pseudo-gui --screenshot-directory=$HOME/Public/ -- %U

and saved SHOME/.local/share/applications/mpv.desktop. Now, when I open a video with mpv and take a screenshot, the screenshot is saved to $HOME/Public.

Read https://mpv.io/manual/master/ for adjusting the quality of screenshots, naming them, and the format desired.

DK Bose
  • 44,553