Ask Your Question

Revision history [back]

Do we need to specify any parameters depending on the type of video source in cv2.VideoCapture(the way we have to mention parameters in gst-launch-1.0 command line tool of gstreamer)?

Hi, I'm using python 2.7.12 OpenCV 3.3.1

I want to customize cv2.Videocapture() so that it can open any of the following type of URLs 1. RTSP URL from DVR of the format rtsp://<user>@<password><ip_address>:<port>/cam/realmonitor?channel=<channel_number>&subtype=0

  1. RTSP URL of Sricam IP camera SP005 and SP009 rtsp://<ip_address>/onvif1

  2. Any .mp4, etc video file

So, Do I need to specify any parameters like videoconvert, decodebin, etc ? Or what's the right way to support above mentioned functinality?