mpv audio + video playback plugin for ovos-media (and the legacy ovos-audio service)
Project description
MPV OVOS Plugin
The MPV OVOS Plugin integrates MPV media player capabilities with the Open Voice OS (OVOS) ecosystem, providing an audio backend for playing various media formats.
Features
- Supports playback of various audio formats.
- Provides basic playback controls: play, pause, stop, resume, seek forward, seek backward.
- Volume management with automatic volume adjustments.
- Integration with OVOS for media playback
Prerequisites
Ensure you have the following installed on your system:
- Python 3.6 or higher
- MPV media player
- Open Voice OS (OVOS) components
Configuration
The MPV OVOS Plugin configuration can be set in your OVOS configuration file. Here is an example configuration:
{
"backends": {
"mpv": {
"type": "ovos_mpv",
"active": true,
"initial_volume": 100,
"low_volume": 50
}
}
}
Usage
The plugin integrates with OVOS to handle audio playback. It supports the following functions:
- play(repeat=False): Play the current track.
- stop(): Stop playback.
- pause(): Pause playback.
- resume(): Resume paused playback.
- lower_volume(): Lower the volume to a predefined level.
- restore_volume(): Restore the volume to the original level.
- track_info(): Get information about the current track.
- get_track_length(): Get the duration of the current track in milliseconds.
- get_track_position(): Get the current playback position in milliseconds.
- set_track_position(milliseconds): Set the playback position in milliseconds.
- seek_forward(seconds=1): Seek forward by a specified number of seconds.
- seek_backward(seconds=1): Seek backward by a specified number of seconds.
Troubleshooting
If you encounter any issues, ensure that:
- MPV is correctly installed and accessible.
- The plugin is installed.
- Your configuration file is correctly set up.
- If using containers ensure it is installed in
ovos-audiocontainer
For further assistance, refer to the official documentation or contact the plugin maintainers.
Check the logs to see what is happening, if specific streams are not playing verify that they play directly in MPV
Project details
Release history Release notifications | RSS feed
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.0a2.tar.gz.
File metadata
- Download URL: ovos_media_plugin_mpv-1.0.0a2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef6cf1fc23a89a170a4eb3320f40a0a0dc74ffddffa820656d904e9d8ed90b18
|
|
| MD5 |
77ea4df868c39f30e78fc5a2d3add9f7
|
|
| BLAKE2b-256 |
07ef54655a8ce60a8eb0e1b6adc73992b5e2048f5e803888e9eac8a465e8ce9a
|
File details
Details for the file ovos_media_plugin_mpv-1.0.0a2-py3-none-any.whl.
File metadata
- Download URL: ovos_media_plugin_mpv-1.0.0a2-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58432e6a56cedfa982539b476daee7e68fa9806dcd2470da9ce559c07dda35b7
|
|
| MD5 |
173d93367a4746320dc2df6350e7cf3c
|
|
| BLAKE2b-256 |
f1e4bf0b7d2f8d19261343e71fcfba9ba15604c3557dc5b7146167626367fb1e
|