Skip to main content

Unofficial Python wrapper of MediaMTX

Project description

MediaMTX-py

This is an unofficial Python wrapper for MediaMTX

How to use

Execute pip install git+https://github.com/yt-koike/MediaMTX-py(Recommended) or pip install mediamtx-py to install this package.

After installation, you can use MediaMTX like as follows.

from mediamtx import MediaMTX
mtx = MediaMTX("amd64") # In __init__(), the MediaMTX binary will be downloaded
yaml = mtx.get_yaml() # Get mediamtx.yml
yaml["paths"][name] = {"source": url}
mtx.set_yaml(yaml) # Set mediamtx.yml
mtx.start() # Start MediaMTX on another thread
mtx.stop() # Stop the MediaMTX on the thread

MediaMTX() takes four arguments: arch, platform, version and overwrite.

  • arch = Architecture: basically "amd64" or "arm64".
  • platform = Platform OS: basically "linux", "windows" or "darwin". (Default: value of platform.system().lower())
  • version = If set to "latest", it will download the latest MediaMTX. You also can specify the version like "v1.15.3" (Default: "latest")
  • overwrite = If set to False, it will preserve the downloaded MediaMTX. (Default: True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mediamtx_py-0.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file mediamtx_py-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mediamtx_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mediamtx_py-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62d77967811ecd1a71e8a6323089221df96338470d04fe0d08e7dd5a188e8b90
MD5 370c258a9140f5e2aedf102e168f37c5
BLAKE2b-256 70fc2e0c6166b715458a50cb6f3a1cd9e9dcb6940c3edb910d0220eb61368f04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page