|
|
|
|
|
by TechnicolorByte
989 days ago
|
|
I’ve always wondered why there aren’t better ways to prevent ad blockers (not that I’d want that) and embedding ads directly in a video stream seems like it’d be easy and completely unskippable. Especially useful for livestream content like Twitch. Any web experts know? |
|
This makes being able to arbitrarily inject an ad video at a random point hard if there isn't an immediate full complete frame immediately after. You can't just fill the video with them, as that would make compression worse. You don't want to fully re-encode the video either, that takes up CPU time.
I've run into this myself using ffmpeg to cut out clips of videos. You can use the option of "-c copy" to copy a stream without re-encoding it, and it'll pick the previous full frame and be less accurate.
There's also web reasons with CDNs. Embedding in the video stream would require serving from the same server as the video. That would raise the costs of your CDNs. With targeted ads, you don't want to show the same ad to everyone, and you don't want to be limited to ads on that server when you do an ad auction.
https://en.wikipedia.org/wiki/Video_compression_picture_type...
https://trac.ffmpeg.org/wiki/Seeking#Seekingwhiledoingacodec...