gstreamer with openCV in rpi4

Viewed 279

I am trying to build software using GStreamer and OpenCV in C++ in rpi4. But the problem is I don't have the root access so I am not able to install any packages for GStreamer. What I am trying is to copy all the libs for GStreamer and then try to build my software. I am using the following code:

cv::VideoCapture cap;
cap.open("videotestsrc ! appsink",CAP_GSTREAMER);

But it is not working. I have tried the same with my laptop after installing GStreamer and it is working. So my guess is the problem is that the GStreamer is not setup correctly. Is there any way to use GStreamer without installing the packages by just copying the libs and bin files?

Thanks in advance.

Didn't get any solution till now.

2 Answers

If you don't have root access, then there's not much you can do here. Sorry.

You would need to build them yourself for PI (if technically feasible), find somebody who has done it, or possibly use Android OS on your Pi.

FYI, link to prebuilt packages (only osx, windows, android, ios) and link to using Cerbero for building gstreamer (same deal)

Related