I took another stab at it, but no luck. Taking into account all of the above, and a number of posts, I now have this command line:
Code: Select all
cvlc </home/vout1 -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 :h264-fps=10 :rtsp-tcp
As before, I can view the video when viewer and camera are on the same LAN, but I can't access it via the Internet. I mapped port 8554 (udp+tcp) and an assumed, port 80 for http access, through the router to the camera, but no luck.
When I watch the console log for CVLC in the camera, and a PC to open rtsp://<my Internet address>:8554/ in VLC Media Player > Open Network Stream, I see that CVLC opens a pair of ports, such as 59770 and 59771, or 50946 and 50947, or a different pair for each attempt, but I can't connect to the video. That makes sense because those ports are not accessible on the Internet. Nothing happens if I use http:// instead of rtsp:// in Open Network Stream.
How do I fix this ? What URL do I use in VLC Media Player > Open Network Stream to use http ? How do I change the http port used by CVLC ?
Thank you.