Using Raspberry Pi OS 32-bit with desktop (Bullseye) (Legacy) and a v2 camera module on a Pi3.
Without using raspi-config to enable Legacy Camera stack:and this example.py works OK, using Picamera2If we use raspi-config to enable Legacy Camera support and reboot: Works OK
And example.py fails:Also my Raspberry Pi3 does handle video recording seamlessly in .h264 format (but you probably want that in an mp4 container)
Without using raspi-config to enable Legacy Camera stack:
Code:
raspistill -o image.jpgERROR: the system should be configured for the legacy camera stack
Code:
from picamera2.encoders import H264Encoder, Qualityfrom picamera2 import Picamera2import timepicam2 = Picamera2()picam2.configure(picam2.create_video_configuration())encoder = H264Encoder()picam2.start_recording(encoder, 'test.h264', quality=Quality.HIGH)time.sleep(10)picam2.stop_recording()
Code:
raspistill -o image.jpg
And example.py fails:
Code:
python example.py[0:02:44.424274367] [1656] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04fCamera(s) not found (Do not forget to disable legacy camera with raspi-config)....
Statistics: Posted by neilgl — Mon Apr 22, 2024 12:33 pm