Strip advertisements from downloaded YouTube videos

pukkandan 0eb5ea2315 Archive Repository 3 years ago
src 325cff6580 Improve documentation 3 years ago
.gitattributes d8975f3817 Create `build.cmd` and `build.sh` 3 years ago
.gitignore 748103423b Update .gitignore 3 years ago
LICENCE.md 06bc97ceaf Initial commit 5 years ago
README.md 0eb5ea2315 Archive Repository 3 years ago
build.cmd d8975f3817 Create `build.cmd` and `build.sh` 3 years ago
build.sh ce2342968e [build] Set executable permission 3 years ago
dub.json b74f1cde19 Delete `youtube-dl-sponsorblock` 3 years ago
dub.selections.json ba24d34dab Add -chapter option to add video chapters rather than strip sponsors 4 years ago

README.md

Project archived

yt-dlp now has native integration with SponsorBlock and so we will no longer be maintaining this project. If you still want to use SponSkrub either seperately, or with yt-dlp, use the upstream version instead

SponSkrub

This is a fork of sponskrub primarily intended for use with yt-dlp

Main Changes

  • Provide windows binary (only x86 for now)
  • All sections are included by default and all switches are changed to --exclude-
  • Removed youtube-dl-sponskrub since yt-dlp has direct sponskrub integraion

PS: I am not familar enough in DLang to add features or resolve issues (unless the issue is specific to this fork). It is probably better to make the request in faissaloo/sponskrub. I will merge any commits made there into this fork.

Description

SponSkrub is a command line utility for removing sponsors from downloaded Youtube videos.

FFmpeg and FFprobe are required for this application to work. Additionally, libcurl.dll is necessary for windows. A copy of libcurl x86 is provided along with the releases.

It makes use of the SponsorBlock API and I'd recommend installing the extension and maybe contributing some sponsorship times when you're ever bored.

You can build sponskrub by running dub build.

Usage

sponskrub [options] [--] video_id input_filename output_filename

Options

-h                     Display help
-chapter               Mark sections as chapters rather than removing them
-exclude-sponsors      Do not remove sponsors
-exclude-intros        Do not remove introductions
-exclude-outros        Do not remove outros
-exclude-interactions  Do not remove interactions
-exclude-selfpromo     Do not remove self-promotion
-exclude-nonmusic      Do not remove non-music portions of music videos
-proxy                 Route all trafic through this proxy
-no-id                 Searches for sponsor data by the partial hash of the
                       video id instead of directly requesting it
-no-keep-date          Do not give the output file the same modification date
                       as the input file
-api-url               Specify the url where the API is located, defaults to
                       sponsor.ajay.app