{"categories":[{"label":"Players","url":"https://skillfed.io/packages/category/multimedia-sound-audio-players"},{"label":"Display","url":"https://skillfed.io/packages/category/multimedia-video-display"}],"enrichment":{"capability":"Python ctypes-based interface to the mpv media player, exposing mpv's API for programmatic control of video and audio playback.","skillfed_tags":["media-player","ctypes-binding","multimedia"],"use_cases":["Build a media player application with custom UI by controlling mpv playback and reading properties like time position and metadata","Automate video or audio processing workflows that need frame-accurate playback control or filter chain manipulation","Create a playlist manager or streaming client that plays URLs (including YouTube via youtube-dl) programmatically","Capture screenshots or overlays from video during playback for analysis or annotation","Integrate mpv playback into a larger Python application without reimplementing media handling"],"what_it_does":"python-mpv is a Python wrapper around libmpv, the mpv media player's C library, using ctypes to expose mpv's full command and property API. It lets you programmatically control video and audio playback\u2014play files or streams, adjust properties like fullscreen and volume, bind keyboard shortcuts, capture screenshots, and handle playback events\u2014all from Python code.\n\nThe package is single-file and self-contained, with no Python runtime dependencies; you only need libmpv installed on your system. It handles threading internally for event processing, though you can disable that and integrate with external event loops if needed. The API closely mirrors mpv's native input commands and properties, so the mpv manual is your primary reference for what you can do.","worth_installing":"Yes, if you need programmatic control of mpv playback and can manage the external libmpv dependency. The package is stable and production-ready, with low install friction and no Python dependencies. However, the 476-day release gap and known macOS event-handling issues warrant checking current compatibility with your mpv version and target platform before committing to production use."},"id":"python-mpv","links":{"html":"https://skillfed.io/packages/python-mpv","md":"https://skillfed.io/packages/python-mpv.md","pypi":"https://pypi.org/project/python-mpv/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-04-25","license_spdx":null,"license_treatment":"copyleft","name":"python-mpv","python_support":"supports_current","summary":"A python interface to the mpv media player"},"popularity":{"monthly_downloads":111608,"position":12408,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.8"}
