Using ESP8266 for video commutation

Hi community!
I'm currently working on a project that involves commutation of composite video signals (2 cameras -> 1 display). I'm trying to achieve it using simple relays: it works, but clicking is a bit annoying. Does anyone happen to know a better way?
Also, I need to be able to detect the existense of the video signal (e.g. when the signal appears on one of the sources I need to switch to it). Should I use the analog input pin or any input would work just fine?

Thanks!

If anyone is interested, I've solved this easily with CD4066

That would indeed be a very common use of the 4066.

Preferably the higher specced 74HC4066.