Advertisement
lorienzahtt

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

Aug 3rd, 2021 (edited)
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Updated 28/01/2024
  2.  
  3. Install Python (IMPORTANT: check the “Add python.exe to PATH” box)
  4. https://www.python.org/downloads/
  5.  
  6. If it didn't come with Python, install Pip (check by writing “pip” in cmd, otherwise type “python get-pip.py” inside CMD)
  7.  
  8. Install infrastructure with this command:
  9. pip install yt-dlp
  10.  
  11. these steps should be optional in the present day:
  12. {
  13. Install Chocolatey:
  14. https://chocolatey.org/install
  15.  
  16. PowerShell (admin rights) install Dub:
  17. choco install dub
  18. }
  19.  
  20. Download, extract & place FFbinaries (ffmpeg.exe & ffprobe.exe columns) from here:
  21. https://ffbinaries.com/downloads
  22. in the ypt-dp folder (to find it, paste the following in cmd)
  23. where yt-dlp
  24. (It should look something like C:\Users\USERNAME\AppData\Local\Programs\Python\PythonXXX\Scripts\)
  25.  
  26. INSTALLED!
  27.  
  28. USAGE:
  29. cd C:\Users\USERNAME\Downloads
  30. or shorter
  31. cd downloads
  32. (this sets the download folder)
  33.  
  34. yt-dlp --sponsorblock-remove all https://www.youtube.com/watch?v=Tb4JZI_r_ho
  35. [new]
  36. yt-dlp --sponsorblock-remove all -x --audio-quality 0 --audio-format mp3 _p7HaMq9iEM
  37. [download as mp3]
  38. yt-dlp --sponsorblock-remove all -x --audio-quality 0 --audio-format mp3 --embed-thumbnail --embed-metadata _p7HaMq9iEM
  39. [download as mp3 with thumbnail and metadata]
  40.  
  41. More syntax info here:
  42. https://github.com/yt-dlp/yt-dlp#general-options
  43.  
  44. Update yt-dlp:
  45. py -m pip install -U yt-dlp
  46. or simply
  47. pip install -U yt-dlp
  48.  
  49. NEWS:
  50. 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.
  51. https://addons.mozilla.org/firefox/addon/yt-dlp-cmd-generator/
  52.  
  53.  
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement