LiveStreamDVR logo

LiveStreamDVR

  •  0 ratings
In category: Archiving and Digital Preservation (DP)

About LiveStreamDVR

An automatic Twitch recorder capable of capturing live streams, chat messages and stream metadata.

  •   602  
  •   0  
  •   0  
  •   0  
Github stats:
  •  Commits: N/A  
  •   N/A  
  •   N/A  
  •  Latest commit: N/A  

Deploy this app to Linode with a free $100 credit!

Languages/Platforms/Technologies:
Lincenses:

  Depends on a proprietary service outside the user's control

More about LiveStreamDVR

LiveStreamDVR

Check Server Check Client Publish Docker image Docker Pulls Server version Client version

1603661434863-wc

⚠️⚠️⚠️

Until Twitch changes the max quota on Websocket Eventsubs, a public facing HTTPS server is required for this application to function.

A reverse proxy is a good way to get around this: - Nginx - Apache - Caddy - Traefik

etc. I have only tested this with Nginx and letsencrypt.

⚠️⚠️⚠️

Features

  • Automatic VOD recording around when the stream goes live, instead of checking it every minute like many other scripts do.
    • Because of notification delays, the stream usually starts capturing after ~2 minutes after the stream goes live.
  • Cyclic recording, as in when a specified amount or storage per streamer is reached, the oldest stream gets deleted.
  • Tons of metadata, maybe too much. Stores info about games played, stream titles, duration, if the stream got muted from copyrighted music, etc.
  • Viewer count logging with graphs.
  • Chapters (titles and games) are written to the final video file.
  • Video player with chat playback.
  • Video cutter with chapter display for easy exporting, also cuts the downloaded chat for synced rendering.
  • Notifications with optional speech when the website is open, get stream live notifications far earlier than the mobile app does.
  • Writes a losslesscut compatible csv file for the full VOD, so you don't have to find all the games.
  • Uses ts instead of mp4 so if the stream or program crashes, the file won't be corrupted.
  • Audio only support.
  • Optionally either dumps chat while capturing or downloads the chat file after it's done.
  • Basic tools for downloading any VOD, chat, or clip.
  • Can be set to automatically download the whole stream chat to a JSON file, to be used in my twitch-vod-chat webapp or automatically burned in with TwitchDownloader.
  • Basic webhook support for external scripting.
  • Notifications over the browser, telegram, pushover, and discord.
  • Mobile friendly site with PWA.
  • Exporting of videos to external file, SFTP, and YouTube.
    • Can be enabled for all finished captures
    • Can be run for an entire channel at once

One high-profile streamer VOD of 10 hours at 1080p60 is about 30-50GB.

Post issues/help on the issues tab above. I already run an up-to-date version, so starting fresh might break stuff.

Thanks to the contributors that helped expand the project!

ko-fi

WebStorm


Docker setup

Reminder that I don't use docker myself on my capturing setup, so any specific errors to this are hard to test.

Docker hub

  1. Download the docker-compose.yml file and place it in a directory.
  2. Run docker-compose pull and docker-compose up -d to start it.
  3. Visit the webapp at localhost:8082
  4. Check stored vods in the /data/storage directory. Permissions might be an issue.

Hub: https://hub.docker.com/r/mrbrax/twitchautomator

The dockerhub build is preconfigured to be hosted at the root (/) and such, does not work when placed in a subdirectory.

Manual build

Run docker-compose up --build -d in the app directory. The docker-compose.yml file is required.

If you want the public webapp to have a custom base folder, you must provide BASE_URL and VUE_APP_BASE_URL in the environment variable settings.


Standalone setup

Main requirements

  • node.js 18+
  • npm and yarn 3+
  • Python 3.8+
  • pip
  • FFmpeg
  • MediaInfo
  • TwitchDownloader (optional for chat downloading and burning)
  • Public facing webserver (nginx, apache, etc) for reverse proxy with an HTTP certificate that's valid (Let's Encrypt works fine)

pip packages

Steps

  1. Clone the repository with submodules git clone --recurse-submodules https://github.com/MrBrax/LiveStreamDVR.git (zip download doesn't include submodules, Git help
    • If anyone knows how to make an automatic zip release with all the packages using GitHub Actions, please let me know.
  2. Place the downloaded files in a folder with good permissions.
  3. Enter the root folder and run pip install -r requirements.txt
  4. Build the packages (yarn pnp is now used, so yarn install might not be required)
    • Enter the /twitch-vod-chat folder and run yarn install and yarn run buildlib.
    • Enter the /client-vue folder and run yarn install and yarn run build.
    • Enter the /server folder and run yarn install and yarn run build.
    • Enter the /twitch-chat-dumper folder and run yarn install and yarn run build.
  5. In the /server folder, run yarn run start to start the server in production mode.
  6. Go to the settings page and set up basic stuff, get api key from twitch dev site.
  7. Check the About page for subscription status.
  8. Check stored vods in the /data/storage directory. Permissions might be an issue.

Follow this guide to hackjob nginx: https://serversforhackers.com/c/nginx-php-in-subdirectory

Command line arguments

--port <number>

Specify port to run the server on.

--debug

Run the server in debug mode.

--dataroot <path>

Specify the data directory to use.

--home

Store the data in the home directory.


Environment variables

TCD_ENABLE_FILES_API=1

Enable the files api, making it possible to download and delete files in storage. This might open up filesystem exploits.

TCD_EXPOSE_LOGS_TO_PUBLIC=1

Make viewing logs in the file manager possible. Requires the above environment variable to be set.

TCD_MIGRATE_OLD_VOD_JSON=1

Migrate old vod json files to the new format. This is automatically done when the server starts. Make sure to back up your data before doing this, as it will overwrite the old files and can't be undone. Bugs might occur, so use with caution.

Comments (0)

Please login to join the discussion on this project.

LiveStreamDVR Reviews (0)

Overall Rating

None

based on 0 ratings

Please login to review this project.

No reviews for this project yet.

↑ back to top

pCloud Lifetime

Popular Projects

FluxBB

in Social Networks and Forums
 33k    0    0    0  

Nextcloud

in File Transfer & Synchronization
 20k    1    1    0  

Libreddit

in Social Networks and Forums
 7k    0    1    0  

CasaOS

in Self-hosting Solutions
 5k    0    0    0  

Dashboard

in Personal Dashboards
 5k    0    0    0  

Audiobookshelf

in Audio Streaming
 5k    0    1    0  

Mediagoblin

in Photo and Video Galleries
 4k    0    0    0  

Most Discussed

Nextcloud

in File Transfer & Synchronization
 20k    1    1    0  

Tube Archivist

in Automation
 3k    0    1    0  

OneDev

in Project Management
 2k    0    0    0  

iodine

in Proxy
 2k    0    0    0  

Alf.io

in Booking and Scheduling
 2k    0    0    0  

sysPass

in Password Managers
 1k    0    0    0  

Misskey

in Social Networks and Forums
 2k    0    0    0  
Linux VPS from $11/yr.
RackNerd VPS for $11.38/mo

Top Rated Projects

Gitea

 1 rating
in Project Management

Bagisto

 1 rating
in E-commerce

LinkAce

 1 rating
in Bookmarks and Link Sharing

Pydio

 1 rating
in File Transfer & Synchronization

Audiobookshelf

 1 rating
in Audio Streaming

Nextcloud

 1 rating
in File Transfer & Synchronization

Seafile

 1 rating
in File Transfer & Synchronization

Categories

You May Also Be Interested In

Ganymede logo
Ganymede cover

Ganymede

Twitch VOD and Live Stream archiving platform. Includes a r…

Omeka S logo
Omeka S cover

Omeka S

Omeka S is a web publication system for universities, galle…

CKAN logo
CKAN cover

CKAN

CKAN is a tool for making open data websites.