Skip to main content

A command-line YouTube downloader with built-in audio/video format conversion

Project description

mmcli

mmcli is a command-line YouTube downloader with built-in format conversion. Give it a video or playlist URL and it downloads the media, optionally converting it to the audio or video format you choose. Playlists are detected automatically and saved into a per-playlist folder. Requires Python 3.12+ and FFmpeg on your PATH.

Install

pip install mmcli-dl      # or: pipx install mmcli-dl / uv tool install mmcli-dl

The installed command is mmcli. FFmpeg must be on your PATH for format conversion.

Command

mmcli <url> [--resolution RES] [--format FMT] [--output-dir DIR]
Argument Short Description
url YouTube video or playlist URL (required).
--resolution -r Video resolution, e.g. 720 or 720p. Ignored for audio formats. Default: highest available.
--format -f Output format. An audio format (mp3, m4a, wav, ...) downloads audio only; a video format (mp4, mkv, webm, ...) converts the container. Default: keep the downloaded video as-is.
--output-dir -o Directory to save into. Default: current directory.
--version -v Print the version and exit.

Examples:

mmcli "https://youtube.com/watch?v=..."                       # best-quality video
mmcli "https://youtube.com/watch?v=..." --resolution 720      # video at 720p
mmcli "https://youtube.com/watch?v=..." --format mp3          # audio only, as mp3
mmcli "https://youtube.com/watch?v=..." --format mkv          # video, converted to mkv
mmcli "https://youtube.com/playlist?list=..." --format mp3    # whole playlist as mp3
mmcli "https://youtube.com/watch?v=..." --output-dir ~/Videos # choose the output directory

Supported --format values

An audio format downloads audio only; a video format downloads video and converts the container.

  • Audio: mp3, wav, flac, aac, m4a, ogg, oga, opus, wma, alac, amr, ac3, dts, eac3
  • Video: mp4, mkv, avi, mov, flv, webm, mpeg, mpg, ts, m2ts, ogv, 3gp, 3g2, vob, f4v, wmv, rm, rmvb

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

mmcli_dl-0.1.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

mmcli_dl-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file mmcli_dl-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for mmcli_dl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9fd604b4ce872d926e92d3094dad12b8270f9756a2e7c11d415a0625c1a5361e
MD5 9b343aa98ed6ddc536f51e14ae882c58
BLAKE2b-256 15fc510ab0467ea3d0b3f9d5ccd2ee1999e6a607514ce09e633c6d63c0d4e7d9

See more details on using hashes here.

File details

Details for the file mmcli_dl-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mmcli_dl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06f27dba367289e58d2620b23df4e0e86041732cdd463f6c72eb187a86c642c6
MD5 c9ebc5b967220ed5ef0845db229364c0
BLAKE2b-256 def46165351ef159c8bcbb656ba5230fe4925512f0ca948703f8328f58e1b7b5

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