Skip to content

whether1/mpv-abstime-osd

Repository files navigation

How to use

I use portable version of mpv(windows), so just put the script to \Desktop\execute\MPV\portable_config\scripts works.
(en) (cn)scripts differ in comment(english not skilled till now so reserve cn), same in code.

Dev details see docs.

Key Mind : media start time = ModifyDate - Duration

Because of create date maybe wrong due to copied file, we use modify date.
similar scripts because abs-screenshot issue#1, we use modify date.

Test Result/Behavior/Response/Example/Finish

picture below is behavior when testing:we can fastly know the exactly time that cat-caught-the-bat is around 202509272320(Beijing Time).
test-ok

Tigger/Cause/Start

mpv-issue#16889 We I want mpv can show absolute timestamp like beijing 20251007 2:20 according to create time modify date when playing audio or video file , so we can know the exactly actual time of the specified sound wave or action picture happen in the .m4a or .mp4 file.

Because vivo phone internal camera do not have timestamp like hikvision osd when capturing video, and it's hard work(high battery consumption,china india too poor) to process the video file to add timestamp, we need player to finish the work.

Future to do/Reference/Research

1.2510100310 maybe we can merge repo with abs-screenshot.

2.2510100310 clipboard is good. copyTime

Windows Powershell Built-in since Windows 7 ✅ ok
Linux/X11 xclip ❌not good
Linux/Wayland xclip or wl-clipboard ❌not good
MacOS pbcopy ❌not good

About

show absolute time of the playing audio or video

Topics

Resources

License

GPL-2.0, LGPL-2.1 licenses found

Licenses found

GPL-2.0
LICENSE.GPL
LGPL-2.1
LICENSE.LGPL

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages