Page 1 of 1

Stopping the streaming process

Posted: 28 Sep 2006 11:49
by lagarazo
I have launched a RTP stream from a java application:

Runtime.getRuntime().exec("vlc -vvv -I rc --rc-quiet dshow:// vdev=\"\" adev=\"\" --sout=#transcode{vcodec=MJPG,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=rtp,mux=ts,dst=192.168.1.10:1234}}");

In the computer with IP 192.168.1.10 I have a player where I see the webcam plugged in the first computer, so everything is OK.

But now I need to stop that process from the same java application, and I dont find a way to do it. It is not possible to get the proccess ID and kill it from Java, so I was searching for a way to do this from VLC command line.

Could anyone give me a help? Thanks in advance.

Posted: 28 Sep 2006 13:05
by lagarazo
I have already solved this.

Thanks to all who read this.

Posted: 13 Oct 2006 13:24
by wildemad
Hi. Can you tell us how you did it?

Thanks.

Posted: 18 Oct 2006 12:19
by lagarazo
The problem was that I run it with

Runtime.getRuntime().exec("cmd vlc.exe......", null, null);

Then the process I got was the cmd process , and when I stopped it, I was stopping the cmd process, not vlc process.

It works perfectly doing:

Runtime.getRuntime().exec("vlc.exe.....", null, new Dir("vlcDir"));