antonermolaev / cloudflare-stream-downloader

Download tool for Cloudflare Stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

☁️ 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.

About

Download tool for Cloudflare Stream


Languages

Language:Go 98.6%Language:Makefile 1.4%