Copy the current time of the video to clipboard or to file.
-
Get the current time of the video and copy it to the clipboard with the format HH:MM:SS.MS, where MS (milliseconds) is 3 digits.
-
Get the current time of the video and copy it to
file.txt
with the format HH:MM:SS.
By default:
- Copy to clipboard is bound to "Ctrl + c"
- Copy to file is bound to "Ctrl + a"
External commands are used to access the clipboard:
Powershell
is used on Windowsxclip
is used on Linux + X11wl-copy
orxclip
is used on Linux + Waylandpbcopy
is used on MacOS
Put the copy_time.lua
script in your scripts folder
- usually
"%APPDATA%\mpv\scripts"
on Windows - usually
"~/.config/mpv/scripts/"
on Linux and Mac