Skip to content

Sony ILCE-7CM2 (A7C II) incompatibility #324

Description

@starkgb

Describe the bug
NINA reports an "Unsupported file format" error when using a Sony a7C II with NINA for stills capture, claiming that LibRaw does not support this camera when in fact recent versions of LibRaw (e.g., 0.22) do support this model (confirmed by Alex Tutubalin at the LibRaw team via info@libraw.org). The error states, "LibRaw open buffer failed: Unsupported file format or not RAW file."

After a bit of research, Alex Tutubalin at LibRaw discovered that the problem stems from the fact that NINA relies on two conflicting versions of LibRaw, one that is up to date (libraw_0_22_1.dll), and another that is very out of date (the version of LibRaw that is statically compiled into the FlyCapture2_v140.dll library is approximately ten years out of date). Alex believes that the out-of-date LibRaw library that is included in the FlyCapture library is the reason that the Sony ILCE-7CM2 (and likely other recent Sony models) image captures fail.

To Reproduce
Steps to reproduce the behavior:

  1. Install the Sony ASCOM driver.
  2. Physically connect the Sony camera to the computer (Sony ILCE-7CM2 aka Sony A7C II) via a USB C cable.
  3. From the Camera selection dropdown menu on the Equipment > Camera page, select and connect to the camera (ILCE_7CM2). The camera usually connects pretty quickly.
  4. Switch to the Imaging page and try to take a still image. When you do, the camera will take the image (you can hear the shutter click), but when NINA tries to process it, it throws the "LibRaw open buffer failed: Unsupported file format or not RAW file" error as shown in the screenshots section. Note that the camera works fine if you shoot a video. It's only with stills that it fails.

Expected behavior
Given that the 0.22 version of LibRaw supports the Sony ILCE_7CM2, I expect NINA to be able to capture still images from this camera.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows 11 Pro 25H2
  • OS Build: 26200.8875
  • Experience: Windows Feature Experience Pack 1000.26100.334.0

Relevant logfiles and attachments
N/A

Additional context
Alex (the person who debugged this at LibRaw.org) said to feel free to contact his organization at info@libraw.org if you have LibRaw questions. An excerpt from his email is below:

"...

The 3.3 installation contains LibRaw in two locations

  1. libraw_0_22_1.dll
    This is indeed 0.22 version (I know how to view the list of supported cameras directly in the binary, ILCE-7CM2 is listed)

  2. Again, FlyCapture2_v140.dll with LibRaw compiled in statically
    This (statically compiled) LibRaw version is very old, Sony support ends with A7-II camera. There isn't even an A7R-II there so this is something 10+ years old.

..."

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions