title: MATLAB - capturing video streams (MJPEG, rtsp, mpeg)
body: <p>Has anyone worked with capturing video streams from IP cameras in MATLAB? For example to grab frames in MATLAB from rtsp://10.10.10.10:554/live.sdp (rtsp stream) or from <a href="http://x.x.x.x/axis-cgi/mjpg/video.cgi" rel="noreferrer">http://x.x.x.x/axis-cgi/mjpg/video.cgi</a> (mjpeg stream). MATLAB's Image Acquisition Toolbox does not currently support this. I found 2 options:
  1) using <a href="http://www.mathworks.com/matlabcentral/fileexchange/8028" rel="noreferrer">mmread</a>. However http stream reading is not supported under 64-bit MATLAB or 
  2) to write my own C++ function that grabs frames (I use OpenCV library) and then compile it into MATLAB MEX function.
  Any suggestions are appreciated.</p>