The DRM preview only works when the graphical desktop is not running. So you would need to boot to the console, or suspend the desktop with Ctrl-Alt-F1....
I entered the program from the example Picamera 2 library.
But when starting it gives an error: "Commit failed"
When I change DRM to QTGL, the camera window opens and the camera works fine.
I've tried the example from section 3.5.1 of the Picamera2 and it seemed to be OK (do note that it's "title_fields", not "title_field"). If you're still having problems, please check that your software is up to date ("sudo apt update" and "sudo apt full-upgrade"). If that still doesn't help confirm that it is this example you are referring to, and report:Also, title_field from the example of the same library does not work.
* What kind of Pi you have.
* What camera you are using.
* What OS you are running ("cat /etc/os-release").
* Your kernel version ("uname -a").
* Your firmware version ("vcgencmd version").
* Your camera software version ("rpicam-hello --version").
Thanks!
Statistics: Posted by therealdavidp — Mon Jun 17, 2024 9:15 am