But how? Unless I'm misunderstanding how video encoding is done, you shouldn't be able to reliably identify what's an ad vs what's actual video once it starts getting mixed together. The ad will be encoded differently for every video it's inserted into.
I could be completely wrong about this, but the same ad clip's data should end up looking completely different depending on any number of things.