M-JPEG is easy to capture. You send one HTTP request to the server and read the endless response in multipart/x-mixed-replace (Content-Type) format. Then you break it into frames, which are stand-alone JPEG files ... Subheadings may or may not contain unnecessary information, such as timestamps.
You can find this relevant and useful: How to parse MJPEG HTTP stream in C ++?
source share