mpv

Nim bindings for libmpv

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Installation

nimble install mpv
choosenim install mpv
git clone https://github.com/WeebNetsu/nim-mpv

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
mpv - - - - - - -

Source

Repository https://github.com/WeebNetsu/nim-mpv
Homepage https://github.com/WeebNetsu/nim-mpv
Registry Source nimble_official

README

Nim MPV

Nim bindings for libmpv. Control MPV with Nim!

Take note that this library is just the bindings, you still need to look at the MPV documentation to use it.

Examples

There are a few examples you can run inside the examples directory.

For examples run nimble examples and it will compile all the examples in the examples directory.

Simple Example

simple.nim shows you a simple example on how to use the library, primarily focused on getting a file to be played with MPV.

./simple ~/path/to/file.mp4

Complex Example

complex.nim shows you a slightly more complex example of how you can use this library, this includes getting keyboard input (using ncurses), then using that input to manipulate MPV.

./complex https://www.youtube.com/watch?v=dQw4w9WgXcQ

Dependencies