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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_website-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 83ee773529845ceec05e49b6c9030881e2ad3d960b122479c60e958cd4904741
MD5 29a33ae0e67731b6a30694721a65cb62
BLAKE2b-256 88db3c6c41b557cf2537c5e186b38b4b60369d51fbc7454b936aa19b3bd01fcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stream_website-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a01943a7735c853209f6511bbd13de552579b7bfce94e2a2a53706eb823651a5
MD5 04c79cc63365f9122059316f47bfc277
BLAKE2b-256 a67e054497bc16505aca319e275c4fb746d2d5a3d9596002b92f24d2f6693929

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