mpv-player/mpv

[Feature Request] Option to copy screenshot to clipboard, instead of/in addition to saving to file

enchained opened this issue · 9 comments

In the modern days of messengers it is really useful to have this feature, and you can just paste the screenshot somewhere, instead of looking for a file it was saved to.

Specifically I want this cause of Plex Media Player OSD which has no way to hide for screenshot taking, so I rarely use it on my laptop, and can't recommend PMP to friends cause of that.

So, in hopes I could bind a PMP keyboard input to an mpv command, I wish there was a command for something like that.

You can already do this if you do a bit of work yourself. You can use a custom Lua script and a custom keybind to call it (or rebind s) to screenshot to some png file, and then run a command that copies that file into the clipboard.

Thanks, I'll try that. But from what I've heard, mpv scripting is disabled for Plex Media Player, and even if I replace it with normal libmpv, it will probably be overwritten on every update. That makes it even harder to share with my friends, so I thought I could propose it as a core feature.

zc62 commented

Why don't you require this feature from Plex? If something can be done via a user script, but the player using mpv disabled scripting, shouldn't that player be complained about?

zc62 commented

Here is the script, if you are using MS Windows.

Thank you very much! I believe some people already requested OSD-free screenshots from Plex, and were directed to config input binding to mpv features instead. And then I found out mpv in PMP can only save to file. I'll try to request that feature from Plex again, or at least an option to support scripting or this specific script.

It's now up to PMP to enable scripting or implement this feature in their own interface. For the time being, this is unlikely to be integrated into the mpv core.

If anyone is looking for a Linux version, here's clipshot.lua

promid commented

Is there any script for MAC OS?

@promid You can try clipshot.lua mentioned above, from its code it looks like it's cross-platform.