YouTube Music Extractor for downloading Albums and tagging them nicely
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Linus Jahn 5443a0fd60
README: Change example album to Violator
2 months ago README: Change example album to Violator 2 months ago Remove unncessary print() for yt-dlp 4 months ago




This will download the album into a new folder named "<title>_(<year>)" with all tracks correctly numbered and with the correct tagging including the cover.


  • yt-dlp
  • mpv (for extracting the screenshot from the video (the video has a higher resolution than the thumbnail image))
  • kid3-cli (for tagging)


Why does this output .ogg files? YouTube doesn't offer the Ogg Vorbis codec.

YouTube mainly offers Opus and AAC audio formats. YTMX does not reencode the audio. AAC ends up in .m4a and Opus in .ogg containers.

The Android media server doesn't recognize .opus files as audio files (although Opus is generally supported). The trick to fix this was to put the Opus audio into an .ogg container or what also worked was just renaming the file to .ogg.

This might not be needed with newer Android versions anymore. I only tested it with Android Oreo (8.0).

Why are some downloads in Opus and some in AAC?

YTMX uses yt-dlp to download the actual audio. yt-dlp picks the (quality-wise) best version offered by YouTube. The picked format may vary.