I've always found it a mark of stellar incompetence that YouTube hasn't done ad injection into the video stream, dynamically on the server side. It's to my advantage, so I'm not complaining, but this is a company that ignored adblockers for years, and when it started fighting them, half-assed even that (I see no ads even now).