Added code for webcam+encoder testing; Not tested yet