Sign inSign up

imvickykumar999/twitch-live-stream

By imvickykumar999

•Updated 4 months ago

Image
0

219

imvickykumar999/twitch-live-stream repository overview

⁠Twitch-Live-Stream

Web UI to loop a local video to Twitch via ffmpeg.

ss1 ss2

Twitch stream settings: https://dashboard.twitch.tv/u/imvickykumar/settings/stream⁠

⁠Setup

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Place your video file (e.g. InstaLoopLive.mp4) in the project directory or set the full path in the UI.

⁠Run

python app.py

Open http://localhost:5000⁠

⁠Usage

  1. Upload a video with Upload, or enter the path to an existing file.
  2. Paste your Twitch stream key (live_...) or full RTMP URL.
  3. Click Start stream to begin looping the video to Twitch.
  4. Click Stop stream to end the ffmpeg process.

Requires ffmpeg installed and available on PATH.

⁠Docker (background service on port 5000)

Pull from Docker Hub:

docker pull imvickykumar999/twitch-live-stream:latest
docker run -d --name twitchstream -p 5000:5000 \
  -v "$(pwd)/uploads:/app/uploads" \
  --restart unless-stopped \
  imvickykumar999/twitch-live-stream:latest

Or build locally with Compose:

docker-compose up -d --build

Open http://localhost:5000⁠

Docker Hub: https://hub.docker.com/r/imvickykumar999/twitch-live-stream⁠

Useful commands:

docker-compose logs -f    # follow logs
docker-compose stop       # stop container
docker-compose down       # stop and remove container
docker-compose restart    # restart service

Uploaded videos are stored in ./uploads on the host (mounted into the container).

Without Compose:

docker build -t twitchstream:latest .
docker run -d --name twitchstream -p 5000:5000 -v "$(pwd)/uploads:/app/uploads" --restart unless-stopped twitchstream:latest

Tag summary

Content type

Image

Digest

sha256:4a2ae9312…

Size

212.2 MB

Last updated

4 months ago

docker pull imvickykumar999/twitch-live-stream