Skip to main content

A collection of tools for downloading M3U8 video streams.

Project description

LunaTV Tools

A collection of Python scripts for downloading M3U8 video streams.

Features

  • Fast Downloads: The main script, luna_downloader.py, uses multi-threading to download video segments concurrently.
  • Automatic Merging: Automatically merges the downloaded .ts segments into a single .mp4 file using ffmpeg.
  • URL Utilities: Includes other scripts for checking and handling stream URLs.

Requirements

  • Python 3.8+
  • ffmpeg: Must be installed and available in your system's PATH.

Setup & Installation

This project is packaged as a library and can be installed using uv.

  1. Create & Activate Virtual Environment:

    # Create the virtual environment
    uv venv
    
    # Activate it (on macOS/Linux)
    source .venv/bin/activate
    
  2. Install the lunatv package: Installing the package in editable mode (-e) is recommended for development. This will also automatically install all dependencies from pyproject.toml and make the command-line tool available.

    uv pip install -e .
    

Usage

After installation, a command-line tool luna-downloader will be available in your environment.

luna-downloader

The tool will then prompt you to enter the M3U8 URL and the desired output filename.

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

lunatv-0.1.2.dev0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

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

lunatv-0.1.2.dev0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file lunatv-0.1.2.dev0.tar.gz.

File metadata

  • Download URL: lunatv-0.1.2.dev0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lunatv-0.1.2.dev0.tar.gz
Algorithm Hash digest
SHA256 d848efec4c77ca8860175482a32c95d193e54eb6dc7826bddaf58a8f6e111230
MD5 d66ffb76a46fc2655c484903b1d03ad4
BLAKE2b-256 5c573ede0792d15e38d6239e547abec6375aabb514ff3896e364b7040755b0d2

See more details on using hashes here.

File details

Details for the file lunatv-0.1.2.dev0-py3-none-any.whl.

File metadata

  • Download URL: lunatv-0.1.2.dev0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lunatv-0.1.2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7f741c5925efa5e2a1ea6f6c5600d0e9b75b27d7d25b40dd704cb871e47364f
MD5 b412129c960b5140b01363700edbfb98
BLAKE2b-256 065c69ef8b05adfaa60659fea3a12b4379d8f505ccf3a646df864a1b64399741

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