Nikon D810 corrupted files

Started by vibra, February 28, 2015, 05:39:50 PM

Previous topic - Next topic

vibra

Hi Phil,
I have some problems with some NEF files from my new D810.
About 10 out of 2000 are now no longer recognized by any software (CNXD, ViexNX2, DXO).
I identified that these files are those on which I did some labelling with ViewNX2 v2.3.2 (add / remove labels).
Now they are corrupted and I cannot read them.
With the latest ViewNX2 v2.10.3, there is no problem, it does not corrupt files. But it is too late for my corrupted files !

I have tested ExifTool and I don't see any obviously corrupted field but I am not by far a specialist.
If you have a little time, could you please have a look on these files in http://vb-photo.com/tmp/ ?


Phil Harvey

Whatever you do, don't edit these files with anything else or you may lose them for good.

If you are lucky, this problem is fixable.  Send me a sample and I'll take a look.  If it can be fixed, I'll need a full set of 12 samples to add support for the D810 to my fix_corrupted_nef utility.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

vibra

Hi Phil,
Thanks for your answer. The files are too big to be attached here but you can find them in http://vb-photo.com/tmp
But there are only 7. To add more files, I have to reinstall the old version of ViewNx2 to corrupt other files. Is it absolutely necessary ?

Phil Harvey

Thanks.  I'll download them tomorrow when I'm back on high speed.

To add support for the D810 I only really need the originals.  I use the corrupted ones to verify that things are working.

I'll ask for the originals tomorrow if I think I can fix the corrupted images you posted.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

I've got good news and bad news.

The bad news is that these images are not corrupted in the usual way, so they can't be repaired by the fix_corrupted_nef utility.  This is a different form of corruption that I haven't seen before.

The good news is that the RAW images may be recovered using ExifTool.

After some work, I determined that it seems only the SubIFD2 CFA tags have been corrupted.  Fixing them with this command makes the images so that I can view them with Apple Preview:

exiftool -subifd2:cfarepeatpatterndim="2 2" -subifd2:cfapattern2="0 1 1 2" -subifd2:cfapattern#="2 2 0 1 1 2" FILE

where FILE is one or more file and/or directory names.  (Impressive images, by the way!)

ExifTool will automatically preserve the original (corrupted in this case) images with a "_original" added to the extension.

After this command is run, you should hopefully be able to open your NEF images again.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

vibra

Hi Phil,
It works perfectly  :)
Thank you very much !