Skip to main content
Pre-release

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

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)

Source distribution for ovos-media-plugin-ffplay 0.0.5a1
File Size Uploaded
ovos_media_plugin_ffplay-0.0.5a1.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-media-plugin-ffplay 0.0.5a1
File Interpreter ABI Platform
ovos_media_plugin_ffplay-0.0.5a1-py3-none-any.whl Python 3 none any Details

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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page