The year was 2008. I had just become a father, and the world was changing. Back then, if you owned an iPhone (the original or the 3G), you had a revolutionary device that... strangely couldn't record video. The stock camera app was strictly for still photos.
But the "jailbreak" scene was alive and well. To capture my first child's earliest moments in motion, I did what many of us did: I jailbroke my wife's iPhone, opened Cydia (which, surprisingly, is still around!), and installed Qik.
Qik was a godsend. It was the first app that let the iPhone's hardware do what Apple hadn't enabled yet—record video. It was low-res, it was grainy, but it captured life in motion.
Fast forward nearly two decades. Qik is long gone, acquired by Skype and eventually discontinued. I had this folder from an old iPhone backup—hundreds of MOV files—but they were "silent" in one crucial way: they had no metadata. In macOS Finder or Google Photos, they all looked like they were recorded in 1970 or today. The context of when these moments happened was trapped in a handful of mysterious sidecar files: .des, .mdl, and .mds.
In 2026, I decided to dust off this archive. With the help of the Gemini CLI and the Gemini 3 Flash model, we finally cracked the code.
When we looked at the folder, we saw standard QuickTime .mov files accompanied by three proprietary formats:
.mds(Stream Metadata): A 2.5KB file that turned out to be the "header" for the stream..des(Descriptors): A variable-sized binary file that was the key to everything..mdl: Small auxiliary flags.
By analyzing the raw hex and searching through a legacy Mach-O armv6 Qik binary I had preserved, we uncovered the internal data structures. You can find the full technical breakdown in the Qik Metadata Analysis generated by Gemini.
Our key findings included:
- The Timestamp: Deep inside the
.desfiles, we found repeating 4-byte little-endian integers starting with0x48. These were Unix Timestamps from 2008-2010. - The Stream ID: At offset
0x70in the.mdsfile, we found a unique identifier for every recording session. - The Corruption: We found that some files (like
IMG_00299.mov) were truncated, missing their internalmoovatom—explaining why they wouldn't play.
A single recording doesn't just produce one file; it produces a "galaxy" of related data:
IMG_0010.mov <-- The Video (MPEG-4, but no metadata)
IMG_0010.des <-- The Timeline (Frame-by-frame timestamps & GPS)
IMG_0010.mds <-- The Header (Stream ID & original size)
IMG_0010.mdl <-- The Session Flags
IMG_0010.png <-- The Gallery Thumbnail
The challenge was mapping the "External" data in the .des file back into the "Internal" structure of the .mov container.
We found that the .des files contained 16-byte records. By staring at the hex, we found a "heartbeat" of timestamps:
Offset Data (Little Endian) Meaning
---------------------------------------------------------------------------
00000010: a3 7d ec 48 0x48EC7DA3 -> 1223456163 (Oct 2008)
00000014: 91 7b 4f 48 0x484F7B91 -> 1213168529 (Jun 2008)
A QuickTime file is a tree of "atoms." Our tools surgically traverse this tree to find the timestamp slots:
[ftyp] - File Type
[mdat] - Media Data (The actual video)
[moov] - Movie Atom (The Index)
├── [mvhd] <-- Global Timestamp (PATCHED!)
└── [trak] - Video Track
└── [mdia] - Media Info
└── [mdhd] <-- Stream Timestamp (PATCHED!)
We built three Python tools to rescue the archive, designed to run anywhere without heavy dependencies.
A pure Python tool to scan your archive. It extracts the estimated creation date, duration, and Stream ID. It even flags corrupted files that are missing their headers.
python3 qik_info.py /path/to/archiveA "no-dependency" surgical tool. It performs a binary patch on the .mov files, updating the mvhd, tkhd, and mdhd atoms directly. It's fast and requires nothing but Python.
python3 qik_fix.py --in-placeIf you have ffmpeg installed, this is the version to use. It embeds:
- The standard
creation_time. - The Apple-specific
com.apple.quicktime.creationdate(making the "Content Created" date show up perfectly in macOS Finder and Apple Photos). - Updates the filesystem timestamps using
touch.
For those looking to do this themselves, here are the offsets we mapped:
- MDS Magic:
c6 b8 a5 80 - DES Magic:
10 00 00 ca - Stream ID:
.mdsoffset0x70(uint32_le) - Unix Timestamp:
.desrecords starting with0x48xxxxxx
Using Gemini 3 Flash for this was a choice of speed and efficiency. While the "Pro" models are great for deep theory, Flash's ability to quickly iterate through binary structures and write clean, dependency-free Python made this recovery project possible in a single afternoon.
The graininess of the 2008 videos remains, but the time is now back where it belongs.