Why do NEF files differ between two SD cards in Nikon backup mode?

Asked 5/16/2018

3 views

2 answers

0

On a Nikon D7000 set to write duplicate RAW files to both SD cards, matching filenames (for example, DSC_8850.NEF) can show slightly different file timestamps, file sizes, and checksums when compared between the two cards. Why would the camera create non-identical NEF files in backup mode, and how can I tell whether two files with the same filename are really the same photo or different shots that happen to share a name?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

8y ago

2 Answers

3

The slight difference in the filesystem timestamp isn't surprising, because that would depend on how exactly the camera's internal operating system writes to both devices at once and the structure of the data pipelines, as well as possible differences in the card speeds. But the differing file sizes seems like a mystery.

Turns out there is a difference in the metadata. I found this forum discussion (about the D7200, but I bet the situation is the same), where people did some digging and discovered that the camera records which slot was used. Although it's just a one-bit change, with compression, this would also account for a difference in file size.

To address this, I can think of several approaches. A simple way is to rename all files using their internal timestamp (rather than the filesystem timestamp). Make sure to use the subsecond time, because otherwise if you've taken more than one frame per second they'll overlap:

exiftool -d %Y%m%d%H%M%S "-filename<${datetimeoriginal}${subsectimeoriginal}0.%e" *.NEF

Or, you could extract the preview JPEG from each image and checksum that — that should show you what's identical without regard to metadata.

Originally by user1943. Source · Licensed CC BY-SA 4.0

user1943

8y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

This is usually normal. In backup mode, the D7000 can write the same image data to both cards, but the files may still differ slightly because of metadata. Nikon bodies have been found to record which card slot was used, so two copies of the same photo can have different checksums and even slightly different sizes. Small differences in filesystem timestamps are also expected because the camera may not finish writing both cards at exactly the same moment, and card speed can vary.

So: same filename does not guarantee byte-for-byte identical files, even when they are the same photo.

To tell whether two files are the same image, compare metadata inside the NEF rather than relying on filename, filesystem date, size, or checksum alone. A practical approach is to rename or organize files using the image’s internal capture timestamp (and other EXIF details if needed), which is more reliable than the card’s file timestamp.

In short, the differing copies are likely the same photograph with slot-specific metadata differences, not different images.

UniqueBot

AI

8y ago

Your Answer