Open crs553 opened 8 months ago
Understanding Pi Streaming
Protocol listed at the url
uses a two parts:
rpicam-vid -t 2 --inline -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8000/}' :demux=h264
rpicam-vim which allows us to inline stream to the stdout using -o -
and then allow allows us to delay the time to the recording starts using -t
the pipe then streams this into cvlc which takes the stdout and live streams in this case H264 to the stdout
More info on rpicam-vid can be found here
The linux man page for cvlc
Planning to try this next week on pi3
@TheWill10m This may be moved to done but I am having issues with picamera2 libcamera-helllo works but then also libcamera-vid does not work so I an a bit confused.
This maybe an appropriate place to start the issue libcamera-vid [0:19:10.055724976] [2949] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5 [0:19:10.064569655] [2952] INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 14-02-2024 (14:00:12) [0:19:10.087420873] [2952] INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/ov5647@36 to CFE device /dev/media1 and ISP device /dev/media0 using PiSP variant BCM2712_C0 Made X/EGL preview window Mode selection for 640:480:12:P SGBRG10_CSI2P,640x480/0 - Score: 1000 SGBRG10_CSI2P,1296x972/0 - Score: 1287 SGBRG10_CSI2P,1920x1080/0 - Score: 1636.67 SGBRG10_CSI2P,2592x1944/0 - Score: 1854 Stream configuration adjusted [0:19:10.470129797] [2949] INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-YUV420 (1) 640x480-GBRG16_PISP_COMP1 [0:19:10.470266741] [2952] INFO RPI pisp.cpp:1405 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected CFE format: 640x480-PC1g [libx264 @ 0x5555d86207d0] using cpu capabilities: ARMv8 NEON [libx264 @ 0x5555d86207d0] profile High, level 3.0, 4:2:0, 8-bit Output #0, h264, to '': Stream #0:0: Video: h264, yuv420p(tv, smpte170m/smpte170m/bt709), 640x480, q=2-31, 30 fps, 30 tbr, 1000k tbn [0:19:13.081789133] [2952] ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video6[18:cap]: Failed to start streaming: Connection timed out Segmentation fault
Hmm "works on my machine" and the logs (up to the error) are much the same.
Is this on a Pi5 and what OS and camera module are you using?
I had to manually install libcamera-apps
to get all the dependencies working. See if that installs or updates anything.
Start with RTSP