×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI LibCamera Driver

  • Posts: 64
  • Thank you received: 10

Replied by Axel on topic INDI LibCamera Driver

Hi Outta,

could you probably be a little bit more precise in what you really did and write it down in a row :-)

- Did you build (!) the indi-libcamera? How?
- What means "pulled"? - from where (git -which version exactly?)
- You write "And then it installed" - what exactly did you install (your built indi-libcamera ...?)

I think this would help people to understand what you exactly did and why :-) For me, it is not clear what your goal was and what you succeeded in the end and why.

THX and cheers
Axel
Last edit: 2 months 1 week ago by Axel .
2 months 1 week ago #99113

Please Log in or Create an account to join the conversation.

  • Posts: 124
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver

I got fresh clean install of Stellarmate and did
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade?

Then i coppied commands in a row from this github github.com/indilib/indi-3rdparty

To ease up here are all in order without my failed steps, just run one by one when previous is finished.

sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtiff-dev libfftw3-dev libftdi-dev libgps-dev libraw-dev libdc1394-dev libgphoto2-dev libboost-dev libboost-regex-dev librtlsdr-dev liblimesuite-dev libftdi1-dev libavcodec-dev libavdevice-dev

sudo apt-get -y install libindi-dev

mkdir -p ~/Projects
cd ~/Projects

git clone --depth=1 github.com/indilib/indi-3rdparty

Then I ran this two commands I mentioned:

sudo apt-get install libcamera-dev
sudo apt-get install libboost-all-dev

Next I ran this set of commands
mkdir -p ~/Projects/build/indi-libcamera
cd ~/Projects/build/indi-libcamera
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-libcamera
make -j4
sudo make install

Then I started Kstats, opened Ekos, Selected Camera to be Raspberry Pi - Libcamera, started Ekos, and set AWB Blue and Red to 1 from zero and voila, it works!

OH IMPORTANT:
Gain has to be 1 or more. It crashes with 0
Last edit: 2 months 1 week ago by Outta.
2 months 1 week ago #99117

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
I was able to make it work! Thanks for the detailed instructions. Although I don't know if it happens to you, but for me after a couple pictures the camera crashes (or its driver).
Well at least we are getting some progress.
Best,
2 months 1 week ago #99257

Please Log in or Create an account to join the conversation.

  • Posts: 124
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver

Not a single crash for me,
1-2s exposures, gain 16, running all night in 8 bit phd2, this are my libcam versions

libcamera-dev:arm64 0.1.0+rpt20231122-1 >
ii libcamera-ipa:arm64 0.1.0+rpt20231122-1 >
ii libcamera-tools 0.1.0+rpt20231122-1 >
ii libcamera0.1:arm64 0.1.0+rpt20231122-1 >
2 months 1 week ago #99258

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0

Replied by Matt on topic INDI LibCamera Driver


I've tried these steps a few times now with Stellarmate 1.8.1 on a pi 4B. After one to two captures the driver crashes. Tested with the LibCamera imx477. New to this software as of last week, but willing to provide any logs or testing if you can point me in the right direction. I would prefer to get this camera working vs buying another at this time.
2 months 22 hours ago #99417

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

Issue with upstream RPICAM leading to out-of-memory error, it's reported here: github.com/raspberrypi/rpicam-apps/issues/640
2 months 16 hours ago #99420

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

Apparently the OOM issue was due to not parsing options, I uploaded a new version. Please check it out.
2 months 12 hours ago #99422

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0

Replied by Matt on topic INDI LibCamera Driver

Yes sir, that solved the issue for me. I updated to the latest, setup a capture of 300 and let it run. No issues to report. Thank you for taking the time to get that update in there so quickly.
2 months 6 hours ago #99428

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver

Hello i have this error:
Found LIBCAMERA Library: /usr/local/lib/aarch64-linux-gnu/libcamera.so
CMake Error at /home/masseris/Projects/indi-3rdparty/cmake_modules/FindLibCameraApps.cmake:43 (message):
LIBCAMERAAPPS Library not found. Please install rpicam-apps
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)

Ettore
1 month 3 weeks ago #99500

Please Log in or Create an account to join the conversation.

  • Posts: 124
  • Thank you received: 13

Replied by Outta on topic INDI LibCamera Driver

Details please what os, what device, and did you follow stepps I posted on previous page?
1 month 3 weeks ago #99505

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver

This is error, correct in "git clone --depth=1 github.com/indilib/indi-3rdparty"
I resolved with github.com/aaronwmorris/indi-allsky/blob...c/build_libcamera.sh
Ettore
1 month 3 weeks ago #99508

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
I can't find a way to delete post. I learned that the FITS images need to be deabayered. I did not do that, so I think the issues are artifacts of not using a debayer filter and binning.
Sorry for the post. Like I said, I am a newbie to this.

I am fairly new to INDI stuff.
System:
- RPi Zero 2W
- RPi HQ Camera mounted at backfocus of 16"LX600
- bullseye arm64 lite. Update and upgrade
- apt install -y libcamera-apps indi-bin python3-picamera2 python3-lxml python3-astropy python3-pi
- pip3 install indi_pylibcamera
- indi_pylibcamera_postinstall
- indiserver -v indi_pylibcamera

The INDI driver started ok. Connected CCDCiel from my laptop. Connected to RPi INDI and camera indi_pylibcamera.
I was able to loop th epreview and manually focus and center the start (Procyon.) The preview was mono, of course. Then I started a sequence of 10 images. They were all uploaded to my laptop as FITS files. These images were all binned 2x2.
The next day I was looking at them and they only have a mono images and they have odd gaps every other row and column. I probed the FITS files and it only has that one image.
Did I set something up wrong in the INDI driver? If I capture using libcamera I get color images on the RPi I can move to my laptop, but the FITS images are weird.
Last edit: 1 month 3 weeks ago by Prof Huster.
1 month 3 weeks ago #99579

Please Log in or Create an account to join the conversation.

Time to create page: 1.107 seconds