Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

mpv links

patsh90patsh902k downloads

Add mpv links with timestamps

Add to Obsidian
  • Overview
  • Scorecard
  • Updates12

This plugin adds buttons linking to local video files. Clicking a button opens the specified video at a saved timestamp.

How to install

  1. You need to have already installed mpv. Check https://mpv.io/installation/
  2. Unzip the most recent release into your /.obsidian/plugins/ folder.

How to use this plugin?

  1. Open the command palette (type CMD + P on Mac or its equivalent on other platforms).
  2. Start typing the name of one of the actions. See below:
Action Hotkey
Add mpv link None by default
Go to next MPV link None by default
Go to previous MPV link None by default
Open selected MPV link None by default
Clean dead mpv links None by default
Update/relocalize links None by default
Sort links by name None by default

Link format

Links are stored inside fenced code blocks with the mpv_link tag:

``` mpv_link
[[id#video:path#HH:MM:SS]]
```

Fields

Field Description
id A unique numeric identifier (Unix timestamp in milliseconds). Generated automatically — you never need to set this manually.
video: Literal keyword that marks this as a video link.
path Path to the video file. Can be relative to the vault root or absolute. See Paths below.
HH:MM:SS Playback position in hours:minutes:seconds. Updated automatically each time you close the video.

Examples

Standard link (timestamp updates on close):

[[1700000000000#video:/home/user/videos/lecture.mp4#00:05:30]]

Fixed timestamp (marked with a trailing #, never updated):

[[1700000000000#video:/home/user/videos/lecture.mp4#00:05:30#]]

Link with hash and size for relocalization:

[[1700000000000#video:../videos/lecture.mp4#00:05:30#hash:a1b2c3d4#size:1048576]]

Paths

Paths are stored relative to the vault root. This makes notes portable: if you move your vault, links continue to work as long as the relative layout between the vault and your videos is preserved.

When you add a link via the command palette, the path is stored automatically. For files inside the vault it looks like:

videos/lecture.mp4

For files outside the vault, standard .. notation is used:

../videos/podcastOne/videoOne.mp4

Absolute paths are also supported and stored as-is:

/home/user/videos/lecture.mp4

Settings

Setting Description
Remember last folder When adding a new link, open the file picker starting from the last folder you used instead of the vault root.
Relocalize files based on their hash (Experimental) Store an MD5 hash and file size when creating links. Enables the Update/relocalize links command to find files that have been moved.
End-of-video buffer (seconds) When saving the timestamp after closing a video, cap it this many seconds before the end. Prevents links that instantly reopen and close when the video has ended. Default: 5.

Video demonstration

https://github.com/patsh90/mpv-obsidian-plugin/assets/96721578/09bb5840-f4f0-44c3-8f73-c699ef1a952b

Development

Local Build

To build and package the plugin locally:

bun run build-local

This will create a zip file named release_TIMESTAMP.zip containing the necessary files for the plugin.

Credits

Many thanks to Yomaru Hananoshika for publishing ready made skeleton for developing plugins https://github.com/TopTierTools/obsidian-sample-plugin

HealthExcellent
ReviewSatisfactory
About
Add buttons that link to local video files and open them in mpv at a saved timestamp. Save and update playback timestamps automatically on close and keep links portable using mpv_link code blocks with relative or absolute paths for relocalization.
VideoLinksFiles
Details
Current version
1.0.14
Last updated
Last month
Created
2 years ago
Updates
12 releases
Downloads
2k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
patsh90patsh90
github.com/patsh90
GitHubpatsh90
  1. Community
  2. Plugins
  3. Video
  4. mpv links

Related plugins

Advanced URI

Control everything with URI.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Note Refactor

Extract note content into new notes and split notes.

Custom Attachment Location

Customize attachment location with variables($filename, $data, etc) like Typora.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)