Post

Downloading Files with yt-dlp and ffmpeg

Downloading files using `yt-dlp` and `ffmpeg`

yt-dlp

yt-dlp is a modern fork of yt-dl, both of which are command-line utilities that use ffmpeg to download, and transcode, video and audio files from the internet

Uses Python 3.7 or above, which is packaged within the portable yt-dlp.exe

Requires ffmpeg to be installed on your system, and accessible via PATH

Will download to the current working directory

where yt-dlp

yt-dlp -h

Audio only yt-dlp -x {URL}

yt-dlp -k -x --download-sections "*00:00-59:59" --audio-quality 0 https://www.youtube.com/watch?v=rDBZsObPyWM downloads 0h:0m:0s to 0h:59m:59s, audio only (-x), keeps all files downloaded if there is a conversion, audio quality 0 means highest

This post is licensed under CC BY 4.0 by the author.