"parts of the main video that are ads" - well, i'm not sure what those are. Is it something that happens when they record a program from a TV and then upload that video to youtube without removing TV ads?
They often will pre-record these segments with a consistent "now with a quick word about our sponsors" jingle which can be statically detected and removed from the video.