Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4907

Beginners • Re: Storing video in pendrive / USB drive

$
0
0
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:

Code:

raspistill -o image.jpgERROR: the system should be configured for the legacy camera stack
and this example.py works OK, using Picamera2

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()
If we use raspi-config to enable Legacy Camera support and reboot:

Code:

raspistill -o image.jpg
Works OK
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)....
Also my Raspberry Pi3 does handle video recording seamlessly in .h264 format (but you probably want that in an mp4 container)

Statistics: Posted by neilgl — Mon Apr 22, 2024 12:33 pm



Viewing all articles
Browse latest Browse all 4907

Trending Articles