GithubHelp home page GithubHelp logo

jryans / cloudflare-stream-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schachte/cloudflare-stream-downloader

0.0 1.0 0.0 106 KB

Download tool for Cloudflare Stream

Go 98.58% Makefile 1.42%

cloudflare-stream-downloader's Introduction

☁️ Cloudflare Stream Video Downloader

Utility to download MP4 videos and individual MPEG-TS segments for varying resolutions off a Cloudflare Stream HLS manifest URL.

Supports

  • ✅ Download video and segments
  • ✅ List available resolutions & manifests
  • ✅ Upload support
  • ✅ Count number of segments

Installation

go install github.com/Schachte/cloudflare-stream-downloader@master

Troubleshooting

  • Make sure you have Go installed on your system - download here
  • Make sure you GOPATH and GOBIN values are set correctly

Example:

GOPATH=$HOME/Documents/go
GOBIN=$GOPATH/bin
PATH=$PATH:$GOBIN
go install github.com/Schachte/cloudflare-stream-downloader@master

cloudflare-stream-downloader <HLS MANIFEST URL>

Usage

cloudflare-stream-downloader <HLS_MANIFEST_URL> 

For building the binary, see section below on Builds & Releases or download latest release here.

You can grab the HLS manifest from the Cloudflare Dash as shown in the image below:

Example Output

cloudflare-stream-downloader https://.../manifest/video.m3u8

Use the arrow keys to navigate: ↓ ↑ → ←
? Cloudflare Stream Downloader::
  ▸ Download video and segments
    List available resolutions
    Count number of segments
    🚫 Exit

✔ Download video and segments
📋 Listing all available resolutions for video UID: f92743594bb2d9471c8ef80b9437c1ff

0) 766x360
1) 510x240
2) 🚫 Exit

📼 Select resolution: 0
🌱 Beginning download for [766x360]
10% complete
20% complete
30% complete
40% complete
50% complete
60% complete
70% complete
80% complete
90% complete
Complete!
---------------------------------------------
Video output:
./f92743594bb2d9471c8ef80b9437c1ff/766x360/f92743594bb2d9471c8ef80b9437c1ff.mp4

Segments output:
./f92743594bb2d9471c8ef80b9437c1ff/766x360/segments/

Playback:
ffplay ./f92743594bb2d9471c8ef80b9437c1ff/766x360/f92743594bb2d9471c8ef80b9437c1ff.mp4
---------------------------------------------

Builds & Releases

Releases

Download latest release here.

or

You can also run the latest builds for all operating systems by running: make all.

cloudflare-stream-downloader's People

Watchers

 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.