Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Video Movie Library - RTP / RTSP Stream from VLC to processing

$
0
0

Hello everybody I would like to view my VLC videos into processing I saw that no spout plugin is existing for VLC so I'm trying to use network

I tried to open rtp and rtsp with the Movie class, but, impossible to make it works

I tried to add it in the valid protocols, but still not this is my code

`import processing.video.*;

class Mov2 extends Movie

{

Mov2(PApplet main, String url)

{

super(main, url);

supportedProtocols[1] = "rtsp";

supportedProtocols[2] = "rtp";

}

}

Mov2 movie;

void setup() {

size(640, 360);

background(0);

try

{

movie = new Mov2(this, "rtp://127.0.0.1:1234/");

}

catch (Exception e)

{

}

movie.loop();

}

void movieEvent(Movie m) {

m.read();

}

void draw()

{

image(movie, 0, 0, width, height);

}`

Does anybody knows how can I do ?

Thanks a lot !


Viewing all articles
Browse latest Browse all 2896

Trending Articles