This release is a pre-release and may not be stable for production use.
ovos-media-plugin-ffplay
This plugin adds ffplay as an audio backend for ovos-audio and ovos-media. It plays media through the ffplay command from FFmpeg.
Install
pip install ovos-media-plugin-ffplay
Configuration
Edit your mycroft.conf file to expose the ffplay backend.
{
"Audio": {
"backends": {
"ffplay": {
"type": "ovos_ffplay",
"active": true
}
}
}
}
Python usage
The FFPlayAudioPlayer class gives direct access to ffplay.
import time
from ovos_media_plugin_ffplay.ffplay import FFPlayAudioPlayer
# Example usage: playing an MP3 file from a URL
url = "https://github.com/OpenVoiceOS/ovos-skill-easter-eggs/raw/refs/heads/dev/sounds/sing/drnimpo-robots.mp3"
# Create player instance
player = FFPlayAudioPlayer()
# Play media
player.play(url, volume=100)
print(f"Playback time: {player.playback_time} ms")
time.sleep(5)
print(f"Playback time: {player.playback_time} ms")
# Pause media
player.pause()
time.sleep(2)
print(f"Playback time: {player.playback_time} ms")
# Resume media
player.resume()
time.sleep(1)
player.set_track_position(65)
print(f"Playback time: {player.playback_time} ms")
print(f"Volume: {player.volume}")
time.sleep(3)
player.set_volume(30)
print(f"Volume: {player.volume}")
time.sleep(6)
player.set_volume(70)
print(f"Volume: {player.volume}")
player.wait_for_end_of_playback()
Related projects
- OpenVoiceOS/ovos-audio: the audio service that loads this plugin
- OpenVoiceOS/ovos-media: the media service that loads this plugin
Metadata
Release files for ovos-media-plugin-ffplay 0.0.5a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_media_plugin_ffplay-0.0.5a1.tar.gz | 13.3 kB | Without provenance | Details for ovos_media_plugin_ffplay-0.0.5a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_media_plugin_ffplay-0.0.5a1-py3-none-any.whl | Python 3 | none | any | Details for ovos_media_plugin_ffplay-0.0.5a1-py3-none-any.whl |
Total release size: 25.2 kB
Release files / ovos_media_plugin_ffplay-0.0.5a1.tar.gz
| Download URL | ovos_media_plugin_ffplay-0.0.5a1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
233cdef3f812c1220e506254a37bcc296630a382ff98cc79f9c096752d89d1d9
|
|
BLAKE2b-256 checksum How to use checksums |
5dc61171213269b9dbe97b375404fbe1abc05633126a38eeb2f8056d57a097f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_media_plugin_ffplay-0.0.5a1-py3-none-any.whl
| Download URL | ovos_media_plugin_ffplay-0.0.5a1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78798de6604d88da8bf4988d4701194377f1a81816d490db907467fbd8f2edb5
|
|
BLAKE2b-256 checksum How to use checksums |
c218b7db846396eb0c0db557cc5565b0cd85d178e361c9d42db49596ee4196c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for ovos-media-plugin-ffplay 0.0.5a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.