Encoding is terribly computationally expensive. You wouldn't want to do it at scale for every viewer, the RoI would be poor.
What you can do, is splice in pre-encoded ads and that works okay if done correctly. It's also practically impossible to detect/block.