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)?

asked 2018-02-12 23:23:23 -0600

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?

edit retag flag offensive close merge delete

Comments

U may want to take a look.Sricam IP camera

supra56 gravatar imagesupra56 ( 2018-02-16 07:10:46 -0600 )edit