https://github.com/yt-dlp/yt-dlp is a well-maintained public domain alternative.
> Q: If I make a derivative work based on your project (e.g. use your library), would I need to also include your terms of use in my own project?
> A: No, you don't have to do that. But I won't stop you if you want to.