Stopping the streaming process

About encoding, codec settings, muxers and filter usage
lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Stopping the streaming process

Postby lagarazo » 28 Sep 2006 11:49

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.

lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Postby lagarazo » 28 Sep 2006 13:05

I have already solved this.

Thanks to all who read this.

wildemad
New Cone
New Cone
Posts: 2
Joined: 10 Oct 2006 21:08

Postby wildemad » 13 Oct 2006 13:24

Hi. Can you tell us how you did it?

Thanks.

lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Postby lagarazo » 18 Oct 2006 12:19

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"));


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests