Input: rtsp://192.168.1.117:554/user=admin_password=zamar_channel=1_stream=0.sdp?real_stream
Output: :sout=#transcode{vcodec=mjpg,vb=2500,scale=auto,width=640,fps=10,acodec=none}:standard{access=http{mime="multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a"},mux=mpjpeg,dst=:8089/videostream.cgi}
However, when launching VLC via Telnet from the above package with command "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I telnet --vlm-conf vlm_conf.txt,
or entering the same data in VLC Menu "Tools - VLM Configuration", I can't capture the MJPEG stream from VLC into the same package, the camera window displays "Please wait..." message indefinitely. I tried this in VLC 2.1.5, 2.2.2, and 3.0.0 - the outcome is the same. I tried to set a path to vlm_conf.txt in VLC Settings and restart, the same outcome.
Please suggest how to make VLC work with its own VLM file correctly? Basically, it captures the source, but doesn't output any stream when using VLM. The surveillance package log says "HTTP/1.0 404 Client error Content-Length: 318 Content-Type: text/html".
The following is content of the vlm_conf.txt, when saved to disk, and then VLC called from surveillance package or Windows Cmd with command: "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I telnet --vlm-conf vlm_conf.txt :
Code: Select all
new camera1 broadcast loop enabled
# setup camera1 enabled
setup camera1 input rtsp://192.168.1.117:554/user=admin_password=zamar_channel=1_stream=0.sdp?real_stream
setup camera1 output #transcode{vcodec=mjpg,vb=2500,scale=auto,width=640,fps=10,acodec=none}:standard{access=http{mime="multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a"},mux=mpjpeg,dst=:8086/videostream.cgi}
control camera1 play
Code: Select all
[005e840c] logger interface: VLC media player - 2.2.2 Weatherwax
[005e840c] logger interface: Copyright © 1996-2016 the VideoLAN team
[005e840c] logger interface:
Warning: if you cannot access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I qt"
[005e840c] logger interface: using logger.
[005e840c] logger interface warning: no log filename provided, using `vlc-log.txt'
[005e840c] logger interface debug: opening logfile `vlc-log.txt'
Received 16 new bytes of response data.
Received 188 new bytes of response data.
Opening connection to 192.168.1.117, port 80...
...remote connection opened
Requesting RTSP-over-HTTP tunneling (on port 80)
Sending request: GET /user=admin_password=zamar_channel=1_stream=0.sdp?real_stream HTTP/1.1
CSeq: 1
User-Agent: LibVLC/2.2.2 (LIVE555 Streaming Media v2016.01.12)
Host: 192.168.1.117
x-sessioncookie: af7839e60bb74e43e8b2f5f
Accept: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
Received 16 new bytes of response data.
Received 188 new bytes of response data.