This release is a pre-release and may not be stable for production use.
ovos-media-plugin-mpv
ovos-media-plugin-mpv is an audio and video playback plugin for OpenVoiceOS (OVOS). It drives the mpv media player through python-mpv-jsonipc and exposes it as a playback backend for ovos-media and the legacy ovos-audio service.
Install
Install the plugin with pip:
pip install ovos-media-plugin-mpv
The plugin needs the mpv media player installed and available on the system.
Usage
OVOS discovers the plugin through entry points, so no code changes are needed. Enable and configure it in your OVOS configuration file:
{
"backends": {
"mpv": {
"type": "ovos_mpv",
"active": true,
"initial_volume": 100,
"low_volume": 50
}
}
}
initial_volume sets the starting volume. low_volume sets the volume used while the assistant lowers playback, for example to speak over a track.
The plugin registers under two entry-point groups, so it works with both stacks:
opm.media.audio/opm.media.video, used by the currentovos-mediaservice.mycroft.plugin.audioservice, used by the legacyovos-audioservice.
Once active, the backend exposes the standard OVOS media-backend API: play, stop, pause, resume, seek forward, seek backward, track position, and track length.
Troubleshooting
- Confirm mpv is installed and runs directly from the command line.
- Confirm the plugin package is installed in the same environment as the OVOS service (in containers, install it inside the
ovos-audiocontainer). - Confirm the backend is active in the configuration file.
- Check the service logs. If a stream does not play, confirm the stream plays directly in mpv.
Related projects
- OpenVoiceOS/ovos-media, the media service that loads this backend.
- OpenVoiceOS/ovos-media-plugin-vlc, a sibling backend that uses VLC.
- OpenVoiceOS/ovos-media-plugin-ffplay, a sibling backend that uses ffplay.
- OpenVoiceOS/ovos-media-plugin-mplayer, a sibling backend that uses mplayer.
License
Apache-2.0. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_media_plugin_mpv-1.0.0a3.tar.gz.
File metadata
- Download URL: ovos_media_plugin_mpv-1.0.0a3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3696d663adaf1a3ec8afa45f465b15a7dda33b0dbf89f8d41a1c11375d0f5d28
|
|
| MD5 |
ab96d0d2e7ab155476df1d7841bb9bdd
|
|
| BLAKE2b-256 |
c227ff598181e17026652894a74c3cd680e1c898a24a6edf6aa407a4f68f06c3
|
File details
Details for the file ovos_media_plugin_mpv-1.0.0a3-py3-none-any.whl.
File metadata
- Download URL: ovos_media_plugin_mpv-1.0.0a3-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb8b8b57675b758802b1dcdac224fb173c561c69865f85fc6e9cfefeb787719
|
|
| MD5 |
d09df12f0a66733a9fa7ee382c6ad45f
|
|
| BLAKE2b-256 |
9c9059bc5b54e3a76f0645fa61369eb661964ce8bbed17c87ec79c985d290461
|