gstream applet outside PApplet
in
Contributed Library Questions
•
2 years ago
I tried to capture rtsp streaming using
http://gsvideo.sourceforge.net/
I've success when using gst-launch from my linux console.
But when I tried to combine with PApplet, i got the gstreamer applet outside the PApplet, and I only got the first frame (not rtsp stream. Is there any suggestion ?
here below my script :
import codeanticode.gsvideo.*;
import processing.core.PApplet;
public class Streaming extends PApplet {
GSPipeline pipe;
public void setup() {
size(640,480);
pipe = new GSPipeline(this, "rtspsrc location=blablabla");
pipe.play();
}
public void draw() {
if (pipe.available()) {
pipe.read();
image(pipe, 0, 0);
}
}
static public void main(String args[]) {
PApplet.main(new String[] {"Streaming" });
}
}
I've success when using gst-launch from my linux console.
But when I tried to combine with PApplet, i got the gstreamer applet outside the PApplet, and I only got the first frame (not rtsp stream. Is there any suggestion ?
here below my script :
import codeanticode.gsvideo.*;
import processing.core.PApplet;
public class Streaming extends PApplet {
GSPipeline pipe;
public void setup() {
size(640,480);
pipe = new GSPipeline(this, "rtspsrc location=blablabla");
pipe.play();
}
public void draw() {
if (pipe.available()) {
pipe.read();
image(pipe, 0, 0);
}
}
static public void main(String args[]) {
PApplet.main(new String[] {"Streaming" });
}
}
1