So I need to read a video source (a file/stream) frame by frame and than, send each frame over the internet in real time. The issues is that when I'm using OpenCV VideCapture it returns numpy arrays which are difficult to handle (a frame can take up to 20 Mb, but when I save it as png it's around 300kb). (it would be cool if using some flag VideCapture could return bytes instead of numpy array )
The question is, how can I read a video source as raw bytes, so I don't need to convert numpy to bytes in case of using OpenCV.