Add codec option to webcam source
Add a new configuration option codec to the webcam source type. Users can use this setting to control what codec is used by the backend to read data from the camera. This is useful because not all webcams support the same codecs, moreover the codec can affect the quality of the image (due to compression).
Allow the most common codecs supported by OpenCV (MJPG, XVID, DIVX, H264, MP4V, YUY2, ...). A list can be found here.
The backend part is ready, UI part should be implemented
After internal discussion, it was decided to not expose this option in the UI for now. Codec parameter can be still (optionally) provided through the REST API.