Stormix / 24-7-livestream

Do you know Lofi girl?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

24/7 Livestream

A tool to create a 24/7 livestream from a given list of videos and audio files. The tool will automatically loop the videos and audio files to create a seamless livestream. Similar to 24/7 lofi hip hop radio.

Installation

Requirements

Install

bun install

Usage

Configuration

The configuration is done in the .env file. The following variables are available:

Variable Description Default
STREAM_KEY The stream key of the livestream. ''
STREAM_URL The URL of the livestream. rtmp://localhost/live
VIDEO_DIRECTORY The directory where the videos are located. ./videos
AUDIO_DIRECTORY The directory where the audio files are located. ./audio
PORT The port of the webserver. 3000
RETRIES The number of retries when ffmpeg fails. 3

Start

bun start

Development

bun dev

Build

bun build

Docker

docker build -t 24-7-livestream .
docker run -d 24-7-livestream

About

Do you know Lofi girl?


Languages

Language:TypeScript 91.3%Language:Dockerfile 6.3%Language:JavaScript 2.5%