- Joined
- Dec 12, 2022
Firefox or other viewers are not going to automagically save you. Directly injecting ads into the HLS stream is, in a theoretically perfect implementation, simply not possible to bypass. Try diving into the world of twitch ad blockers and see how much bullshit they try to go through to trick the system - and it still doesn't work half the time.
I can envision a way to remove ads from a stream using post-processing. Provided that video fragments are delivered in a deterministic manner, you could create a database of hashes of known good video fragments / ad fragments, and cut the ads out of your video file to accomodate baseline reality. Otherwise you would have to use perceptual hashes, which increases the computational complexity for post-processing by a significant degree, as well as the database size. Perhaps you could create a neural network that can detect "ads" - and expedite this detection via scene change algorithms. But you can't do that live if youtube is serving you the stream at a fixed rate regardless of what your client requests.
I can envision a way to remove ads from a stream using post-processing. Provided that video fragments are delivered in a deterministic manner, you could create a database of hashes of known good video fragments / ad fragments, and cut the ads out of your video file to accomodate baseline reality. Otherwise you would have to use perceptual hashes, which increases the computational complexity for post-processing by a significant degree, as well as the database size. Perhaps you could create a neural network that can detect "ads" - and expedite this detection via scene change algorithms. But you can't do that live if youtube is serving you the stream at a fixed rate regardless of what your client requests.
Last edited: