If your input is just a bunch of random images, not videos, you are not going to make "streaming video." You are just about to send a bunch of full images. No need to use video encoding technology, just the simplest image transfer. Video encoders rely on each frame, which has a different relationship with the previous one, as is usually the case in real video. For random image inputs, they will not be able to compress so much, and single-frame compression (such as JPEG / PNG / independently) will most likely already be applied to your input data.
It is probably easiest to send the contents of each file along with the original file name, and the receiving client will re-create the file on disk and open and decode the image using existing disk libraries.
You probably just need to use TCP for this, there is nothing in your requirements indicating the need for more complex and error-prone UDP / RTP based solutions.
unwind
source share