ilia3101 / LibMLV

MLV Reading/Writing library
5 stars 0 forks source link

Canon sraw/mraw won't convert #2

Open cmhamiche opened 4 years ago

cmhamiche commented 4 years ago

I'll just past the forum's content

IDA_ML

I have now tried the following on my M6600:

1) Disconnected the computer from the internet and deactivated Windows defender

2) Tried the new version from your post #46 and the old version from your post #54. I pasted the files from the archives in C:\Temp along with a file called IMG_7673.CR2. I used the command line as you suggested. RAW2mlv crashes again but before this happens, I get the following messages on the screen:

Output name set to C:\Temp\test.mlv Opening file C:\Temp\IMG_7673.CR2 0.67220, -0.06350, -0,06930 -0.42870, 1.24600, 0.20280 -0.09080, 0.21629, 0.56680

Then the program crashes generating an empty test.mlv file.

[...]

https://we.tl/t-TvhpqWZhNH

Ilia3101

It is a 5D3 file.

Interesting, does not work for me. Segmentation fault 11.

Update: I have found that it incorrectly reads width of the raw file as 3960 and the height as 2640. The mark 3's resolution is 5760x3840

UPDATE 2: I see this is not raw, it's sraw, not bayer. No idea what kind of image sraw is. The MLV format does not support this. Or maybe it does, but has never been implemented.

cmh

That's what I was about to say, libraw shows "only bayer-pattern raw files supported, sorry...."

Ilia3101

Rawtherapee can open it though, I wonder how they do it. I thought they use libraw.

cmh

They are using darktable's implementation of rawspeed apparently. Here's some oldish info on how to compile libraw with rawspeed support: https://github.com/LibRaw/LibRaw/blob/master/README.RawSpeed.txt https://gitlab.com/ImageMagick/LibRaw/blob/master/README.RawSpeed.txt https://github.com/FMeinicke/QtRaw edit: You'll probably loose your sanity fiddling with mingw tho https://github.com/darktable-org/rawspeed

cmhamiche commented 4 years ago

I was wrong, for Rawtherapee it's dcraw they maintain internally. https://github.com/Beep6581/RawTherapee/issues/3988

Here's RT dcraw: https://github.com/Beep6581/RawTherapee/blob/dev/rtengine/dcraw.cc

and here's where they add new cameras: https://github.com/Beep6581/RawTherapee/blob/dev/rtengine/camconst.json

ilia3101 commented 4 years ago

Thanks for putting all this info here. We will have to wait until RGb or YUV is support is figured out in MLV.