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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_website-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a17be730a419cafaa235bd874a7de3bdcc8f342653b57ed97f331fc4e29d0742
MD5 97076772c2eb9a934d4e2468b89efb20
BLAKE2b-256 938d7d806a8325621919fc4741021aa9dc0f87535c696b097576c71ad122e840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stream_website-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04a942b0849966a0c2d731fb0b8ed45665599875dfde4b73d981cd8c2446d778
MD5 1238f7f56c696e8b9f9b9144bf0e69d7
BLAKE2b-256 7e1e9d3affddf64e6243ed6521212228ff70f2732adbc592006be31f5d757045

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