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.