Hi
I read your requirement in deeply.
But there have some problem in your requirement.
in order to auto stop/ start when commercial break is playing,
I think have at least one Ads image or video. So, Ads recognize by program automatically,
then it control start/stop TV capture.
If you have a good idea, send me your requirement please.
Sincerely