Created
September 17, 2023 22:26
-
-
Save Sevaarcen/4ef41495ca256c7b9b45b2ec05bddfb9 to your computer and use it in GitHub Desktop.
Bulk download youtube videos as audio using yt-dlp in parallel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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