According to the readme opencv-python does not come bundled with GStreamer, and it is recommended that we have to build with WITH_GSTREAMER=ON
option. In my case I am testing capturing frames with gstreamer instead of ffmpeg. By building the wheel locally and installing it via pip I can then import the package in my requirements.txt
file.
Is there a better way here?
Additionally I notice that even with_gstreamer=on
it does not install plugins_good/bad/ugly. This causes errors for rtsp streams: opencv-python/opencv/modules/videoio/src/cap_gstreamer.cpp (1127) open OpenCV | GStreamer warning: Error opening bin: no element "rtspsrc"
.
Is there a way to include these plugins in macos? Or circling back, is there a better way to import in opencv-python with gstreamer?