I am using the following command to generate a RTSP stream to be recorded on my NAS:
This works but my NAS receives only a 640 x 480 feed.
When I run the above command the output I get is:
Specifically the part that interests me is:
So I'm assuming that my NAS is recieving only stream (0) wheras I want to access the HQ stream (1).
The URL I have set in my NAS is:
Is there a URL I can use to access the second stream?
Code:
libcamera-vid -t 0 --framerate 10 --autofocus-mode manual --lens-position 1 --denoise cdn_off -n -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream}' :demux=h264
When I run the above command the output I get is:
Code:
● stream.service - Custom Webcam Streaming Service Loaded: loaded (/lib/systemd/system/stream.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2024-05-08 23:23:07 BST; 19min ago Main PID: 589 (stream.sh) Tasks: 18 (limit: 255) CPU: 1min 24.079s CGroup: /system.slice/stream.service ├─589 /bin/bash /home/pi/stream.sh ├─591 libcamera-vid -t 0 --framerate 10 --autofocus-mode manual --lens-position 1 --denoise cdn_off -n -o - └─592 /usr/bin/vlc -I dummy stream:///dev/stdin --sout #rtp{sdp=rtsp://:8554/stream} :demux=h264May 08 23:23:08 raspberrypi stream.sh[592]: [00c25a48] main interface error: no suitable interface moduleMay 08 23:23:08 raspberrypi stream.sh[592]: [00b80b98] main libvlc error: interface "globalhotkeys,none" initialization failedMay 08 23:23:08 raspberrypi stream.sh[592]: [00c25a48] dummy interface: using the dummy interface module...May 08 23:23:10 raspberrypi stream.sh[591]: [0:00:21.021744679] [591] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04fMay 08 23:23:10 raspberrypi stream.sh[591]: [0:00:21.215371086] [601] INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media0 and ISP device >May 08 23:23:10 raspberrypi stream.sh[591]: [0:00:21.215494523] [601] INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'May 08 23:23:10 raspberrypi stream.sh[591]: Stream configuration adjustedMay 08 23:23:10 raspberrypi stream.sh[591]: [0:00:21.233165252] [591] INFO Camera camera.cpp:1033 configuring streams: (0) 640x480-YUV420 (1) 2304x1296-SBGGR10_CSI2PMay 08 23:23:10 raspberrypi stream.sh[591]: [0:00:21.233897075] [601] INFO RPI vc4.cpp:565 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Sel>May 08 23:23:21 raspberrypi stream.sh[592]: [73403508] main stream error: unknown query 0x30e in demux_vaControlHelper
Code:
May 08 23:23:10 raspberrypi stream.sh[591]: [0:00:21.233165252] [591] INFO Camera camera.cpp:1033 configuring streams: (0) 640x480-YUV420 (1) 2304x1296-SBGGR10_CSI2P
The URL I have set in my NAS is:
Code:
rtsp://user:pass@<ip address>:8554/stream
Statistics: Posted by markw996 — Wed May 08, 2024 10:56 pm — Replies 0 — Views 16