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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_website-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ef14aa7d59ce72d677afafa34ab2131a3016b75fbdcadb327a6c9056e1ca8bd6
MD5 00e031eef30b472b82797ede7bc16e0f
BLAKE2b-256 1f24c57d51a8ae59e5ba8244f66c563ecce7d22de2eccf6a88fce374a95e820e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stream_website-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9df8b692f020e8f39eba18e1d0fbb666a237c9e1f4233db31e9b392cd028fea7
MD5 42e70c1b44e47d05973d61127a27ec59
BLAKE2b-256 038602cd53e5b3c7ca6689a4cfeb67c0a1c72f3e7dc666f3783564404872bf05

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