But you're suggesting that YouTube alter the video to insert the ads, which wouldn't be the same thing. IDK how that would scale (processing uploaded videos seems to take a while still on YouTube, and splicing video in a way that gives YT the continued control over dynamically displaying targeted ads could be a Hard Problem), but if anyone can figure that out, it'd be YT.
So it can tell when videos contain sponsored segments just from the video's content? What parameters does it check to make its conclusion?
It's quite primitive:
1. I have a service extracting captions from YT videos.
2. I process them a little bit (parallel batches with a sliding window containing the captions),
3. then add to a simple GPT-4 prompt with some examples.
Feel free to check the repo source (esp. detector.js and its dependencies)
Twitch is getting close to that. They directly inject video ads into streams at random times causing you to miss parts of streams. uBlock Origin seemed to have a way around that with some extra setup but it's only a matter of time before it's completely transparent, seamless, and technically unblockable by client-side addons.
Part of me wonders why they haven't done so yet.