Questions tagged [picamera]

140 questions
0
votes
0 answers

Not synchronized audio and video recorded with python

i bought an USB microphone and a Camera module for the raspberry pi4. I managed to record Audio and Video but when i merge them with ffmpeg the are not synchronized, i'm trying to solve this for 2 days now. Here my code, when the program starts it…
LAC
  • 47
  • 5
0
votes
0 answers

RPI: How to save the recorded video in a file only after it finishes a certain duration?

Hello I am very new to the environment of Picamera2 and even the Raspberry Pi itself, a beginner who wasn't able to learn also about the predecessor, Picamera. My question is how can you save the recording videos after it finishes? For example, if I…
0
votes
1 answer

picamera2 how to capture multiple images (3) with different exposure speed, as fast as possible?

I switched from the 1. gen Raspberry Pi to the Raspberry Pi 4. Now I want to migrate my picamera(1) project to picamera2. But I cant find a way to capture 3 images in a row, each with a different exposure speed. code with…
Milchgraf
  • 21
  • 5
0
votes
1 answer

Raspberry Pi Camera streaming to multiple clients

In my project I'm making a drone with a raspberry pi. I need to stream video from my raspberry pi camera with as low latency as possible and share that stream to multiple clients. I achieved a simple stream basing on the code : import io import…
0
votes
0 answers

Simultaneous video recording on Raspberry Pi, using Pi camera and USB camera

I'm working on a RPi wildlife monitor and want to be able to record video using the Raspberry Pi camera module at the same time as an USB mini FLIR thermal camera. Currently I'm using python's picamera module to continously record 20s of video and…
Tiga
  • 1
0
votes
0 answers

What causes my IMX519 Camera to produce errors when used?

My IMX519 Camera Sensor work on a preview through libcamera-still -t 0 but get these erros when initialized with libcamera-still -t 0 --viewfinder-width 2328 --viewfinder-height 1748 --autofocus It worked just fine on my previous interaction with…
0
votes
1 answer

(raspberry pi 4 and Python) raspberry Camera mode raise picamera.exc.PiCameraMMALError and picamera.exc.PiCameraError

system: raspberry pi 4 model B, use external usb logitech camera I'm follow the youtube tutorial but get picamera.exc.PiCameraMMALError andpicamera.exc.PiCameraError relate discussion on other site 2021 (I didn't get their solution): "Camera issue,…
j ton
  • 229
  • 9
0
votes
0 answers

How to capture Raspberry Pi HQ camera data in YUV format using PiCamera2?

I'm trying to use an ArduCam version of the Raspberry Pi HQ camera with IR-cut to take successive RGB and near-infrared images for vegetation analysis. I'm using a Raspberry Pi 3B with a fresh installation of Raspbian Bullseye completely updated.…
0
votes
1 answer

Sending Camfootage from Raspi (Python) to Windows (Java) via Socket -> Inpustream gets stucked

I am trying to send pictures of my Raspi to my PC. The program on the Raspi runs with Python. Since my main programming language is Java, I want to process the images in a JAVA application. As a template I took the demo program of the Raspicam…
0
votes
1 answer

How to use the Circular Output of the (still in alpha) Picamera 2 Python Library?

Using a Raspberry Pi, I would like to create a python script, which continuously records to a buffer, and then, when a signal is received (say the user types something into the terminal), the buffer is saved, and the previous frames are available to…
CricGuru
  • 5
  • 1
0
votes
0 answers

(Trackbars:8238): GLib-GObject-CRITICAL **: 10:02:29.171: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Description I'm designing an HSV color calibration menu on a Raspberry-Pi using PiCamera. Calibration using some of the features provided by OpenCV, namely the trackbar and masking. Source Code Here is the source code that I use: import numpy as…
renaldyks
  • 188
  • 1
  • 15
0
votes
1 answer

How to get elapsed time in if conditional statement in pyhton

I'm currently working on a Raspberry Pi-based project about a car speed detection prototype. I used 2 Infrared Proximity sensors as a trigger. prox1 is Sensor 1 to trigger start stopwatch. prox2 is sensor 2 to trigger stop the stopwatch. The given…
0
votes
1 answer

OpenCV corrupting HQ Rapsicam data above 4000x3040 resoution?

The Problem When I take an image using OpenCV that is larger than 4000 pixels wide, using a high quality picam, the image data appears corrupted (it's offset). More Detail As stated, I cannot get a good image when using OpenCV at over 4000 pixels…
Slacker
  • 23
  • 6
0
votes
1 answer

python raspberry camera settings for night

I have here my perfect setup for my raspberry video. raspivid -fps 25 -sh 0 -co 50 -br 50 -sa 0 -ISO 800 -ev +2 -ex auto -awb auto -mm average -n -b 2000000 -w 1920 -h 1080 -o /home/pi/cam/nachtvideo.h264 -t 0 Now I have but this fancy python…
user19097345
0
votes
0 answers

How to stop camera.capture_continuous?

i try to set up a timelapse with PiCamera and Schedule. I want to start my Timelapse at 06:00 in the morning and stop at 21:00. I can start the code without a problem, but every try to stop the image capture, did not work. Here is the code so…