Author Topic: Corrupted D7200 NEF files  (Read 196 times)

Pokey

  • Newbie
  • *
  • Posts: 4
Corrupted D7200 NEF files
« on: January 05, 2017, 05:15:58 AM »
Hi everyone,
After moving NEF files from SD to HD some of them got corrupted. There is no preview, no image properties, nothing. I tried the software of yours, but it keeps giving me messages that it is not a D7200 NEF, file format error.
What can I do?

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 702
  • Professional Photographer and Workshop Leader
    • Hayo Baan – Photography
Re: Corrupted D7200 NEF files
« Reply #1 on: January 05, 2017, 06:28:12 AM »
Can you give us access to one of the corrupted files so we can have a look to see what/if it is salvageable?
Hayo Baan – Photography
Web: www.hayobaan.nl
Blog: blog.hayobaan.nl
500px: 500px.com/HayoBaan

Pokey

  • Newbie
  • *
  • Posts: 4
Re: Corrupted D7200 NEF files
« Reply #2 on: January 09, 2017, 08:26:01 AM »
Sure, here it is:
cjotpoint.nazwa.pl/DSC_1232.NEF
Hope it's not of me naked  ;)
« Last Edit: January 09, 2017, 08:52:55 AM by Pokey »

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 702
  • Professional Photographer and Workshop Leader
    • Hayo Baan – Photography
Re: Corrupted D7200 NEF files
« Reply #3 on: January 09, 2017, 09:39:58 AM »
Hmm, had a look at the file and it looks like the combination of multiple files. I did see (part of) an XMP metadata block, but I also saw references to Cryptographic algorithms (AES, SHA256, etc.), but also to printers/scanners, audio, (error) messages (indicating application code is intermingled as well), etc. So basically the file is a complete mess of data from all sorts of places on your disk.

With Phil's extract_preview (search on the the forum and it should pop up), I was able to extract 11 (!) images, but only 2 of them contained a viewable image, the other ones looked more like icons or where completely corrupt. But since they are both only 1200x800 in size it is very unlikely the are from your NEF. The images that where more likely to be from a NEF (though still not the 600x4000 I'd expect from a D7200) were completely destroyed (i.e., mostly just grey) so nothing useful there.

Hopefully you still have the original files on the SD, otherwise I'm afraid retrieving anything useful is a lost cause :(
I've attached the two images I recovered so you can see if they could be from the shots you lost.

Fore reference, this is the complete output of extract_preview -a DSC_1232.NEF:
Code: [Select]
[extract_preview version 1.03]
===== DSC_1232.NEF
Found JPEG (6x6 pixels, 21843 bytes at offset 5612499)
Found JPEG (256x192 pixels, 15095 bytes at offset 5634395)
Found JPEG (64x48 pixels, 3312 bytes at offset 5649551)
Found JPEG (64x48 pixels, 3028 bytes at offset 5652933)
Found JPEG (4500x3000 pixels, 341613 bytes at offset 6434816)
Found JPEG (4500x3000 pixels, 217444 bytes at offset 7745536)
Found JPEG (4170x3000 pixels, 377233 bytes at offset 8073216)
Found JPEG (4500x3000 pixels, 333627 bytes at offset 8892416)
Found JPEG (1200x800 pixels, 246296 bytes at offset 11821056)
Found JPEG (80x80 pixels, 1323 bytes at offset 22892544)
Found JPEG (1200x800 pixels, 166997 bytes at offset 26046464)
  --> saved 11 previews
----- Summary
    1 files processed
   11 previews created:
        1 6x6
        2 64x48
        1 80x80
        1 256x192
        2 1200x800
        1 4170x3000
        3 4500x3000
Done.
Hayo Baan – Photography
Web: www.hayobaan.nl
Blog: blog.hayobaan.nl
500px: 500px.com/HayoBaan

Pokey

  • Newbie
  • *
  • Posts: 4
Re: Corrupted D7200 NEF files
« Reply #4 on: January 10, 2017, 05:34:45 AM »
Thank you for your help. I just looked at the photos and that's just sick as I had never seen them before  :o
There is something seriously wrong with my hdd. I'll check the rest of the nefs.

Pokey

  • Newbie
  • *
  • Posts: 4
Re: Corrupted D7200 NEF files
« Reply #5 on: January 10, 2017, 03:30:29 PM »
I need more help. I've been browsing the forum but can't find extract_preview. Any clues?

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 702
  • Professional Photographer and Workshop Leader
    • Hayo Baan – Photography
Re: Corrupted D7200 NEF files
« Reply #6 on: January 10, 2017, 03:46:23 PM »
I think you started the search while in this board of the forum (then it will only search this board, not the whole site).  Anyway, here is a link to the script: http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4172.msg19805.html#msg19805
Hayo Baan – Photography
Web: www.hayobaan.nl
Blog: blog.hayobaan.nl
500px: 500px.com/HayoBaan

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 10909
    • ExifTool Home Page
Re: Corrupted D7200 NEF files
« Reply #7 on: January 10, 2017, 03:48:26 PM »
Note that it is a Perl script, so if you are on Windows you need to install Perl (and the Perl version of ExifTool) first.

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