Can I stream video from the rpi5 running bookworm?

Embedded linux people, Can I stream video from the rpi5 running bookworm? the system knows the camera exists and I can get videos and images. But I cant get the browser to see the camera @MCU, MPU & Firmware Please help if you can
19 Replies
Yajat_Kaul
Yajat_Kaul•4w ago
I was facing the same issue where I couldn't access the camera for opencv
Ming
Ming•4w ago
@ZacckOsiemo First thing I would try would be with GStreamer If you don't have Gstreamer installed, run
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
Then, try the simplest pipeline gst-launch-1.0 camerabin
Ming
Ming•4w ago
That will prove your camera
ZacckOsiemo
ZacckOsiemo•4w ago
how did you fix it?
ZacckOsiemo
ZacckOsiemo•4w ago
attempting I believe my camera is proven, i can get footage and images, I just cant get the chromium browser to see the camera for streaming
Yajat_Kaul
Yajat_Kaul•4w ago
I didn't I instead used some other linux package that was ig the camera driver and just kept sending images every frame(very unoptimal but I didn't need optimization)
ZacckOsiemo
ZacckOsiemo•4w ago
oh that will be last resort
Yajat_Kaul
Yajat_Kaul•4w ago
Goodluck soldier 🪖
ZacckOsiemo
ZacckOsiemo•4w ago
💪 issues are finite, it will cave in at some point
Ming
Ming•4w ago
Does the camera work with cheese?
ZacckOsiemo
ZacckOsiemo•4w ago
I have only tried it with libcamera
ZacckOsiemo
ZacckOsiemo•4w ago
this results in the below https://gist.github.com/zacck/76dcdede44d494c1bf9ef8b88a682b97 preview
[0:35:15.354000345] [5437] ERROR Camera camera.cpp:1185 Can't configure camera with invalid configuration
ERROR: from element /GstCameraBin:camerabin0/GstWrapperCameraBinSrc:camerasrc/GstAutoVideoSrc:camerasrc-real-src/GstLibcameraSrc:camerasrc-real-src-actual-src-libcamer: Failed to configure camera: Invalid argument
[0:35:15.354000345] [5437] ERROR Camera camera.cpp:1185 Can't configure camera with invalid configuration
ERROR: from element /GstCameraBin:camerabin0/GstWrapperCameraBinSrc:camerasrc/GstAutoVideoSrc:camerasrc-real-src/GstLibcameraSrc:camerasrc-real-src-actual-src-libcamer: Failed to configure camera: Invalid argument
Gist
gstreamer_error.log
GitHub Gist: instantly share code, notes, and snippets.
ZacckOsiemo
ZacckOsiemo•4w ago
Camera does not work with Cheese 😦
Ming
Ming•4w ago
Have you got v4l-utils installed? If so, what is the output from v4l2-ctl --all
ZacckOsiemo
ZacckOsiemo•4w ago
Gist
gstreamer_error.log
GitHub Gist: instantly share code, notes, and snippets.
Ming
Ming•4w ago
That’s a good sign. In theory from that you can now check the camera capabilities (640x480 with a pRAA pixel format)
Ming
Ming•4w ago
Sometimes I have had to explicitly set those with the camera libraries.
ZacckOsiemo
ZacckOsiemo•4w ago
Ah I think I have an idea of what you want me to do, forward the stream with those params
ZacckOsiemo
ZacckOsiemo•4w ago
starting to like the linux kernel

Did you find this page helpful?