Hi!
I would like to capture video at less than 15fps using picamera2. This is so I can have longer exposure for capturing low light video. I am using an arducam noir picamera with an imx219 image sensor.
to capture the video, I am using the python script below:This code runs successfully if I change FrameRate to 15 (test.mp4 captured at 15fps). When I run it with FrameRate at 12, I get the following output:This results in nothing being written to test.mp4. I also tried adding ""camera_timeout_value_ms": 5000000," to rpi_apps.yaml in case the issue was just the dequeue timer, but that resulted in the following output, along with nothing being written to test.mp4:Any ideas as to why I can only capture a minimum of 15 fps? I also have an issue where I can't set exposure for image capture over ~90000us, unsure if it is related (may make another post with those details if not).
Thanks in advance!
I would like to capture video at less than 15fps using picamera2. This is so I can have longer exposure for capturing low light video. I am using an arducam noir picamera with an imx219 image sensor.
to capture the video, I am using the python script below:
Code:
from picamera2 import Picamera2picam2 = Picamera2()config = picam2.create_video_configuration( main={"size": (1280, 960)}, lores={"size": (1280, 960)}, encode="lores") #, transform=libcamera.Transform(vflip=1,hflip=1))picam2.configure(config)picam2.set_controls({"FrameRate": 12})picam2.start_and_record_video("test.mp4", duration=5)
Code:
[0:17:36.912013190] [1967] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e[0:17:36.973419753] [1968] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[0:17:36.977385794] [1968] WARN RPI vc4.cpp:390 Mismatch between Unicam and CamHelper for embedded data usage![0:17:36.979329180] [1968] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media0 and ISP device /dev/media1[0:17:36.979471315] [1968] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'[0:17:36.985879180] [1967] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e[0:17:37.047382982] [1971] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[0:17:37.051381732] [1971] WARN RPI vc4.cpp:390 Mismatch between Unicam and CamHelper for embedded data usage![0:17:37.054094596] [1971] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media0 and ISP device /dev/media1[0:17:37.054241471] [1971] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'[0:17:37.101111523] [1967] INFO Camera camera.cpp:1183 configuring streams: (0) 1280x960-XBGR8888 (1) 1280x960-YUV420 (2) 1640x1232-SBGGR10_CSI2P[0:17:37.102302930] [1971] INFO RPI vc4.cpp:608 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA[0:17:38.440297981] [1971] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[15:cap]: Dequeue timer of 1000000.00us has expired![0:17:38.440493815] [1971] ERROR RPI pipeline_base.cpp:1374 Camera frontend has timed out![0:17:38.440572617] [1971] ERROR RPI pipeline_base.cpp:1375 Please check that your camera sensor connector is attached securely.[0:17:38.440653033] [1971] ERROR RPI pipeline_base.cpp:1376 Alternatively, try another cable and/or sensor.^CTraceback (most recent call last): File "/app/fps_test.py", line 13, in <module> picam2.start_and_record_video("test.mp4", duration=5) File "/usr/lib/python3.11/site-packages/picamera2/picamera2.py", line 1907, in start_and_record_video
Code:
[0:24:33.765223083] [2913] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e[0:24:33.826354177] [2922] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[0:24:33.830713083] [2922] WARN RPI vc4.cpp:390 Mismatch between Unicam and CamHelper for embedded data usage![0:24:33.832650271] [2922] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media0 and ISP device /dev/media1[0:24:33.832795010] [2922] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'[0:24:33.838776208] [2913] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e[0:24:33.898879177] [2925] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[0:24:33.902960427] [2925] WARN RPI vc4.cpp:390 Mismatch between Unicam and CamHelper for embedded data usage![0:24:33.905568604] [2925] INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media0 and ISP device /dev/media1[0:24:33.905795166] [2925] INFO RPI pipeline_base.cpp:1142 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'[0:24:33.953246573] [2913] INFO Camera camera.cpp:1183 configuring streams: (0) 1280x960-XBGR8888 (1) 1280x960-YUV420 (2) 1640x1232-SBGGR10_CSI2P[0:24:33.954384906] [2925] INFO RPI vc4.cpp:608 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAApipe:: Invalid data found when processing inputSegmentation fault
Thanks in advance!
Statistics: Posted by andrewSeeweed — Mon Jan 13, 2025 4:03 pm — Replies 0 — Views 38