go-yt-dlp is a small wrapper around the excellent yt-dlp project. It provides a simple interface to download videos from YouTube and a few other sites.
Either double-click the binary or launch it in the command line. It will ask you to either paste a link or enter a search term. If you enter a search term, it will search YouTube and download the first result. If you happen to have a URL in your clipboard, it will automatically pre-fill it for you.
At the query prompt, you can also press Tab to enable searching on YouTube Music only.
All this isn't particularly fancy or the most efficient, but rather serves as an exercise for me to learn go.
The latest commit will be built on GitHub actions. Currently, there are only binaries for macOS and Windows, because those are the platforms I tested on. It should probably run on other platforms as well.
If you have Go 1.17+ installed, you can also use go install:
go install github.com/vaaski/go-yt-dlp@latest
In order to function, go-yt-dlp needs yt-dlp
, ffmpeg
and ffprobe
to be installed on your system.
Automatic installation is natively supported on Windows.
On other platforms it'll use homebrew to install. If you don't have homebrew on MacOS I strongly recommend you install it.
If you wish to install them manually or have already installed them beforehand, here's how go-yt-dlp will look for them:
- Check
$PATH
or%PATH%
- Check for
yt-dlp
,ffmpeg
andffprobe
adjacent to go-yt-dlp - Check in
.go-yt-dlp/bin
in your home directory - If none of the above is found, it will install them automatically
To update go-yt-dlp, simply run go-yt-dlp -U
to replace the binary with the latest release.
This will also run yt-dlp -U
for you, updating the yt-dlp binary.
To run the project from source, just install go and execute the following commands:
go mod tidy
go run .
- Install go 1.21 or higher
- Install goreleaser
- Install go-winres
- Clone this repo
- Run
go generate