Sign inSign up

fomightez/youtubedl

By fomightez

•Updated about 9 years ago

image that runs youtube-dl

Image
1

987

fomightez/youtubedl repository overview

⁠Dockerized Youtube-dl

Dockerfile⁠

Layer info at microbadge seems wrong. I saw only 5 layers when I built it. Issue with newly built images there?

⁠Contents

Dockerfile to build an image that runs youtube-dl and does post-processing as described in uniquerockrz's and Jacob Tomlinson's answers at https://askubuntu.com/questions/178481/how-to-download-an-mp3-track-from-a-youtube-video⁠

Installed using pip as described at http://rg3.github.io/youtube-dl/download.html⁠ because as mentioned here⁠. apt-get insalled versions give security/permissions errors.

Includes:

  • Ubuntu 16.04-flavor Linux base
  • youtube-dl⁠
  • ffmpeg for conversion to mp3

See the Dockerfile⁠ for additional info.

⁠Use

docker run -it fomightez/youtubedl

Then issue your commands such as:

youtube-dl --extract-audio --audio-format mp3 --prefer-ffmpeg   <video URL>



Or, if you want to make relaying the created files out of the container to the hose machine easier, create a directory /dls (ONLY IF YOU DON'T ALREADY HAVE ONE) and use that to mount the volume at the time of starting the container.

docker run -v /dls:/dls -it fomightez/youtubedl

I copy the file(s) to the mounted volume /dls to bring out of container to the host machine.

Tag summary

Content type

Image

Digest

Size

275.2 MB

Last updated

about 9 years ago

docker pull fomightez/youtubedl