Giter VIP home page Giter VIP logo

autovod's Introduction

AutoVOD

Releases

This script was created to record broadcasts from Twitch and upload it to YouTube. Broadcasts are downloaded in the best quality, no transcoding, and sent directly to YouTube, meaning no video is stored on the disk and the stream is directly sent back to YouTube.

Table of contents

Standalone Installation

Automatic Installation

sh -c "$(curl -fsSL https://raw.githubusercontent.com/jenslys/autovod/master/install.sh)"

Manual Installation

PM2

apt-get install npm
npm install pm2 -g
pm2 startup

Streamlink

apt-get install python3-pip tar
pip3 install --upgrade streamlink

YouTubeUploader

wget https://github.com/porjo/youtubeuploader/releases/download/21.07/youtubeuploader_linux_amd64.tar.gz
tar -xvf youtubeuploader_linux_amd64.tar.gz && rm youtubeuploader_linux_amd64.tar.gz
mv youtubeuploader_linux_amd64 /usr/local/bin/youtubeuploader

AutoVOD

git clone https://github.com/jenslys/autovod.git
cd autovod

Sample video

wget -c -O sample.mp4 https://download.samplelib.com/mp4/sample-5s.mp4

Setup

Set up your credentials to allow YouTubeUploader to upload videos to YouTube.

  1. Create an account on Google Developers Console
  2. Create a new project
  3. Enable the YouTube Data API (APIs & Auth -> Libary)
  4. Go to the Consent Screen section, setup an external application, fill in your information and add the users that are going to be using the app (Channels you are uploading videos to). Enable the ".../auth/youtube.upload" scope. Then save.
  5. Go to the Credentials section, click "Create credentials" and select "OAuth client ID", select Application Type 'Web Application'. Add a 'Authorised redirect URI' of http://localhost:8080/oauth2callback
  6. Once created click the download (JSON) button in the list and saving it as client_secrets.json
  7. Run youtubeuploader -headlessAuth -filename sample.mp4
  8. Copy-and-paste the URL displayed and open that in your browser.
  9. Copy the resulting authorization code and paste it into the youtubeuploader prompt: "Enter authorization code here:"
  10. If everything goes correctly, it will upload the sample video to the provided YouTube channel.

NOTICE: To be able to upload videos as either "Unlisted or Public", you will have to request an API audit from YouTube for your project. Without an audit your videos will be locked as private.

Usage

Define the Twitch Username

This is the name of the Twitch user whose broadcast will be automatically uploaded to YouTube.

export TWITCH_USER=username

Start AutoVOD

pm2 start AutoVOD.sh --name $TWITCH_USER
pm2 save

Check status

pm2 status

Credit

autovod's People

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.