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.2.tar.gz (39.4 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.2-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fluxmedia-1.4.2.tar.gz
  • Upload date:
  • Size: 39.4 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.2.tar.gz
Algorithm Hash digest
SHA256 bad5754dd53e3e81227d2ee386eb68da03cf9364d3ea21b9c3e1c836aca5281e
MD5 ee1072d737312d4b821dd1f6608cf694
BLAKE2b-256 fde6d11321fb2cea467b9539fe33b80336b89ef4c609464971d9ac9d9015dc24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fluxmedia-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 37.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8023da75d8a8d20ddcadfb1c9a111d033ef4bc0643a9bfa5480bb581042037d4
MD5 4bd487b1b2193579dd5c1e94b36dfaed
BLAKE2b-256 5e889548d173d26d141e82d4f387510856bd11931c4140d9e027ae2a5a2163c4

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