Skip to main content

FluxMedia - Cross-platform Command-Line Media Downloader

Project description

🌊 FluxMedia

FluxMedia is a powerful, open-source, and cross-platform command-line media downloader designed for simplicity, robustness, and speed. Built on top of yt-dlp and rich, it provides a beautiful terminal user interface (TUI) to download videos, audio streams, playlists, channel uploads, and subtitles from thousands of supported websites.


🚀 Quick Start

1. Installation

Install FluxMedia globally on any system running Python 3.10+ directly via pip:

pip install fluxmedia

2. Execution

Run the interface from any terminal or command prompt:

fluxmedia

✨ Key Features

  • Dynamic Console TUI: Renders rich tables, panels, and live progress bars for download speeds, ETA, and file sizes.
  • Smart Audio Extraction: Automatically extract and convert media into high-quality MP3 (192kbps) with embedded cover art and metadata (requires FFmpeg).
  • Metadata & Cover Art Embedding: Automatically write video thumbnails and details (description, uploader, dates) directly into your downloads.
  • Batch Downloads: Save entire playlists or recent uploads from content creator channels.
  • Subtitles Capturing: Download caption files directly for specified language codes.
  • Global Settings: Customize download folders, default formats, filename structures, and UI themes inside the app.

🛠️ Requirements & Setup

  • Python: Version 3.10 or higher.
  • FFmpeg (Highly Recommended): Required for merging high-definition video formats and converting audio to MP3.
    • Windows: winget install Gyan.FFmpeg
    • macOS: brew install ffmpeg
    • Linux: sudo apt install ffmpeg

🔍 Troubleshooting

1. LAN QR Sharing Fails on Phone/Tablet

If your phone cannot load the link generated by the QR Share Server (http://<IP>:8000):

  • Windows Network Profile: Windows Firewall blocks incoming traffic on Public networks. Open Windows Settings ➔ Network & internetWi-Fi, click your connection properties, and change the network profile type to Private.
  • Windows Firewall Inbound Rule: Add an inbound firewall rule in PowerShell to whitelist port 8000:
    New-NetFirewallRule -DisplayName "FluxMedia LAN Share" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 8000-8020
    
  • Same Network: Ensure your phone is connected to the exact same Wi-Fi connection (or phone hotspot) as your laptop.

2. Audio Extraction or Trimming Fails

  • FFmpeg Dependency: Merging streams, converting to MP3/M4A, and trimming downloads require FFmpeg. Make sure you have FFmpeg installed on your machine and added to your system's PATH. If FFmpeg is missing, install it as follows:
    • Windows: winget install Gyan.FFmpeg
    • Termux (Android): pkg install ffmpeg
    • macOS: brew install ffmpeg

3. Permission Denied on Android (Termux)

If downloads fail with PermissionError when writing to /sdcard/Download/FluxMediaDownloads/:

  • Run the following command in Termux to grant file system storage access permissions:
    termux-setup-storage
    

4. Locked Files on Windows Update (WinError 32 / Access is Denied)

If upgrading FluxMedia or yt-dlp inside the app fails because the files are locked in memory:

  • Close the application and run the update command directly from a standard terminal window:
    pip install -U fluxmedia
    

5. SSL Certificate Verification Failures (SSLError)

If downloads fail with [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate:

  • macOS Users: Go to your Applications/Python folder and double-click Install Certificates.command to download and install the required root certificates.
  • All Platforms: Run the following command in your terminal to upgrade your root certificates library:
    pip install --upgrade certifi
    

6. Slow Download Speeds & Throttling

If download speeds are extremely slow:

  • Update the Downloader Engine: Media platforms frequently change their streaming protocols. Go to main menu option 11. Updates Manager and select 1. Update yt-dlp to fetch the latest download engine patches.
  • ISP Throttling: Some ISPs throttle automated HTTP video requests. Running a VPN can bypass these local network throttling blocks.

7. HTTP 403 Forbidden / Sign-In Required / Age-Restricted Errors

If downloads fail with HTTP Error 403: Forbidden, age-restriction walls, or geo-blocks:

  • Pass Cookies: You can pass authentication credentials from your browser. Go to main menu option 10. Configuration ➔ 7. Preferred Cookies Browser and choose the browser you use (e.g., chrome, edge, firefox, brave, or safari). This allows FluxMedia to download files using your active browser session cookies without typing your password.

8. ExtractorError / Unsupported URL

If you get parsing errors on newer video layouts:

  • Simply run the Updates Manager inside the app (Option 11) or upgrade the core downloader from your command prompt:
    pip install -U yt-dlp
    

👑 Credits & Support

This project was created and is fully maintained by Priyanshu Chauhan (@pdev-labs). I am a student in India (Standard 11, PCM with CS) and I spent a couple of weeks designing, coding, and perfecting FluxMedia alone.

If you find this tool helpful, please support my work by giving it a star on GitHub! ⭐


🐛 Bugs, Errors & Feedback

Got an issue, bug, or feature request? I would love to hear from you! Please file reports directly at: 👉 FluxMedia Issue Tracker

To help me resolve errors quickly, please:

  1. Search active issues first to avoid duplicate bug tickets.
  2. Provide details about your Operating System and whether FFmpeg is installed.
  3. Paste logs or stderr dumps. (Local execution logs are saved inside your home directory under ~/.fluxmedia/fluxmedia.log).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluxmedia-1.4.3.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxmedia-1.4.3-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file fluxmedia-1.4.3.tar.gz.

File metadata

  • Download URL: fluxmedia-1.4.3.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for fluxmedia-1.4.3.tar.gz
Algorithm Hash digest
SHA256 c5fd5c99f53f3d737eba061aa6dc1baf8076bad2b40f19ac1559bc5f6ac07535
MD5 cab9c0f581bffd4425f6ab7fc2cd7fb3
BLAKE2b-256 930f6ee795ce1e45c2e264f0c1583c9c5b3101073b4d8232cd0c8b1205483b3e

See more details on using hashes here.

File details

Details for the file fluxmedia-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: fluxmedia-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for fluxmedia-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 deb5d3e1de949234f9b0b91688a77af5ce6d121f8fc16a4940dbb62ad05802c8
MD5 b3c0b4cf92894fec01e28a2f728dcd91
BLAKE2b-256 a77c847f4274c83e01cb542390cb16cd7934cd19e355f0519ef65ee370c49680

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page