/mpv-copyStuff

Copy to clipboard the filename, full filename path, relative filename path, current video time, current displayed subtitle text, video duration/metadata.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

mpv-copyStuff

This script copies to clipboard the:

  • Filename (With Extension) or URL Link
  • Full Filename Path
  • Current Video Time (HH:MM:SS.MS)
  • Current Displayed Subtitle Text
  • Video Metadata

Installation

Put the script copyStuff.lua in your scripts folder, usually in:

  • Windows: "C:\Users\Username\AppData\Roaming\mpv\scripts".
  • Linux and MacOS: "~/.config/mpv/scripts/".

To work, the script needs:

  • Windows: Powershell.
  • Linux/X11: xclip.
  • Linux/Wayland : xclip or wl-clipboard.
  • MacOS: pbcopy (not tested).

Hotkeys

What is Copied Hotkey
Filename or URL Link CTRL+f
Full Filename Path CTRL+p
Current Video Time (HH:MM:SS.MS) CTRL+t
Current Displayed Subtitle Text CTRL+s
Video Duration CTRL+d
Video Metadata CTRL+m

Screenshots

ss1 ss2 ss4 ss5