cam = ipcam('rtsp://10.5.34.104:554/h264/ch1/sub/av_stream','admin','12345')
% Preview a stream of image frames.
preview(cam);
% Preview a stream of image frames.
preview(cam);
% Acquire and display a single image frame.
img = snapshot(cam);
imshow(img);
img = snapshot(cam);
imshow(img);