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
.tssegments into a single.mp4file usingffmpeg. - 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.
-
Create & Activate Virtual Environment:
# Create the virtual environment uv venv # Activate it (on macOS/Linux) source .venv/bin/activate
-
Install the
lunatvpackage: Installing the package in editable mode (-e) is recommended for development. This will also automatically install all dependencies frompyproject.tomland 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d848efec4c77ca8860175482a32c95d193e54eb6dc7826bddaf58a8f6e111230
|
|
| MD5 |
d66ffb76a46fc2655c484903b1d03ad4
|
|
| BLAKE2b-256 |
5c573ede0792d15e38d6239e547abec6375aabb514ff3896e364b7040755b0d2
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f741c5925efa5e2a1ea6f6c5600d0e9b75b27d7d25b40dd704cb871e47364f
|
|
| MD5 |
b412129c960b5140b01363700edbfb98
|
|
| BLAKE2b-256 |
065c69ef8b05adfaa60659fea3a12b4379d8f505ccf3a646df864a1b64399741
|