I’m coding a MATLAB script that takes a live video stream on a port and plays that video in a MATLAB gui. I’ve looked at the videoinput function, but that seems to require actual hardware connected to the computer.
I’m listening for a UDP video stream on a certain port, and I’d like to play this video in pseudo-realtime in a GUI. Currently I’m receiving the raw RGB bytestream frame-by-frame.
To the point:
Is this possible?
If so, how would one go about doing this? At this point, any solution would be feasible, although I’d like to use built-in functions for most of the work.
If you don’t need high throughput, you can easily interface Matlab to a UDP port with the UDP toolbox.
If your frames are simply raw RGB images, you can use the image command to display them.
If you require high throughput or need to implement a more complicated decoder, consider implementing it in Java as this answer suggests.