HUB
Sign inSign up

fantomfp/yt-dlp

By fantomfp

•Updated 30 days ago

Non-root container image for yt-dlp tool

Image
0

67

fantomfp/yt-dlp repository overview

⁠Quick reference

  • Maintained by: Matthieu Saulnier
  • Sources of the Docker image: here⁠
  • Contact (email): fantom at fedoraproject.org

⁠Supported tags and image versioning

  • latest

⁠Supported image architecture

  • x86_64, amd64

⁠What is yt-dlp

yt-dlp is a powerful and versatile command-line tool designed to download audio and video content from a wide variety of online platforms. It supports thousands of websites, including YouTube and many other streaming services. Built as a fork of youtube-dl, yt-dlp extends its predecessor with additional features, performance improvements, and regular updates. It offers extensive customization options, allowing users to select video and audio formats, resolutions, codecs, and output configurations. The tool supports downloading entire playlists, extracting audio, embedding metadata, and adding subtitles. It also provides advanced capabilities such as format merging, post-processing, and automatic subtitle conversion. Thanks to its command-line interface, yt-dlp can easily be integrated into shell scripts and automated workflows. Its modular architecture and active development make it a reliable solution for managing media downloads.

⁠How to use this image

Before to pull the image and run the container, follow the checklist:

  • Select the ID of the youtube video, for example "4X440MciNX8"
  • If you need to download on another website, just put the full URL instead
  • Create a directory tree like the following:
  • /container/yt-dlp/config
  • /container/yt-dlp/downloads
  • Check if your Linux user is allowed to run "docker run" command with sudo

On GNU/Linux system, launch a new container like this:

docker run -ti -e TERM \
--log-driver none \
-e YT_ID="4X440MciNX8" \
-v /container/yt-dlp/config:/home/yt-user/.config:Z \
-v /container/yt-dlp/downloads:/home/yt-user/downloads:Z \
fantomfp/yt-dlp:latest

The container will be stopped when yt-dlp will be closed. All user datas will be saved and stay available for a new container launched.

Can be launched with Podman too:

$ podman run --userns=keep-id -ti -e TERM \
--log-driver none \
-e YT_ID="4X440MciNX8" \
-v $HOME/podman/yt-dlp/config:/home/yt-user/.config:Z \
-v $HOME/podman/yt-dlp/downloads:/home/yt-user/downloads:Z \
docker.io/fantomfp/yt-dlp:latest

And, it can be launched with WSL (version 3.0.1.0) on Windows. This command is an example:

wslc run -ti -e TERM -e YT_ID="4X440MciNX8" -v C:/Users/msaulnier/docker/yt-dlp/config:/home/yt-user/.config -v C:/Users/msaulnier/docker/yt-dlp/downloads:/home/yt-user/downloads fantomfp/yt-dlp:latest
Tag summary
Recent tags
Content type
Image
Digest
sha256:dbc311b85…
Size
402.9 MB
Last updated
30 days ago
docker pull fantomfp/yt-dlp:latest