ONVIF support

asked 2017-04-05 13:25:11 -0500

cedricverst gravatar image

Hey there,

I can connect my OpenCV program with RTSP streams, except with the ones that ends with onvif1. E.g. rtsp://

Does anyone knows why this might not work as expected?


edit retag flag offensive close merge delete


I have some additional information.

The URL rtsp:// will open in VLC.

Opening the camera in an ONVIF utility (on my android phone), I receive the following:

Network Video Transmitter (NVT) name: IPC_778939
Model: IPC
Media Profile: MainStream
Resolution: 1280x720
Encoding: H264
H.264: Baseline Profile Level: 3.1
Transport protocol: RTP/RTSP/TCP
RTP packets received: 2634
RTP packets lost: 0
Frame rate (fps): 12.5
Audio: G.711 A-Law
ONVIF port: 5000
RTSP port: 554
Data Rate (Mbit/s): 2.698
JeremyB gravatar imageJeremyB ( 2017-04-05 13:56:11 -0500 )edit

The onvif protocol is simply not supported by OpenCV. So if you want that, you will have to programm the capture of the stream yourself using a designed package to do just that, then pass the data to OpenCV.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-07 04:53:39 -0500 )edit

Hey Steven, do you know how to write a program to capture the onvif stream? Or can you give me some hints where to begin? I'm just started to program (Python).

Wardje gravatar imageWardje ( 2018-01-09 13:20:47 -0500 )edit

@Wardje nope, you will have to figure that out on your own terms

StevenPuttemans gravatar imageStevenPuttemans ( 2018-01-10 02:21:55 -0500 )edit