How to download YouTube Videos quickly
swyx 2025-01-25
I used to use yt5s all the time to rip and remix videos:
now you have to use https://ytdlp.online/
โฆbut it often downloads the functionally useless .webm
extension. Like with other bullshit google extensions, you can simply rename from .webm
to .mp4
and it may work - but twitter actually rejects it when you try to upload..
I also keep this flag around
yt-dlp -f "bestvideo[ext=mp4][height<=720]+bestaudio[ext=m4a]/best[ext=mp4]/best" YOUR_URL_HERE
updates
If you ever get a .webm you might use
ffmpeg -i textgeneratorvision.webm -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -shortest -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2,fps=30" -c:v libx264 -pix_fmt yuv420p -c:a aac textgeneratorvision.mp4
and
yt-dlp -f "bestvideo+bestaudio[ext=m4a]/bestvideo+bestaudio/best" -o "%(title)s.%(ext)s" --merge-output-format mp4