I suggest you don't try to stream JPEG, but instead use FFMPEG to encode to a different CODEC; for sample code, check out: https://github.com/alm4096/FFMPEG-Live555-H264-H265-Streamer This will be a far more robust solution, and something you can adapt to other camera types as well. - Pat Weber