You need to get a frame from the camera in C ++ and encode it in base64 (this is for browsers). It seems that all the necessary functionality is in ffmpeg, but somehow there are few manuals.
Who developed using ffmpeg, can you demonstrate a minimal sample code for capturing a frame from a webcam? Get device ID -> start shooting with the specified resolution -> fix the frame in the buffer. At least just a function.