yuchen-lea / org-media-note

Taking interactive notes when watching videos or listening to audios in org-mode.
GNU General Public License v3.0
243 stars 35 forks source link

Allow the capture and use of milliseconds #27

Closed nanjigen closed 3 years ago

nanjigen commented 3 years ago

I'm finding I need fainer-grained controls in certain kinds of video. Specifically org-media-note doesn't seem to respond to or capture increments in the milliseconds. Some frames are quite different and yet only be 0.1s apart.

Would it be possible to allow for the hydra to display milliseconds and have mpv respond to millisecond increments? Of course, the link format would have to allow for a full timestamp 0:00:00:00/h:mm:ss:ff <- there might have to be legacy code to allow for backward compatibility with the older link style if this were done.

What do you think?

yuchen-lea commented 3 years ago

I use format h:mm:ss.fff since it seems to be the standard (How to: Display Milliseconds in Date and Time Values | Microsoft Docs).

You can toggle the timestamp format between h:mm:ss and h:mm:ss.fff in hydra menu:

image

Once, changed to h:mm:ss.fff, all things should work like before: insert link, insert ab loop link, follow link, etc.

I didn't test a lot. Tell me if there're any problems.