#mpv #playback #libmpv #media

libmpv-sirno

Libmpv abstraction that's easy to use and can play next to all codecs and containers

1 release (0 unstable)

2.0.2-fork.1 Dec 28, 2022

#209 in Video

Download history 30/week @ 2023-11-20 20/week @ 2023-11-27 15/week @ 2023-12-04 21/week @ 2023-12-11 19/week @ 2023-12-18 15/week @ 2023-12-25 18/week @ 2024-01-01 23/week @ 2024-01-08 17/week @ 2024-01-15 10/week @ 2024-01-22 45/week @ 2024-01-29 23/week @ 2024-02-05 35/week @ 2024-02-12 41/week @ 2024-02-19 53/week @ 2024-02-26 60/week @ 2024-03-04

193 downloads per month
Used in 4 crates

LGPL-2.1

1MB
5.5K SLoC

libmpv-rs

A libmpv abstraction written in rust that's easy to use and provides the ability to read next to all video and audio codecs.

Note

This is a personal fork that will be deleted as soon as the original repository is active again.

Dependencies

Rust version >= 1.30. Libmpv version 1.101 (mpv version 0.29.1) is the minimum required version.

For ease of building, you can use the build_libmpv feature that is used to link against. Especially useful to cross compile to windows. The MPV_SOURCE environment variable needs to be set to a directory containing the mpv source you want to build against. For windows targets this is expected to be already built, with a directory named MPV_SOURCE/64 or /32 containing build artifacts for 64-bit and 32-bit targets respectively. On unix this is expected to be a copy of the mpv-build repo.

Examples

To run an example, execute cargo run [--release] --example x --test-data/speech_12kbps_mb.wav, where x is any of:

  • events: event enumeration
  • protocol: implementation of custom filereader:// protocol that… reads files

Contributing

All pull requests/issues welcome.

Dependencies