by andai · 4y ago · 0 comments
youtube-dl -f bestaudio [url]
then convert to 12kbps Opus with
ffmpeg -i [file] -b:a 12K [file].opus
I could even do this from my phone over SSH but eventually made a simple web frontend for it. I haven't opened it to the public though, because of, well, news stories like this one.
Plus, I haven't studied this but I don't think they reencode all old content. New videos seems consistent but older videos can have varying things available. Using bestaudio & ffmpeg will definitely get you a consistent result. I can't promise hard-coded -f options for specific formats will be reliable.
So youtube is already Opus, but it's not already SILK.