Add support for either webcam or video file input