Skip to main content

Command line tool for downloading HLS streams with FFmpeg

Project description

ViihdexDL

A command line tool for downloading HLS streams with multiple audio and subtitle tracks (designed especially for Elisa Viihde recordings) using FFmpeg.

Requirements

Python 3 and libraries langcodes and Requests are required.

FFmpeg is needed to download streams.

Installation

Use pip to install ViihdeCLI and dependencies

pip install --extra-index-url https://test.pypi.org/simple/ -U viihdexdl

Usage

viihdexdl "URL" "FILENAME" [OPTIONS]

The URL must point to a HLS master playlist.

Options include:

-h, --help            show this help message and exit
-v, --verbose         print FFmpeg command
-c CONFIG FILE, --config CONFIG FILE
                      config file
-s, --subonly         download subtitles only
-e, --extsubs         download subtitles to external files
-a AUDIO LANGUAGES, --audio AUDIO LANGUAGES
                      audio languages, e.g. "fin, en"
-u SUBTITLES, --subtitles SUBTITLES
                      subtitle languages
-b, --begin           start live stream from the first segment
-l LIVE_START_INDEX, --live_start_index LIVE_START_INDEX
                      start live stream from segment
-r VARIANT, --variant VARIANT
                      select variant
-y, --overwrite       overwrite output files without asking
-n, --never           never overwrite existing files

Settings

Download settings are defined in settings.ini which in Windows systems is located in %APPDATA%\viihdexdl. Preferred languages are set using two-letter ISO 639-1 or three-letter ISO 639-2 codes.

audio languages:      Languages of audio tracks to be downloaded.
                      If left empty, all available tracks are downloaded.
subtitle languages:   Languages of subtitle tracks to be downloaded.
                      If left empty, all available tracks are downloaded.
default audio:        Languages of the audio tracks for which 'default' flag can be set. Preferably
                      the track with the language listed first is flagged, but if no track of that
                      language is downloaded then the second listed is checked etc.
default subtitle:     Languages of the audio tracks for which 'default' flag can be set.
visual impaired:      Language of the audio track for which 'visual impaired' flag
                      is set (only works with .mkv files).
hearing impaired:     Language of the subtitle track for which 'hearing impaired' flag
                      is set (onlyworks with .mkv files).
maximum bandwidth:    The variant with the highest bitrate below this limit (bit/s) is downloaded.
                      If left empty or set to 0, the best variant is downloaded.
file extension:       File extension of the output file. Use mkv (preferred) or mp4.
external subtitles    Download subtitles to external files.
rfc 5646 to iso 639:  Convert RFC 5646 language (e.g. nl-NL) tags to ISO 639-1/2 language codes.
iso 639:              Type of language codes to use in metadata.
                      Use alpha_2 (nl), alpha_3 (nld) or alpha_3b (dut).
ffmpeg options:       FFmpeg global and input options.
ffmpeg video codec:   FFmpeg video codec options.
ffmpeg audio codec:   FFmpeg audio codec options.
overwrite:            Overwrite output files without asking.
never overwrite:      Never overwrite existing files.

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

viihdexdl-0.15.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

viihdexdl-0.15-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file viihdexdl-0.15.tar.gz.

File metadata

  • Download URL: viihdexdl-0.15.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for viihdexdl-0.15.tar.gz
Algorithm Hash digest
SHA256 ed2bf3e04777ae9e336df1c506f9fd04bc440af79a0747098df6afee6422fcd3
MD5 c61ca9be119fd7a00703648847186fde
BLAKE2b-256 819d27d6546c05e5d7c1a3a6324265ffaabe36b818c40a0d07e9cbe180cd64ca

See more details on using hashes here.

File details

Details for the file viihdexdl-0.15-py3-none-any.whl.

File metadata

  • Download URL: viihdexdl-0.15-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for viihdexdl-0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3c1b747f5c99d1782588a6caa5ca29b8f09461a7efe0fc299422f4e35554d196
MD5 5bf778be57f1c2bd6b70f561fc578583
BLAKE2b-256 855e85724fe394fdbf8e13879e2cda8ba67345879b76ae770ff02fdab2558104

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