A Python tool to download Cloudflare Stream videos with automatic FFmpeg management.
Project description
Cloudflare Stream Video Downloader A simple and easy-to-use Python script for downloading videos from Cloudflare Stream. This tool automatically checks for and attempts to install FFmpeg (on Windows and Linux), then converts Cloudflare Stream video links into downloadable .mp4 files.
✨ Features Automatic FFmpeg Management: Automatically detects if FFmpeg is installed on the system and attempts to download and install it on Windows and major Linux distributions.
Cloudflare Stream URL Conversion: Converts Cloudflare Stream URLs in thumbnails/thumbnail.jpg format to manifest/video.m3u8 format, which is suitable for FFmpeg download.
Video Download: Uses FFmpeg to download videos and saves them in .mp4 format.
Download Progress Display: Shows real-time FFmpeg progress output during the download.
🚀 How to Use Prerequisites Python 3.x
FFmpeg (The tool will attempt to install it for you automatically; if it fails, you may need to install it manually)
Install Dependencies You only need to install the requests library to handle HTTP requests:
pip install requests
Run the Script
git clone https://github.com/LovelyO0sam/cloudflare-stream-downloader.git
cd cloudflare-stream-downloader
python cloudflare-stream-downloader.py
Follow the prompts to enter the Cloudflare Stream video URL. Please ensure the URL contains thumbnails/thumbnail.jpg or manifest/video.m3u8.
Example URL Format:
https://customer-XXXXX.cloudflarestream.com/YYYYYYYYYYYYYYYYYYYYYYYY/thumbnails/thumbnail.jpg
https://customer-XXXXX.cloudflarestream.com/YYYYYYYYYYYYYYYYYYYYYYYY/manifest/video.m3u8
Enter the desired output filename for the video (no extension needed; the script will automatically add .mp4).
The script will automatically convert the URL and start the download.
💻 Supported Operating Systems Windows: Supports automatic FFmpeg download and installation.
Linux (Debian/Ubuntu, CentOS/RHEL/Fedora, Arch): Supports automatic FFmpeg installation via package managers.
macOS and other systems: Requires manual FFmpeg installation (e.g., macOS users can use Homebrew: brew install ffmpeg).
🤝 Contributing Contributions of any kind are welcome! If you have suggestions for improvement, found a bug, or want to add a new feature, feel free to submit an Issue or Pull Request.
📄 License This project is licensed under the MIT License. For more details, please see the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudflare_stream_downloader-0.1.1.tar.gz.
File metadata
- Download URL: cloudflare_stream_downloader-0.1.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd6d5c98694c0e4151b46bdacce6dd18dd6fa43f647c21947dee3a2026a0cde1
|
|
| MD5 |
01622ee012e5210b98eda25e579916a0
|
|
| BLAKE2b-256 |
b7ce421dba95b3370ba314fca608b560a2e9f8e1f1fffca3a4cb0840638f8fd4
|
File details
Details for the file cloudflare_stream_downloader-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cloudflare_stream_downloader-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99a094756ba006a73723d589182671198c9d5c00a12670fadf30033bfdab2bf4
|
|
| MD5 |
9624fefe9245c7b37e7ab51d1c118147
|
|
| BLAKE2b-256 |
3596faaf28dc461290ba165cf751c0d089e8bde945aefcde2980433a0e6d5769
|