Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ciphertxt
Last active June 16, 2022 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ciphertxt/25530997bafee633568f4c635341be7e to your computer and use it in GitHub Desktop.
Save ciphertxt/25530997bafee633568f4c635341be7e to your computer and use it in GitHub Desktop.
#!/bin/bash
i=1;
for youtube_uri in "$@"
do
echo "Downloading video $i: $youtube_uri";
i=$((i + 1));
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio/best[ext=mp4]/best' --merge-output-format mp4 "$youtube_uri" --add-metadata --embed-thumbnail
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment