Questions tagged [libcamera]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Best way to create Docker image to run on Raspberry Pi4/Debian12 Bookworm using libcamera

What is the best way to build and run a Docker image on a Raspberry Pi 4B (4GB) so I can run the latest version of libcamera. I have put together a Dockerfile based on the feedback from Error in ...
jono2010's user avatar
  • 101
0 votes
0 answers
11 views

libcamera-hello: how to know the actual device used?

libcamera-hello: how to know the actual device used? The --list-camera option gives: $ libcamera-hello --list-camera Available cameras ----------------- 0 : imxXYZ [wxh] (/base/soc/i2c0mux/i2c@1/...
fghoussen's user avatar
  • 129
0 votes
0 answers
36 views

gstreamer problem

I want to try gstreamer to do live video streaming with VLC player. Raspberry pi 4 model B. Bookworm OS, 32 Bit Linux raspberrypi 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05)...
DM 256's user avatar
  • 1
0 votes
1 answer
57 views

unable to build libcamera and libcamera-apps

A very similar question was asked 8 days ago, but my issue is different. I get meson.build:3:0: ERROR: Options "raspberrypi" are not in allowed choices..." I get the impression there is ...
Petr's user avatar
  • 117
0 votes
0 answers
23 views

libcamera installation not working on "meson setup build"

I am using Lubuntu on a Raspberry Pi 3B and trying to install libcamera following the instructions here: https://libcamera.org/getting-started.html After downloading the libcamera.git repository and ...
user279043's user avatar
0 votes
2 answers
309 views

Unable to build libcamera-apps

im not able to build libcamera-apps on my system. Hardware: Pi 4 B OS: Debian GNU/Linux 11 (bullseye) I fowllowed all the steps in this Docu: https://www.raspberrypi.com/documentation/computers/...
Schlörn's user avatar
0 votes
0 answers
129 views

Rapsberry Pi Camera v3 issues

I want to make a Rpi4 8GB livestream 2 camera feeds over 4G (SIM7600X module). One camera is a generic action cam and the other one is a PiCamera v3, which I have issues with. I'm running Raspbian ...
ch1kbr3_ 2307's user avatar
1 vote
0 answers
247 views

libcamera-vid fails to operate in higher resolution

I try to run libcamera-vid with several camera modules at higher resolutions, but fail. Calling libcamera-still works as expected. The behavior can be reproduced with several modules with OmniVision ...
Twonky's user avatar
  • 133
0 votes
0 answers
164 views

Camera preview through X11 using --qt-preview not working

Connected from my desktop host via ssh -X to my Raspi 3B, I assumed that libcamera-hello --qt-preview would create a preview window on my desktop. But it is not. Instead, Made DRM preview window is ...
Twonky's user avatar
  • 133
0 votes
0 answers
78 views

Freenove Camera not able to interface with Raspberry pi 4 + Ubuntu 20.04 LTS

I am trying to work on a project where I want to use ROS. However, I found that for using ROS Noetic, I will need to install Ubuntu 20.04 on my Raspberry pi 4. Now, I bought a camera module (Freenove ...
Inderjeet's user avatar
0 votes
1 answer
98 views

How to handle shots with Picamera2?

I'm looking for code to handle shots with Picamera2. I want: Take photo with the camera Show plan on screen for x seconds Save photo as jpeg image. I try the code below but can't find how to adjust ...
Mon Pelaud's user avatar
0 votes
0 answers
218 views

ImportError: cannot import name 'ControlType' from 'libcamera' (unknown location)

I'm relatively new to Raspberry Pi and I am having trouble running a python code on raspberry pi. The code I'm trying to run is as shown below: import cv2 from picamera.array import PiRGBArray from ...
Bobby's user avatar
  • 1
0 votes
1 answer
467 views

writing my own libcamera-app

I used to be quite an experienced c programmer but, just after cpp appeared, we all switched to java. Now I am rather lost with make, cmake, ninja, git, pip3, meson ... It makes dealing with java's ...
Petr's user avatar
  • 117
0 votes
0 answers
112 views

Libcamera-still got fixed blurry image problem after increasing cma , but Picamera2 still giving blurry image

I'm using this raspberry pi zero 512mb ram. I've successfully connected the arducam 64mp camera and it's capturing 4kx3k resolution fine , after I changed the cma from 265m to 400m the libcamera-still ...
Swarnarup Bhunia's user avatar
0 votes
0 answers
66 views

RPi Bullseye: libcamera-jpeg does not write to USB drive, while libcamera-vid does

I'm running a Python script on a Raspberry Pi 3 B+. This script automatically takes video and stills using the Raspberry Pi camera and should write it to an external USB drive. I've mounted a USB ...
Bert's user avatar
  • 1
0 votes
1 answer
118 views

How to crop output from the 5MP RPi v1 camera

I'm scanning QR codes with a RPi Zero and a RPi camera v1 (5 MP, ov5647 sensor). The camera has a fixed focus, which means that QR codes closer than about 40-50cm tends to become fuzzy because of the ...
Elias Naur's user avatar
0 votes
0 answers
466 views

Recording high-framerate video with libcamera-vid, camera module v3 and rpi 3B

UPDATE: According to this issue, it seems that 120fps with the camera module v3 is only possible with a RPI 4, so this kind of answer my question. I'm not sure how to handle this case (self-answering ...
FiguredIT's user avatar
1 vote
0 answers
158 views

Example of libcamera with Qt6 in c++?

I'm trying to build a Qt app on my RPi4 using libCamera in c++, but I keep having build/compile issues. Are there any examples of using libCamera in a Qt app in c++? I'm using Raspbian bullseye, and ...
robotanical's user avatar
0 votes
0 answers
88 views

How to work with libcamera framebuffer contents?

If I specify a format like UYVY10, what is contained in framebuffer memory? Is it a packed raw bit stream of 10-bit numbers so I need to count the bits and byte-op them into machine usable integers? ...
jiandingzhe's user avatar
0 votes
0 answers
2k views

Streaming straight from libcamera-vid to RTMP on Pi Zero 2 W: FFmpeg not needed?

I was able to figure out all of my libcamera stream settings needed to stream video from my Camera Module 3 and audio from a USB microphone in my RPi Zero W 2 straight to YouTube, which is as follows: ...
Patrick Hennessey's user avatar
1 vote
0 answers
24 views

Download the streaming video in server

In order to stream video over the LAN, I used a Raspberry Pi Zero W. I used this MJPEG server code to stream the video over the LAN. [mpjpeg streaming program] 1 Currently, I want to download and save ...
Sureshkumar's user avatar
1 vote
2 answers
1k views

Trouble with polkit-agent-helper-1: error responce to policykit deamon

Entire error message: ninja: Entering directory `build' [1/2] Installing files. Installation failed due to insufficient permissions. Attempting to use polkit to gain elevated privileges... ==== ...
robotanical's user avatar
2 votes
1 answer
510 views

How to fix the libcamera error 'Could not open any dmaHeap device'

I've two Raspberry PI V2 cameras connected to my Raspberry Pi compute module 4 carrier. The OS is (64bit) Bullseye 11 kernel is 5.15.76-v8+ libcamera-apps build: 9c5d3191b3f4 02-12-2022 (20:10:40) ...
Simon Banks's user avatar
1 vote
1 answer
792 views

Raspi camera module V3 with Octopi

Recently purchased raspberry pi camera module 3 NOIR. My plan was to use it for octopi (octoprint), however, i tried my best but couldn’t make it work, and followed many of pages on net but no result (...
Habil Hadi's user avatar
1 vote
1 answer
407 views

What are the requirements for the new Camera V3 module on Debian Buster?

I am currently trying to get the Camera V3 module up and running on Debian Buster. I already managed to get it running with libcamera which I downloaded and compiled from source, so the connection and ...
rdmueller's user avatar
  • 267
1 vote
0 answers
723 views

Raspberry Pi Camera Error: Unicam Has Timed Out

I have been trying to get my Raspberry Pi camera to work for a while now. Probably every two weeks or so I would fire up the Raspberry Pi to convince myself that something changed but whatever I try, ...
Nathan Montanez's user avatar
0 votes
0 answers
184 views

libcamera fail with Python

Using the following code in Thonny import os os.system("libcamera-jpeg -o test.jpg -t 1 -n 1") No picture is saved to the "base" folder (or any folder), but I get the message &...
Bryan's user avatar
  • 1
3 votes
2 answers
347 views

Raspberry PI 4 B 8Gb running 2 ov9281 cameras with camarray hat: ERROR: *** no cameras available ***

I have a Raspberry PI 4 B 8Gb. I have this kit (2 ov9281 cameras with camarray hat): https://www.uctronics.com/arducam-1mp-2-stereoscopic-camera-bundle-kit-for-raspberry-pi-nvidia-jetson-nano-xavier-...
fghoussen's user avatar
  • 129
0 votes
0 answers
106 views

Error while getting Full-Bayer-Layer data using Libcamera-raw

I'm trying to get full bayer layer data of Pi-Camera V2 (NoIR). I just followed the official doc. libcamera-raw -t 2000 --segment 1 -o test%05d.raw Above command produces .raw files with each size of ...
Garid's user avatar
  • 101
1 vote
0 answers
2k views

Stream video from the Raspberry Pi camera over a local network in Bullseye 64-bit

I open 2 tabs of Terminal in my Ubuntu Desktop. In Terminal tab 1 I run netcat -l -p 5000 | mplayer -fps 60 -cache 2048 - and in Terminal tab 2 I log in RPi 3B+ with Buster 32-bit via ssh and run ...
Daniel Franco's user avatar
1 vote
1 answer
3k views

legacy camera not detected, bullseye

I have a problem concerning my raspberry pi camera version 2.1. The camera is supported, enabled but is not detected. I'm working with a Raspberry pi 3B+. I'm certain that I have plugged in my camera ...
raspberry_101's user avatar
1 vote
0 answers
119 views

Setting up a camera to record in a way that won't be corrupted by unexpected shutdowns

Hi I am setting up a pi to record effectively continuously with 24 1 hour videos recorded in a day. Automating this recording with systemd is mostly working as intended but I was hoping to find a ...
Shovel_jockey's user avatar
0 votes
0 answers
1k views

Error in building libcamera - Debian 'Bullseye'

Very new to Raspberry Pi & Linux programming, have only been tinkering with it for the past month, so assume I know nothing. Context: I am using a custom 'lite' image from the Cluster Hat website ...
Matthew Banko's user avatar
0 votes
1 answer
186 views

'/dev/v4l-subdev1' node not created anymore for 16 MP Arducam with autofocus (IMX519 based) with Rpi 4B

/dev/v4l-subdev0 and /dev/v4l-subdev1 nodes used to be created before when booting up the Rpi with the ArduCam plugged in (via MIPI CSI-2 port). Now only /dev/v4l-subdev0 shows up, and I'm not sure ...
PeterGhimself's user avatar
0 votes
0 answers
418 views

unknown control 'rotate'

I have recently purchased a Raspberry Pi Camera Rev 1.3, and I'm trying to rotate it to 90 degrees, then its not able to rotate. Its just rotating it to 0 degrees or 180 degrees below is the command ...
Siddh Mistry's user avatar
1 vote
0 answers
1k views

How to update libcamera camera database

When I use libcamera-still et al. to access my waveshare OV9281-160 Mono camera I get warning messages like the following: [3:37:16.227335845] [26500] WARN CameraSensorProperties ...
Johannes Bauer's user avatar
1 vote
1 answer
743 views

ERROR: *** unrecognised codec libav ***

I'm attempting to run the sample command found here for streaming video data to an mp4 container using libcamera-vid and the libav integration. I have the latest Raspberry Pi OS Lite installed using ...
Willem Ellis's user avatar
0 votes
1 answer
734 views

How to get Python binding to recompiled libcamera?

I am trying to recompile libcamera, as I will be changing some stuff in it and I would therefore like to install it manually. The compilation and installation are successful, but I am not able to ...
arminveres's user avatar
1 vote
1 answer
2k views

How to add libcamera to pyenv

I am running a pyenv with 3.10.5 for a RPi 4 b. RPi OS version if important: pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" ... The pyenv was simply ...
Boooke's user avatar
  • 11
3 votes
2 answers
5k views

Libcamera apps do not work

I'm on Raspberry Pi OS Bullseye, using a Pi 3B. The error message is differing from the ones I could find on previous posts, and there are different fixes by changing dtoverlay in /boot/config.txt. ...
user147054's user avatar
0 votes
1 answer
1k views

How to run libcamera-still in python trough crontab?

I'm trying to make a time lapse using crontab to manage time intervals. The camera I use is an arducam Autofocus imx519. The libcamera-still command works normally when run via terminal. But when I ...
Pa Dalton's user avatar
0 votes
2 answers
191 views

Script running from terminal after setting pythonpath and running "thonny&" command, but not when thonny ide is opened directly

I am using a Raspberry Pi OS 64-bit to run a script that will capture an image. I have gone through installing the right packages for libcamera for this OS and can run libcamera apps using my terminal....
Uchechi Ugo's user avatar
0 votes
2 answers
3k views

Camera not working on Raspberry Pi 3B Running Debian Bullseye

Pi Model: Raspberry Pi 3B OS: Debian version: 11 (bullseye) Camera: Arducam Lens Board OV5647 I have connected my Raspberry Pi to my camera module and attempted to check its functionality with ...
Nat's user avatar
  • 19
0 votes
0 answers
229 views

Using the camera on 64bit vs. 32bit from Java

I have Raspberry Pi 3 B. And a camera module v. 2.1. I have installed the Raspbian OS 64bit, the latest - "bullseye" Tried to record some video in any way, and after some experimentation, I ...
Ondra Žižka's user avatar
0 votes
1 answer
1k views

Glamor Graphic Errors troubleshooting libcamera on headless raspberry pi zero w

I've been trying to troubleshoot libcamera by enabling glamor graphics acceleration on my raspberry pi zero w v1.1. When trying to run I get the following followed by the process just hanging forever....
neogeek23's user avatar
  • 101
2 votes
1 answer
145 views

Inconsistent error using HQ camera

I have been having some issues using the HQ pi camera. I am running Rasbian 11, latest apt update 11 march 2022. I use libcamera-still to take images and I call this command using python subprocess....
Olaf's user avatar
  • 41
0 votes
0 answers
1k views

How to stream video from Pi running Bullseye in HTML? (Pre-Bullseye do not work anymore)

I'm trying to stream video from my Pi running Bullseye 32 bit (with camera OV5647) available on HTML on another device over LAN. I do not want to use the legacy stack as it causes problems with VNC to ...
Anirban Sen's user avatar
1 vote
0 answers
704 views

libcamera-still hangs on pi 3B running bullseye lite (headless)

I'm struggling to transition to libcamera-still from raspistill on an older pi OS. I would just like to capture a single snapshot to file via a SSH connection. I run libcamera-still -v -n --immediate -...
schmop's user avatar
  • 179
0 votes
2 answers
10k views

libcamera stack does not work with Bullseye

On a RasPi4, the HQ-Camera works well with the legacy camera stack, but not with the libcamera stack. I did an update from Buster to Bullseye. $ uname -a Linux raspberrypi 5.10.89-v7l+ #1506 SMP Fri ...
Neverland's user avatar
  • 351
0 votes
0 answers
251 views

Camera driver, updated or removed and now isn't working

My camera was working fine, but now it isn't being recognized anymore. I tried to check if it was enabled on the Raspberry Configuration Interface tab, but the camera option isn't showing anymore. On ...
Gija's user avatar
  • 1