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.
Before to pull the image and run the container, follow the checklist:
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
docker pull fantomfp/yt-dlp:latest