First version of mjpeg encoder