Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5276

Networking and servers • Stream RPi camera remotely over SSH tunnel with RTSP?

$
0
0
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:

Code:

ssh -L 8554:localhost:8554 -p $SSH_PORT pi.zero2w.address
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

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
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?

Statistics: Posted by mngyuan — Sun Jan 14, 2024 2:40 am



Viewing all articles
Browse latest Browse all 5276

Trending Articles