This script copies to clipboard the:
- Filename (With Extension)
- Full Filename Path
- Relative Filename Path (Parent Directory + Filename)
- Current Video Time (HH:MM:SS.MS)
- Current Displayed Subtitle Text
Put the script copyStuff.lua
in your scripts folder, usually in:
- Windows:
"C:\Users\Username\AppData\Roaming\mpv\scripts"
. - Linux and Mac:
"~/.config/mpv/scripts/"
.
To work, the script needs:
- Windows:
Powershell
. - Linux/X11:
xclip
. - Linux/Wayland :
xclip
orwl-clipboard
. - MacOS:
pbcopy
(not tested).
What is Copied | Hotkey |
---|---|
Filename | CTRL+f |
Full Filename Path | CTRL+p |
Relative Filename Path | CTRL+r |
Current Video Time (HH:MM:SS.MS) | CTRL+t |
Current Displayed Subtitle Text | CTRL+s |
Video Duration | CTRL+d |
Video Metadata | CTRL+m |