lorienzahtt

Simple YouTube video download with SponsorBlock cuts - Install + run - WINDOWS

Aug 3rd, 2021 (edited)
2,488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. Updated 11/02/2025
  2.  
  3. IMPORTANT:
  4. If the script ever stopped working, try updating it with
  5. pip install -U yt-dlp
  6.  
  7. Install Python
  8. IMPORTANT: check the “Add python.exe to PATH” box during the installation process
  9. https://www.python.org/downloads/
  10.  
  11. If it didn't come with Python, install PIP:
  12. — Open CMD
  13. — Check if “pip” works, otherwise install it with “python get-pip.py”
  14.  
  15. Install the script with this command:
  16. pip install yt-dlp
  17.  
  18. these steps should be optional in the present day:
  19. {
  20. Install Chocolatey:
  21. https://chocolatey.org/install
  22.  
  23. PowerShell (admin rights) install Dub:
  24. choco install dub
  25. }
  26.  
  27. Download, extract & place the required FFbinaries from columns
  28. - ffmpeg.exe
  29. - ffprobe.exe
  30. from here:
  31. https://ffbinaries.com/downloads
  32. in the ypt-dp folder. To find it, use the following command:
  33. where yt-dlp
  34. It should look like C:\Users\USERNAME\AppData\Local\Programs\Python\PythonXXX\Scripts\
  35. where XXX is your Python version.
  36. Paste your EXE files in there and you're done.
  37.  
  38. USAGE:
  39. — cd C:\Users\USERNAME\Downloads
  40. or shorter
  41. — cd downloads
  42. or even shorter
  43. — open explorer in your desired folder, type “cmd” in the address bar and press Enter
  44. (this sets the download folder)
  45.  
  46. then, paste your customized URL and Enter
  47.  
  48. yt-dlp --sponsorblock-remove all https://www.youtube.com/watch?v=Tb4JZI_r_ho
  49. [default, with sponsorblock]
  50. yt-dlp --sponsorblock-remove all -x --audio-quality 0 --audio-format mp3 _p7HaMq9iEM
  51. [download as mp3]
  52. yt-dlp --sponsorblock-remove all -x --audio-quality 0 --audio-format mp3 --embed-thumbnail --embed-metadata _p7HaMq9iEM
  53. [download as mp3 with thumbnail and metadata]
  54.  
  55. More syntax info here:
  56. https://github.com/yt-dlp/yt-dlp#general-options
  57.  
  58. Update yt-dlp:
  59. py -m pip install -U yt-dlp
  60. or
  61. pip install -U yt-dlp
  62.  
  63. NEWS:
  64. I made an addon for Firefox that automatically makes the cmd command. Check it out here and leave a review if you found this guide helpful, please.
  65. https://addons.mozilla.org/firefox/addon/yt-dlp-cmd-generator/
  66.  
  67.  
  68.  
Advertisement
Add Comment
Please, Sign In to add comment