I've managed to get my pi zero 2 w's connected camera to stream over RTSP on the LAN with the instructions from https://www.raspberrypi.com/documentati ... .html#rtsp, and verified this works from within the LAN on another computer with VLC. Now, I'm away from that LAN and want to view the stream. I've managed to SSH into the pi zero 2 w and tunnel the RTSP port 8554 I'm using with the following command:
But nothing shows up when I open rtsp://@:8554/stream1 on VLC on the client computer. I've tried RTSP over HTTP tunneling like so
and forwarding port 8555 and connecting to it in VLC as above, and configuring the client VLC to use RTSP over HTTP tunneling but still no dice. What's the best way to view this RPi camera remotely?
Code:
ssh -L 8554:localhost:8554 -p $SSH_PORT pi.zero2w.address
Code:
libcamera-vid -t 0 --inline -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' --rtsp-http --rtsp-http-port 8555 :demux=h264
Statistics: Posted by mngyuan — Sun Jan 14, 2024 2:40 am