Git Product home page Git Product logo

twitch-stream-recorder's Introduction

twitch-stream-recorder

A Docker container to automatically record Twitch streams.

Added by CanardConfit

Streams are saved in a single folder separate from the others instead of a general folder.

Description

This repository hosts the source code for a Docker container that can automatically record livestreams from Twitch as they go live. The main component is from Ancalentari Twitch Stream Recorder.

Requirements

To run this container and record streams from Twitch, you need to register a dummy app and get a client_id and client_secret. Both is explained in the setup section.

Setup

The container needs a few configuration parameters. These are:

USERNAME - name of the streamer you want to record (Change this accordingly!)
QUALITY - this uses the streamlink STREAM setting to choose the quality to record.
CLIENT_ID - you can grab this from here once you register your application (Replace with your own!)
CLIENT_SECRET - you generate this here as well, for your registered application (Replace with your own!) AUTH_TOKEN - optionally your OAuth Token to prevent ad breaks if you're subscribed to the streamer.
only add the string consisting of 30 alphanumerical characters without any quotations

Usage

Start the container with the following docker run command:

docker run -d \
   -e USERNAME=your_favourite_streamer \
   -e QUALITY=best \
   -e CLIENT_ID=your_client_id \
   -e CLIENT_SECRET=your_client_secret \
   -e AUTH_TOKEN=your_oauth_token_cookie \
   -v /path/to/recordings:/opt/recordings \
   ghcr.io/stefomat/twitch-stream-recorder:master

The options in this command:
-v /path/to/recordings:/opt/recordings Map a folder of your choice (left of ":") to a defined location in the container (right of ":"). This is the place where all recordings will be saved to.
ghcr.io/stefomat/twitch-stream-recorder:master Use the "master" tag for the latest version, that's the GitHub branch from which the Docker images will be built.

You can also run it as a docker-compose setup.

---
version: "2"

services:
  twitch-stream-recorder:
    image: ghcr.io/stefomat/twitch-stream-recorder:master
    container_name: twitch-stream-recorder
    environment:
      - USERNAME=your_favourite_streamer
      - QUALITY=best
      - CLIENT_ID=your_client_id
      - CLIENT_SECRET=your_client_secret
      - AUTH_TOKEN=your_oauth_token_cookie
    volumes:
      - /path/to/recordings:/opt/recordings
    restart: unless-stopped

Notes

Open TODOs for future improvements:

  • Switch to alpine based images
  • Add "tini" init system
  • Allow configuration via env variables
  • Run process as non-root user?
  • Cross build image for ARM architecture?

twitch-stream-recorder's People

Contributors

stefomat avatar canardconfit avatar ancalentari avatar mlindgren avatar dependabot[bot] avatar mouarflenoob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.