Page 1 of 1

BEGINNER - elementary explanation please

Posted: 07 Feb 2019 14:24
by lazna
Hi, I am completelly new in the VLC console controlling. Working under Windows, need to set-up "videoserver" where I could perform RTSP restreaming of multiple streams, opening and closing it programatically and independently.

First have checked telnet access, but I am unable to make it working. vlc.exe does not listening on default port 4212

Code: Select all

vlc.exe -I telnet --telnet-password test
Than I discovery the HTTP access to VLM. Successfully make it accessible but unable to control streams that way. Than start learning console monitoring, but do not understood it completelly. What is difference between:

Code: Select all

curl -u ":test" "http://10.12.32.134:8080/requests/status.json"
and

Code: Select all

curl -u ":test" "http://10.12.32.134:8080/requests/vlm.xml"
and what is the "proper" way to monitor all defined streams? What does means the "table:" section in the output of second command?

[content in another post because of characters exceeded]

Need to perform following actions by VML:

Code: Select all

curl.exe -u ":test" -G "http://10.12.32.134:8080/requests/vlm_cmd.xml" --data-urlencode "command=new channel2 broadcast enabled"

Code: Select all

curl.exe -u ":test" -G "http://10.12.32.134:8080/requests/vlm_cmd.xml" --data-urlencode "command=setup channel1 input rtsp://192.168.0.102:8080/video/h264"

Code: Select all

curl.exe -u ":test" -G "http://10.12.32.134:8080/requests/vlm_cmd.xml" --data-urlencode "command=setup channel1 output #rtp{sdp=rtsp://10.12.32.134:8555"

Code: Select all

curl.exe -u ":test" -G "http://10.12.32.134:8080/requests/vlm_cmd.xml" --data-urlencode "command=control channel2 play"
to defined new input and output stream and start restreaming. But it does not working, vlc even dont start listening on port 8555 (port is free) What am I doing wrong?

L.

Re: BEGINNER - elementary explanation please

Posted: 07 Feb 2019 15:57
by lazna
<?xml version="1.0" encoding="utf-8" standalone="yes" ?><vlm>table: 048FD870Vrtsp://192.168.0.102:8080/video/h264|N1|Vrtsp://192.168.0.102:8080/video/h264|N2|Vrtsp://192.168.0.102:8080/video/h264|N3|Vrtsp://192.168.0.102:8080/video/h264|N4|Vrtsp://192.168.0.102:8080/video/h264|N5|Vrtsp://192.168.0.102:8080/video/h264|N6|Vrtsp://192.168.0.102:8080/video/h264|N7|Vrtsp://192.168.0.102:8080/video/h264|N8|Vrtsp://192.168.0.102:8080/video/h264|N9|Vrtsp://10.12.48.34:8080/video/h264|N10|Vrtsp://10.12.48.34:8080/video/h264|N11|Vrtsp://10.12.48.34:8080/video/h264|N12|nil<broadcast name="channel1" enabled="yes" loop="no">
<output>#rtp{sdp=rtsp://10.12.32.134:8555</output>
<inputs><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://192.168.0.102:8080/video/h264</input><input>rtsp://10.12.48.34:8080/video/h264</input><input>rtsp://10.12.48.34:8080/video/h264</input><input>rtsp://10.12.48.34:8080/video/h264</input></inputs><options></options><instances>
</instances>
</broadcast>
</vlm>