Sign inSign up

anthonyzou/convert

By anthonyzou

•Updated 4 months ago

Download a youtube video/playlist with mp3 tags, normalized sound, and the youtube thumbnail

Image
1

1.3K

anthonyzou/convert repository overview

⁠About

A docker image that can download a youtube play list, insert an image of the video into the mp3 file, tag the file with metadata, and normalize the volume of each song.

⁠Building

Build the docker image locally by running docker build -t anthonyzou/convert .

⁠Dependencies

  • mp3gain for normalizing audio
  • id3ed for editing metadata
  • bash for parsing out metadata from youtube titles
  • youtube-dl for downloading the videos, inserting thumbnails, and extracting mp3

⁠Run command

docker run -it -v (pwd):/tmp/music anthonyzou/convert \
youtube-dl -i -w -k -x --default-search ytsearch \
--embed-thumbnail --audio-format mp3 -o "%(title)s.%(ext)s" \
[ID OF PLAYLIST OR VIDEO]  --exec '../check {}'

⁠Common extra commands

--playlist-start NUMBER          Playlist video to start at (default is 1)
--playlist-end NUMBER            Playlist video to end at (default is last)

Tag summary

Content type

Image

Digest

sha256:151f24b50…

Size

461.9 MB

Last updated

4 months ago

docker pull anthonyzou/convert