Can I set the frame rate of an IP camera over an RTSP connection using "webread"?

2 views (last 30 days)
I'm doing image acquisition from an IP Camera by using the "ipcam" function over an RTSP address. Although this works, when I try to use "webread" to set the frame rate using the RTSP URL, it fails. How can I set the frame rate of the camera?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Nov 2023
The “webread” function only supports HTTP or HTTPS URLs. Unfortunately, there is not a specific function to set the frame rate using RTSP in MATLAB. 
RTSP as a protocol is designed to handle streaming data. The ability to set the frame rate programmatically while using RTSP may be possible, but it depends on the capabilities of the camera. Please contact the manufacturer to see if it is possible to do so by adding a parameter specifying the frame rate to the RTSP URL. 
If it is not possible to do so using the RTSP connection, a possible workaround is to manually set the frame rate via the manufacturer’s interface to the camera and then begin the image acquisition process in MATLAB. 

More Answers (0)

Categories

Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!