Code Monkey home page Code Monkey logo

ttvldr's Introduction

README

Thanks to fonsleenaars for information about Usher API and overall info about HLS and VODs

Info

ttvldr is a CLI tool that uses Twitch API to download VODs from Twitch and ffmpeg to process downloaded chunks in a single file. So, that's why you should download FFMpeg explicitly.

I don't use any compression because this operation is very expensive in case of time and CPU usage even with -crf 25 option or ultrafast preset (or even both of them). Even with libx265 codec.

So if you want to compress file — you should do it by hand after downloading the VOD.

Source codes does not import any third party packages so you don't need to do an extra go get if you want to make changes in code.

Warning

Since that official Twitch API does not support most of API versions that used in ttvldr — they can be closed in any moment. Keep it in mind when you will download any VODs from Twitch.tv.

If you're continuing getting errors while connecting to the server — try to run ttvldr with -debug option — it may make more clear for you if something went wrong with Twitch API or it's just errors in ttvldr itself.

Download

You can find the latest release here. There are versions for:

  • Windows (binary tested)
  • GNU/Linux
  • macOS

If you are experiencing any problems with a binary for any listed OS — please, contact me.

Usage

Basic usage of ttvldr is next:

ttvldr <option> <link to VOD>

Examples of usage the tool:

ttvldr https://www.twitch.tv/videos/123456789 — download a full VOD
ttvldr -start 1h2m3s -end 1h5m33s twitch.tv/videos/123456789 — download a part a of given VOD

All options you can find under with ttvldr -help command.

If you are experienced user — you can make a CPU or MEM profiles. I don't know why but I given this opportunity:

ttvldr -cpuprofile cpu.out -memprofile mem.out twitch.tv/videos/123456789

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.