15 ms·
One of the nice features added to yt-dlp recently: It integrates with sponskrub to call into the SponsorBlock database and with the right options will strip th
by banana_giraffe 5y ago
One of the nice features added to yt-dlp recently: It integrates with sponskrub to call into the SponsorBlock database and with the right options will strip the sponsor segments from downloaded videos.
Edit: Correct typo
- themodelplumber 5y agodlc? Don't tell me that's a different one...
- LeoPanthera 5y agodlc is abandoned and dlp integrates its features.
- stinos 5y agoSo dlc is a fork of dl, but dl itself has actually a bunch of fairly recent commits which dlc does not have. And dlp nor dlc are 'forks' in the Github sense of forking. So how does one figure out whether recent dl commits are in dlp? And does this matter? Is this the downside of 'if you don't like it then just fork it and fix it'?
- nnt38 5y agoJust get dlp its the most up to date version
- deleted 5y ago[deleted]
- pukkandan 5y agoOther than a few commits [1], everything in youtube-dl is already in yt-dlp. You can see upto which upstream commit is merged into yt-dlp in the changelog [2] [1] https://github.com/yt-dlp/yt-dlp/issues/21 https://github.com/yt-dlp/yt-dlp/issues/21 [2] https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md#20210707 https://github.com/yt-dlp/yt-dlp/blob/master/Changelog.md#20...
- banana_giraffe 5y agoWhoops, typo on my part. Sorry about that.
- azinman2 5y agoAre the sponsor parts really so bad? To me not only is it easy to skip, I want indie people to make enough money to produce high quality content; otherwise media is just what a few biggies want to fund. They’re not enough from YouTube itself unless you’re in the top percentile. Also what sponsored content are people downloading versus just streaming live? I don’t get the use case.
- Ansil849 5y ago> Are the sponsor parts really so bad? Yes. Some of us don't like being assaulted with sales pitches everywhere we look.
- judge2020 5y agoSure, but creators don’t have many other avenues for revenue when you’re already using YouTube-dl(p) to download videos without watching ads. I imagine sponsor spots will be devalued over time as sponsorblock usage continues to grow, especially for creators with audiences that watch content on desktop more than mobile.
- Forbo 5y agoIs it apparent to the sponsor when someone is watching using youtube-dlp versus a regular view? I'd imagine most sponsored segments are negotiated based on subscriber count or view numbers.
- crtasm 5y agoI don't believe the view counter gets incremented when using any unofficial front-end/downloader.
- boolemancer 5y agoHow would Google's backend know whether the traffic comes from their own frontend vs a utility like youtube-dl (assume for the sake of argument that the utility is trying to make the traffic look like normal YouTube traffic)?
- nebula8804 5y agoMan I thought I was in heaven when I accidentally stumbled upon SponsorBlock. Now you're telling me about this?! Amazing! How does the video quality fare after stripping? Is it re-encoding the video or somehow stripping it without altering the quality?
- banana_giraffe 5y agoIt re-encodes. Actually, I think it defaults to marking the sponsor bits ... somehow. Whatever it's doing wasn't enough for my player to notice. That said, for this stuff, I've only downloaded audio, and of that mostly talking head type stuff, where I let it cut out the segments. Whatever re-encoding is done would have to be pretty bad before I'd care.
- banana_giraffe 5y agoWhat am I missing? This looks like a re-encode: $ yt-dlp -x --sponskrub --sponskrub-cut "https://www.youtube.com/watch?v=_7vPNcnYWQ4" [youtube] _7vPNcnYWQ4: Downloading webpage [youtube] _7vPNcnYWQ4: Downloading android player API JSON [info] _7vPNcnYWQ4: Downloading 1 format(s): 251 [download] Destination: Making an unpickable lock. Calling locksmiths [_7vPNcnYWQ4].webm [download] 100% of 12.72MiB in 00:00 [ExtractAudio] Destination: Making an unpickable lock. Calling locksmiths [_7vPNcnYWQ4].opus Deleting original file Making an unpickable lock. Calling locksmiths [_7vPNcnYWQ4].webm (pass -k to keep) [SponSkrub] Trying to remove sponsor sections WARNING: Cutting out sponsor segments will cause the subtitles to go out of sync. [libopus @ 0x5462c20] No bit rate set. Defaulting to 96000 bps. size= 3515kB time=00:04:33.53 bitrate= 105.3kbits/s speed= 26x Without the audio only option, it's more clear it's re-encoding: [SponSkrub] Trying to remove sponsor sections WARNING: Cutting out sponsor segments will cause the subtitles to go out of sync. [libopus @ 0x5575420] No bit rate set. Defaulting to 96000 bps. frame= 51 fps=8.5 q=0.0 size= 1kB time=00:00:01.95 bitrate= 3.5kbits/s speed=0.326x
- radicality 5y agoI doubt it would have to re-encode. First it would split the video into separate files which don’t include the sponsored content. Then would use something like the ffmpeg concat demuxer which will adjust timestamps of the input streams, and then output a concatenated result stream (no reencode) (https://ffmpeg.org/ffmpeg-formats.html#concat-1 https://ffmpeg.org/ffmpeg-formats.html#concat-1). So it should probably have zero quality loss.
- app4soft 5y ago> It integrates with sponskrub to call into the SponsorBlock database and with the right options will strip the sponsor segments from downloaded videos. Also here is a fork of NewPipe with SponsorBlock functionality.[0] [0] https://github.com/polymorphicshade/NewPipe https://github.com/polymorphicshade/NewPipe
- DavideNL 5y agoHas anyone managed to build/install sponskrub for the Raspberry Pi 4? https://github.com/faissaloo/SponSkrub https://github.com/faissaloo/SponSkrub