Scripts for MPV used in feeding assay annotation. It gets the current frame and the position of the mouse (relative to the frame size of the video), and copy this information to the clipboard.
- Downlaod
mpv
from this link - Place all files from this repo in
~/.config/mpv/
- Open any video using
mpv
. Pressshift
+o
, you should seecurrent frame number
/total frame number
- The
annotation.lua
script gets the current frame and the position of the mouse (relative to the frame size of the video), and copy this information to the clipboard- Press
g
(lower case) to get the current frame (starts from 0) - Press
c
(lower case) to get the position of the mouse
- Press
Currently all major operating systems are supported, however only vanilla mpv
player is support. For example, IINA
on MacOS doesn't work due to the key-binding issue with lua scripts.