Skip to main content

One-command streaming website starter

Project description

Stream Website (FastAPI Based)

An automated tool to set up a live streaming website using FastAPI and MediaMTX.

Installation

pip install stream-website

Usage

Simply run the following command:

python -m stream-website

Then go to:

http://localhost:8000

in your browser to access the website.

Your stream will be available at:

http://localhost:8888/live/stream/index.m3u8

How to Stream with OBS

To start streaming from OBS (Open Broadcaster Software):

  1. Open OBS and go to Settings > Stream.
  2. Set the Service to Custom....
  3. Set the Server (RTMP URL) to:
    rtmp://localhost:1935/live
    
  4. Set the Stream Key to:
    stream
    
  5. Click Start Streaming.

Your stream will now be available at the m3u8 link above.

Important: Port Configuration & Public Access

To make your system fully accessible and functional for external users, you must understand the port logic:

  • Website Interface (Port 8000): Forwarding this port makes the website accessible. However, it only shows the web interface.
  • Live Stream Feed (Port 8888): This is the default port for MediaMTX data. You must also forward this port to make the actual video broadcast viewable to the public.

Note: Opening only port 8000 will result in a "video not found" or loading error for external users. Both 8000 and 8888 ports must be open.

Project details


Download files

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

Source Distribution

stream_website-0.1.1.tar.gz (23.9 MB view details)

Uploaded Source

Built Distribution

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

stream_website-0.1.1-py3-none-any.whl (23.9 MB view details)

Uploaded Python 3

File details

Details for the file stream_website-0.1.1.tar.gz.

File metadata

  • Download URL: stream_website-0.1.1.tar.gz
  • Upload date:
  • Size: 23.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for stream_website-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0efaf78b6813de7e92f44e2f8eec45c9933f122f5572c89571b736386d1590df
MD5 29c834620695dd29b5917ef6ac9e96ab
BLAKE2b-256 227df4724ca1ad97a68e5c22414115b13d149b520db717263752d8231fab5a3b

See more details on using hashes here.

File details

Details for the file stream_website-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: stream_website-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for stream_website-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4f3eb514ad10870633322169fa16489f0f0e654c23d529f8e3aad10692ad85c
MD5 bc7ff3746789cbda8a9987c6cff2d2b0
BLAKE2b-256 750e2fd155e9be491423c5bdf1d897a01f12a0ee9b758c6817cdea4bca1d3e7e

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