Skip to content

Instantly share code, notes, and snippets.

@Sevaarcen
Created September 17, 2023 22:26
Show Gist options
  • Select an option

  • Save Sevaarcen/4ef41495ca256c7b9b45b2ec05bddfb9 to your computer and use it in GitHub Desktop.

Select an option

Save Sevaarcen/4ef41495ca256c7b9b45b2ec05bddfb9 to your computer and use it in GitHub Desktop.
Bulk download youtube videos as audio using yt-dlp in parallel
Get-Content C:\Users\username\Downloads\youtube-urls.txt | ForEach-Object -Parallel { Start-Sleep -Seconds $(Get-Random -Minimum 3 -Maximum 15); yt-dlp.exe --ffmpeg-location 'C:\Program Files\ffmpeg\bin\ffmpeg.exe' --audio-format mp3 -x "$_" } -ThrottleLimit 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment