Closed scriptorron closed 2 months ago
When I understand right Libcamera does not get enough memory for testing the "4608x2592-SBGGR10_1X10" format. When you run libcamera-raw
it offers you only the formats "640x480-YUV420" and "1536x864-SBGGR10_CSI2P". The full size format that makes the memory trouble is missing.
Please edit /boot/cmdline.txt
and add cma=400M
at the end. Reboot and try ./print_camera_information.py
again.
If this does not help please provide more information:
raspi-config
->"Advanced Options") the GL Driver, Glamor or Wayland? These graphic accelerators can take too much memory.grep -i cma /proc/meminfo
and forward the result.cat /boot/config.txt
and forward result.cat /boot/cmdline.txt
and forward result.cat /etc/os-release
and forward result.uname -a
and forward result.apt list --installed | grep libcamera
and forward result.apt list --installed | grep picamera
and forward result.grep -i cma /proc/meminfo
and forward result.Similar topics are:
Hi, seem that cma=400M works. ./print_camera_information.py [0:01:42.075142391] [1674] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70 [0:01:42.203460173] [1678] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media1 and ISP device /dev/media2 Found 1 cameras.
Camera 0: {'Id': '/base/soc/i2c0mux/i2c@1/imx708@1a', 'Location': 2, 'Model': 'imx708_noir', 'Rotation': 180}
[0:01:42.206140294] [1674] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70 [0:01:42.328354135] [1681] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media1 and ISP device /dev/media2 Camera properties: {'ColorFilterArrangement': 0, 'Location': 2, 'Model': 'imx708_noir', 'PixelArrayActiveAreas': (libcamera.Rectangle(16, 24, 4608, 2592),), 'PixelArraySize': (4608, 2592), 'Rotation': 180, 'ScalerCropMaximum': (0, 0, 0, 0), 'UnitCellSize': (1400, 1400)}
Raw sensor modes: [0:01:42.336425740] [1674] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 1536x864-SBGGR10_CSI2P [0:01:42.336740468] [1681] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 1536x864-SBGGR10_1X10 - Selected unicam format: 1536x864-pBAA [0:01:42.352519635] [1674] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 2304x1296-SBGGR10_CSI2P [0:01:42.352823270] [1681] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAA [0:01:42.386392251] [1674] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 4608x2592-SBGGR10_CSI2P [0:01:42.386722646] [1681] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 4608x2592-SBGGR10_1X10 - Selected unicam format: 4608x2592-pBAA [{'bit_depth': 10, 'crop_limits': (0, 0, 4608, 2592), 'exposure_limits': (9, 603302, None), 'format': SRGGB10_CSI2P, 'fps': 120.13, 'size': (1536, 864), 'unpacked': 'SRGGB10'}, {'bit_depth': 10, 'crop_limits': (0, 0, 4608, 2592), 'exposure_limits': (13, 875283, None), 'format': SRGGB10_CSI2P, 'fps': 56.03, 'size': (2304, 1296), 'unpacked': 'SRGGB10'}, {'bit_depth': 10, 'crop_limits': (0, 0, 4608, 2592), 'exposure_limits': (26, 1722331, None), 'format': SRGGB10_CSI2P, 'fps': 14.35, 'size': (4608, 2592), 'unpacked': 'SRGGB10'}]
Camera controls: {'AeConstraintMode': (0, 3, 0), 'AeEnable': (False, True, None), 'AeExposureMode': (0, 3, 0), 'AeMeteringMode': (0, 3, 0), 'AfMetering': (0, 1, 0), 'AfMode': (0, 2, 0), 'AfPause': (0, 2, 0), 'AfRange': (0, 2, 0), 'AfSpeed': (0, 1, 0), 'AfTrigger': (0, 1, 0), 'AfWindows': ((0, 0, 0, 0), (65535, 65535, 65535, 65535), (0, 0, 0, 0)), 'AnalogueGain': (1.0, 16.0, None), 'AwbEnable': (False, True, None), 'AwbMode': (0, 7, 0), 'Brightness': (-1.0, 1.0, 0.0), 'ColourCorrectionMatrix': (-16.0, 16.0, None), 'ColourGains': (0.0, 32.0, None), 'Contrast': (0.0, 32.0, 1.0), 'ExposureTime': (26, 1722331, None), 'ExposureValue': (-8.0, 8.0, 0.0), 'FrameDurationLimits': (69669, 1722936, None), 'LensPosition': (0.0, 32.0, 1.0), 'NoiseReductionMode': (0, 4, 0), 'Saturation': (0.0, 32.0, 1.0), 'ScalerCrop': ((0, 0, 64, 64), (0, 0, 4608, 2592), (576, 0, 3456, 2592)), 'Sharpness': (0.0, 16.0, 1.0)}
Exposure time: min: 26, max: 1722331, default: None
AnalogGain: min: 1.0, max: 16.0, default: None
Next step, i try it in "real life" So far, thanks a lot. Sigvald
I am happy to read this!
Your camera has auto-focus. This is something I have not implemented in the driver (because I do not have such a camera). In fact I have no idea how to handle this and will need to g**gle it. I hope you will get focused images.
I continuously work on the indi_pylibcamera driver. It is worth to update your copy from time to time: do git pull
in the indi_pylibcamera folder or just download it again.
If the driver works for you I would like to ask you for a favor: could you please make pictures of a terrestrial object with each raw mode (on tab "image settings" or "Bildeinstellungen") and send me the FITS files? If possible make a picture of something with red, green and blue colors and do not change camera position between the pictures. I will add a PNG test pattern to this repository in a few minutes. For instance you can open this test pattern on your PC and make pictures of your screen. Or you print the pattern and pin it on a tree. With these pictures I will check if the color channels are right, if the frames have zero- or garbage filled columns (the HQ camera has such columns!) and if the smaller sized raw frames use binning. Than I can use this information in the driver. For HQ and v1 camera I already did that.
Thank you!
Noch ein schönes Wochenende, Ronald
(Wir können auch auf deutsch kommunizieren. Vielleicht sind aber auch noch andere Leute an der Lösung dieses Problems interessiert.)
PNG image with RGB testpattern is in subfolder "testpattern".
Hi Ronald, as far as i could mention, the basic functions in kstars now do it properly. As soon as the snow is over and we have a clear sky i try some pictures outside. My great goal is to get the camera and the pi to work with an old tasco telescope. (T11) That is because you didn't get 0,96 inch oculars. So i can use it for educational proposes in our aerea. (Lower Saxony) I try to make the normal fotos for you with different aspects. Sigvald
Hi, I have to go just from the beginning. Something went wrong. I could start indiserver wit libcamera, start kstars and look for ekos config. Everthing seems ok, but no image would taken. Back to the shell. libcamera-hello fails also. I documented my steps, so i probably i will find why.
Good morning Roland, here a first status report. Well, I just reactivated my RPi3 B (vers. 1.2) with my old camera V2.1. As far as i can see, everthing works fine. Except there is a warning when i started your information program. [1:37:12.618632049] [2206] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70 [1:37:12.691550856] [2207] WARN RPI raspberrypi.cpp:1357 Mismatch between Unicam and CamHelper for embedded data usage! [1:37:12.693051789] [2207] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media3 and ISP device /dev/media0 Found 1 cameras.
Camera 0: {'Id': '/base/soc/i2c0mux/i2c@1/imx219@10', 'Location': 2, 'Model': 'imx219', 'Rotation': 180} Same warning occurs when starting indiserver. Next steps playing around with EKOS an see if everthing works as suspected. Then I try the V3 camera on the RPi3. Nice weekend SigvaldS
I had the same memory allocation error on a RPi Zero W and resolved it with
dtoverlay=vc4-fkms-v3d,cma-256
in /boot/config.txt
CS, Markus
Hi Roland, still working to get mit Pi up and running. You have to be al little more patient. Sigvald
Hello Sigvald,
No need to hurry. I hope you get the trouble managed.
Best Regards, Ronald
Hi, seems there are only minor problems left. [21:28:26.913572751] [28429] WARN IPAManager ipa_manager.cpp:114 Public key not valid [21:28:26.917766237] [28429] INFO Camera camera_manager.cpp:298 libcamera v0.0.4+40-e39f046f [21:28:26.955445109] [28430] WARN CameraSensorProperties camera_sensor_properties.cpp:245 No static properties available for 'imx708_noir' [21:28:26.955683126] [28430] WARN CameraSensorProperties camera_sensor_properties.cpp:247 Please consider updating the camera sensor properties database [21:28:27.095526423] [28430] INFO RPI raspberrypi.cpp:1487 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media0 and ISP device /dev/media1 [21:28:27.098508473] [28429] INFO Camera camera.cpp:1028 configuring streams: (0) 2304x1296-YUV420 [21:28:27.100328070] [28430] INFO RPI raspberrypi.cpp:857 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAA Stream configuration adjusted [21:28:32.314699981] [28429] INFO Camera camera.cpp:1028 configuring streams: (0) 4608x2592-YUV420 (1) 4608x2592-SBGGR10_CSI2P [21:28:32.321990535] [28430] INFO RPI raspberrypi.cpp:857 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 4608x2592-SBGGR10_1X10 - Selected unicam format: 4608x2592-pBAA Still capture image received Bayer format is BGGR-10
nice sunday, Sigvald
Hi, just playing aroung with such options: libcamera-still -o /home/User/Pictures/raw/test.jpg --shutter 110000000 -r -n --gain 1 --awbgains 1,1 --lens-position 0.0 --mode 4608:2592 --tuning-file /usr/share/libcamera/ipa/raspberrypi/imx708_noir.json Looks pretty well. Sigvald
Hi Roland,
seems i run into the next trouble. all libcamera-apps run fine. but kstars crashed, if i try indi_pylibamera driver.
indiserver -v ./indi_pylibcamera.py
2023-03-31T09:27:03: startup: indiserver -v ./indi_pylibcamera.py
2023-03-31T09:27:03: Driver ./indi_pylibcamera.py: pid=31980 rfd=6 wfd=6 efd=7
2023-03-31T09:27:03: listening to port 7624 on fd 5
2023-03-31T09:27:03: Local server: listening on local domain at: @/tmp/indiserver
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: [66:03:37.129035619] [31980] WARN IPAManager ipa_manager.cpp:114 Public key not valid
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: [66:03:37.132382546] [31980] INFO Camera camera_manager.cpp:298 libcamera v0.0.4+40-e39f046f
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: [66:03:37.161121420] [31981] WARN CameraSensorProperties camera_sensor_properties.cpp:245 No static properties available for 'imx708_noir'
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: [66:03:37.161210012] [31981] WARN CameraSensorProperties camera_sensor_properties.cpp:247 Please consider updating the camera sensor properties database
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: [66:03:37.329959040] [31981] INFO RPI raspberrypi.cpp:1487 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media1 and ISP device /dev/media0
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: root-INFO- found cameras: [{'Model': 'imx708_noir', 'Location': 2, 'Rotation': 180, 'Id': '/base/soc/i2c0mux/i2c@1/imx708@1a'}]
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py: root-INFO- Parsed data from client:
2023-03-31T09:27:04: Driver ./indi_pylibcamera.py:
2023-03-31T09:30:15: Driver ./indi_pylibcamera.py: restart #0
2023-03-31T09:30:15: Driver ./indi_pylibcamera.py: pid=31994 rfd=7 wfd=7 efd=10
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: [66:06:48.769748214] [31994] WARN IPAManager ipa_manager.cpp:114 Public key not valid
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: [66:06:48.773118067] [31994] INFO Camera camera_manager.cpp:298 libcamera v0.0.4+40-e39f046f
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: [66:06:48.802513398] [31995] WARN CameraSensorProperties camera_sensor_properties.cpp:245 No static properties available for 'imx708_noir'
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: [66:06:48.802606472] [31995] WARN CameraSensorProperties camera_sensor_properties.cpp:247 Please consider updating the camera sensor properties database
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: [66:06:48.967440771] [31995] INFO RPI raspberrypi.cpp:1487 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media1 and ISP device /dev/media0
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: root-INFO- found cameras: [{'Model': 'imx708_noir', 'Location': 2, 'Rotation': 180, 'Id': '/base/soc/i2c0mux/i2c@1/imx708@1a'}]
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py: root-INFO- Parsed data from client:
2023-03-31T09:30:16: Driver ./indi_pylibcamera.py:
i tried your new program, but get the same result.. with the default simulators everthing works well in kstars. sincerly Sigvald
@SigvaldS42 Did you run KStars from remote machine or from Raspberry Pi device? I had problems too using indi_pylibcamera driver from KStars installed on Raspberry Pi device. Remotely from Windows it worked just fine. Did you used build-soft-latest.sh or build-soft-stable.sh script? I resolved the issue with running the astro-soft-build script again using ./build-soft-stable.sh.
Installation instructions here: https://saimons-astronomy.webador.com/1216039_rapspberry-pi-hq-camera-with-ekos-and-indi-libcamera-driver
Hi Simon, i tried both. Local and remote. As far as i'm remember i try the stable version. i'll could try the latest version in the afternoon. Sigvald
Hello Sigvald,
The error message looks like the libcamera driver does not provide the pixelsize "UnitCellSize" anymore. When you run ./print_camera_information.py
you should see a value UnitCellSize in the "Camera properties" section. In one of your first posts the line was:
'UnitCellSize': (1400, 1400)}
I suppose the line is not there anymore. Root cause is libcamera, which does not find information about your camera. In you log you can see No static properties available for 'imx708_noir
. A few lines earlier was IPAManager ipa_manager.cpp:114 Public key not valid
.
The latest indi_pylibcamera version has a workaround for that: please read #19. In your case you need to write
force_UnitCellSize_X=1400
force_UnitCellSize_Y=1400
in the INI file.
The workaround should (hopefully) allow you to make pictures. But I recommend to fix the libcamera issue! Otherwise you will not be able to use advanced features (binning, higher number of bits per pixel, ...) of your camera.
It is an official Raspberry Pi camera. It should work right out of the box with a newer Raspberry Pi OS. Very strange!
Hello Roland and Simon,
i just did a new installation. for any reason there was no indi_pylibcamera.ini file. i correct that, uncomment the UnitCellSize and edited it to 1400. Then i compile the astro-soft-build with the stable shell.
But still new errors.
dsl@astropi4:~/Projects/indi_pylibcamera $ indiserver -v ./indi_pylibcamera.py
2023-03-31T21:00:44: startup: indiserver -v ./indi_pylibcamera.py
2023-03-31T21:00:44: Driver ./indi_pylibcamera.py: pid=2862 rfd=6 wfd=6 efd=7
2023-03-31T21:00:44: listening to port 7624 on fd 5
2023-03-31T21:00:44: Local server: listening on local domain at: @/tmp/indiserver
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: [0:33:41.225062619] [2862] WARN IPAManager ipa_manager.cpp:114 Public key not valid
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: [0:33:41.227933162] [2862] INFO Camera camera_manager.cpp:298 libcamera v0.0.4+40-e39f046f
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: [0:33:41.253864643] [2863] WARN CameraSensorProperties camera_sensor_properties.cpp:245 No static properties available for 'imx708_noir'
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: [0:33:41.253932867] [2863] WARN CameraSensorProperties camera_sensor_properties.cpp:247 Please consider updating the camera sensor properties database
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: [0:33:41.391121921] [2863] INFO RPI raspberrypi.cpp:1487 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media4 and ISP device /dev/media1
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: root-INFO- found cameras: [{'Model': 'imx708_noir', 'Location': 2, 'Rotation': 180, 'Id': '/base/soc/i2c0mux/i2c@1/imx708@1a'}]
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py: root-INFO- Parsed data from client:
2023-03-31T21:00:45: Driver ./indi_pylibcamera.py:
2023-03-31T21:02:02: Driver ./indi_pylibcamera.py: restart #0
2023-03-31T21:02:02: Driver ./indi_pylibcamera.py: pid=2930 rfd=7 wfd=7 efd=10
2023-03-31T21:02:02: Client 9: read EOF
2023-03-31T21:02:02: Client 9: shut down complete - bye!
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: [0:34:59.055680789] [2930] WARN IPAManager ipa_manager.cpp:114 Public key not valid
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: [0:34:59.058561129] [2930] INFO Camera camera_manager.cpp:298 libcamera v0.0.4+40-e39f046f
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: [0:34:59.085080183] [2931] WARN CameraSensorProperties camera_sensor_properties.cpp:245 No static properties available for 'imx708_noir'
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: [0:34:59.085148887] [2931] WARN CameraSensorProperties camera_sensor_properties.cpp:247 Please consider updating the camera sensor properties database
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: [0:34:59.220559585] [2931] INFO RPI raspberrypi.cpp:1487 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media4 and ISP device /dev/media1
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: root-INFO- found cameras: [{'Model': 'imx708_noir', 'Location': 2, 'Rotation': 180, 'Id': '/base/soc/i2c0mux/i2c@1/imx708@1a'}]
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py: root-INFO- Parsed data from client:
2023-03-31T21:02:03: Driver ./indi_pylibcamera.py:
the normal libcamera-apps function as they should. Seems we got a "nice" weekend. ;-o Sigvald
Good morning everybody. i have to raise a all-clear signal. Sometimes it's better to look at everything instead of doing something right from memory. I just used the indi_pylibcamera-main directory to start indiserver and changed in EKOS thr camera headword to indi_pylibcamery.py What should i say, everthing works allright. Lets see what happen after a reboot. So Roland should receive the RGB-shots this weekend. CS Sigvald --- still raing here :-(
ok guys, "WARN IPAManager ipa_manager.cpp:114 Public key not valid" is solved. openssl and co. are not installed by default. it's now corrected. there is a hint at libcamera git readme. the warinings about the imx708_noir are on focus of the libcamera developers and will be eliminated with the next offical update. so everything is fine now. thank you for your support. Any further questions, let me know. Sigvald
Hi Sigvald,
I am happy that you do not get errors anymore. I was already confused about the log you sent.
Wish you a nice weekend with better weather, Ronald
wtf! sorry, but after cold start i got this: libcamera-hello Made X/EGL preview window [0:14:46.029946331] [2298] INFO Camera camera_manager.cpp:298 libcamera v0.0.4+55-ac7511dc [0:14:46.090283869] [2302] WARN CameraSensorProperties camera_sensor_properties.cpp:245 No static properties available for 'imx708_noir' [0:14:46.090509346] [2302] WARN CameraSensorProperties camera_sensor_properties.cpp:247 Please consider updating the camera sensor properties database [0:14:46.421429111] [2302] INFO RPI raspberrypi.cpp:1487 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media1 and ISP device /dev/media2 [0:14:46.424677442] [2298] INFO Camera camera.cpp:1028 configuring streams: (0) 2304x1296-YUV420 [0:14:46.425847255] [2302] INFO RPI raspberrypi.cpp:857 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAA [0:14:48.113368559] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:48.246387907] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:49.146414030] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:50.112378794] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:50.146367564] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:51.112270121] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:51.145940009] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format [0:14:51.178844744] [2306] ERROR IPARPI cam_helper_imx708.cpp:250 PDAF data in unsupported format
ok, so still searching for bugs Sigvald
Oh no!!! Libcamera still has errors.
Does libcamera --list-cameras
work without errors? Output for my HQ camera is:
cam@indicam01:~ $ libcamera-hello --list-cameras
Available cameras
-----------------
0 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@1/imx477@1a)
Modes: 'SRGGB10_CSI2P' : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
'SRGGB12_CSI2P' : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
4056x3040 [10.00 fps - (0, 0)/4056x3040 crop]
Does libcamera-raw -o test.raw
work without errors? My HQ cam shows:
cam@indicam01:~ $ libcamera-raw -o test.raw
[0:18:34.396960133] [4663] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:18:34.559259886] [4664] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
Stream configuration adjusted
[0:18:34.567978819] [4663] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:18:34.571954789] [4664] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
Raw stream: 2028x1520 stride 3072 format SBGGR12_CSI2P
It also created a large test.raw
file.
Hello Roland, did the attached files fullfill your need for testpatterns? Otherwise let me know. Sigvald Raw-Testpattern.zip
Hi, next update. I'm not sure why libcamera-hello have such strange behavior. But to make it clear. Kstars with indi_pylibcamera works fine without any errors or warnings. So you should possible close this issue. Thank you for your support and help. Sigvald
Hello Sigvald,
thank you for the test pictures. I see there that the image sizes 2304x1296 and 1536x864 are done with 2x2 binning.
A minute ago I updated the binning table in the driver. With the new version the binning will automatically change when you select a raw mode. In opposite, when you change binning (X and Y must be equal!) automatically a fitting raw mode gets selected.
The screen shot is from my HQ camera. You will have 3 other raw modes.
When taking pictures you can change binning (and raw mode) with the binning input in the Ekos camera tab:
Best Regards, Ronald
Hello Ronald,
until now, everthing works fine without any error or waring.
Next step, to implement all at my telescope.
CS Sigvald
No communication since one year. I will close this issue.
This issue was first reported in the indilib.org forum: https://indilib.org/forum/ccds-dslrs/12177-indi-libcamera-driver.html?start=168