I was searching the internet back and forth without any solution. I have an IP cam which is serving a RTSP stream on rtsp://<CamIP>/live and I am creating a player which is receiving the stream. For my development purposes I want to create a test rtsp server which is serving a previously recorded video of that cam.
I both tried it on OS-X and on Windows. I am unable to start a server with VLC on the default port 554, so that I don't have to specifiy the port in the player. Every other port above 1024 works well. However, as the url is fixed by the cam, I cannot change the port and must use the RTSP default port.
My current command line is: C:\Program Files (x86)\VideoLAN\VLC>vlc -vvv G:\dummyVideo.mp4 --sout '#rtp{dst=192.168.42.1,port=1234,sdp=rtsp://192.168.42.1/live}'
On Mac, I already tried to run VLC as root, which is not allowed by VLC. No work-a-round found so far.
On Windows, I run VLC as Administrator but I still can't access the stream on rtsp://192.168.42.1/live
Most pages on the web suggested to use another port above 1024, but this is absolutely not an option for me as I want to develop under the same conditions like when I am using the camera.
EDIT:
Log on Windows:
Code: Select all
main debug: set config option: sout-rtp-sdp to rtsp://:554/live
stream_out_rtp debug: RTSP stream at /live
main debug: net: listening to * port 554
main error: socket bind error (No error)
main error: socket bind error (No error)
main error: cannot create socket(s) for HTTP host