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. You can watch any hls(m3u8) stream from this website. It automatically starts the stream for local "http://localhost:8888/live/stream/index.m3u8". For public stream read last part.

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.

Website:

Screenshot_13 Screenshot_14

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.6.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.6-py3-none-any.whl (23.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_website-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 526cbb202a50108a57226da383061e9af2a0b72743178c50d178cb479f113e5c
MD5 c1468d8e2b3a6a3ec95c6eb4b6dde81e
BLAKE2b-256 6f3b76386c8c7a481535782f62e946ccd1c9b21dac654ef0f7fff36de3f355ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stream_website-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 212ee7fb76a00963e6407e32d9c98c91b606c3a51008c7326c8280d35668372a
MD5 92c7eca0f615c55a88df3146949732ed
BLAKE2b-256 855c7779eb938897e67db553119cf1bc961e68919561bb29b430396512c39303

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