I am interested in using the processing-video library for my project, but I think I hit a brick wall. I tried running the CustomPipeline example given that i’m trying to display a custom stream of an IP camera.
This is the error message I’m getting:
“IllegalArgumentException: No such Gstreamer factory: v4l2src”
This is the example code:
/**
* CustomPipeline
* by Andres Colubri.
*
* Create a Capture object with a pipeline description to
* get video from non-standard sources.
*/
import processing.video.*;
Capture cam;
void setup() {
size(640, 480);
// Start the pipeline description with the "pipeline:" prefix,
// the rest could any regular GStreamer pipeline as passed to gst-launch:
// https://gstreamer.freedesktop.org/documentation/tools/gst-launch.html?gi-language=c#pipeline-description
cam = new Capture(this, 640, 480, "pipeline:videotestsrc");
cam.start();
}
void draw() {
if (cam.available() == true) {
cam.read();
}
image(cam, 0, 0, width, height);
}
I am using a Raspberry Pi 4 and have installed gstreamer1.0. I have even tried to display a stream from the command line and it has worked, so I don’t think it’s an installation issue. I have found a few threads on google that explore this problem. Most of them are from 4-5 years ago though, and use gstreamer0.1 instead of gstreamer1.0 and an old processing.video library. The current version of the library (correct me if I’m wrong) should support gstreamer1.0 and is suposed to be a pretty smooth operation.
Anyone have any ideas on what the issue might be? Thank you!!