GUIDES · Workflows and Conditions

After Deletion: Reassembly Logic for P2 Card MXF and Sony MTS Fragments

P2 card contents were tampered with; Sony MTS formatted the entire card. How to evaluate, layer by layer (media, file system, content), which data can be recovered via fragment reassembly and where recovery becomes impossible?

A common scenario: After wrapping a shoot, the DIT inserts P2 cards and Sony camera memory cards into a laptop to copy footage. Once copying is done, they casually delete what they believe are duplicate files. Or, on booting up the next day, they discover the card has been accidentally formatted. Each media type requires a different recovery path; if the order of operations is wrong, recoverable clips can be overwritten. Below, we break down the process of reconstructing fragmented MXF files from P2 cards and MTS files from Sony cameras, step by step, along with the boundaries for each recovery stage.

At the post-production station, a hand picks up the storage card from beside the card reader to verify the copy results.

Scenario 1: P2 Card Contents Have Been Modified

The P2 card's directory structure is fixed. The CONTENTS folder contains five subdirectories: VIDEO, AUDIO, CLIP, ICON, and PROXY. At the root level, LASTCLIP.TXT records information about the last clip. Filenames use 6-digit identifiers to link a clip's video, audio, and XML files—for example, 0009E7.MXF with 0009E700.MXF. If you copy only the MXF file from the VIDEO folder and delete the corresponding XML from the CLIP folder, the clip will appear "missing" in your editing system, though the MXF file itself may remain intact.

Start by checking three conditions: whether the card has been rewritten again; whether CONTENTS and LASTCLIP.TXT match; and whether VIDEO and AUDIO files with matching identifiers are paired. P2 uses OP-Atom packaging, where video and audio are stored separately—missing either stream means the footage is incomplete. What was lost is the XML; recovery focuses on restoring the media files themselves and rebuilding the index, not declaring the entire clip unrecoverable.

P2 cards use FAT32, with a 4GB per-file limit. Long clips are split into segments. During recovery, align and stitch multi-segment footage by identifiers and timecode; missing even one segment will cause timeline sync issues.

Two professional storage cards placed side by side on a workbench, with metal contacts and card textures clearly visible.

Scenario 2: Full Format Sony MTS Memory Card

Sony AVCHD content is stored in PRIVATE/AVCHD/BDMV/STREAM with the .MTS extension. The same directory also contains CLIPINF and PLAYLIST folders. MTS uses a 192-byte source packet structure, where each packet consists of a 4-byte arrival timestamp followed by a 188-byte transport packet. The packet header starts with 0x47, and a continuous counter within each packet records sequence order. There is no index at the end of the file; integrity is verified through the packet structure itself.

High-frequency on-site issues typically involve full card formatting or deleting large files from the STREAM folder. Key indicators are: whether the camera has re-recorded, if .CPI and .MPL files remain, and whether file size and cluster chains remain contiguous after deletion. MTS tolerates local corruption better than MXF; however, under severe fragmentation, packets must still be scanned by 192-byte boundaries. Reordering relies on PAT/PMT tables and continuous counters to prevent video artifacts and audio-video desynchronization.

Three-tier judgment; order must not be changed

Two media types share the same diagnostic sequence. The Media Layer first rules out physical and firmware issues; if the card reader cannot detect the card or reports capacity as 0, any software scan could worsen damage. The File System Layer checks directory entries and cluster allocation tables; deletion only marks clusters as free, leaving original data intact in unoverwritten clusters. The Content Layer performs signature and structure validation: MXF verifies header and index table integrity, while MTS checks 0x47 synchronization stability and packet spacing consistency.

Fragment reorganization is only considered after all three layers pass. Scanning content before the medium often renders recoverable data unrecoverable.

Four Recovery Boundaries

Overwriting. Continuing to shoot after deletion or copying files to the same card will reclaim released clusters. The higher the overwrite ratio, the lower the recoverability—no software can bypass this.

Physical and firmware issues. Flash wear, controller anomalies, or the card being detected as 0 bytes are chip-level problems outside the scope of defragmentation. "Opening the drive" does not apply to SSDs or memory cards; that term is specific to mechanical hard drives.

Structure missing. P2 XML and audio tracks are lost; the index can be rebuilt, but timecodes and volume names may not be fully restored. Long shots split across cards have a missing segment, resulting in an incomplete deliverable. The MTS file lacks initial reference frames; the glitching in the first few seconds is due to file structure issues, not operational error.

Encryption and proprietary packaging. Some devices encrypt media or use vendor-specific formats that public tools cannot parse, requiring the corresponding device and authorized environment.

On the workbench, gloved hands insert the memory card into a write-protected reader.

Our approach

Wenming Light® splits this task into assessment and recovery. During assessment, we first sign an NDA, then examine the media and logs to provide a recoverability list, estimated completeness, and risk disclosure; the production team decides whether to proceed. The recovery phase follows a logical, firmware, and physical layer approach with dual-lead review. Upon delivery, we issue a formal electronic invoice.

Fragment recovery for P2 Card MXF, Sony MTS, and Canon MOV files follows the same principle: define boundaries first, then apply recovery techniques. File integrity depends on what happens after deletion, not on the recovery software's reputation.

The scope of processing covered in this document can be found at Video File Recovery、File System and Partition Recovery。

This document outlines the service process. Specific recovery plans, timelines, and costs are subject to on-site assessment results and mutually agreed-upon solutions.

Subscribe to our guide updates to stay informed about new process documentation.

RSS Subscription

Unsure how to describe the issue

First, let's assess your device so we can help you decide.

Device type, fault symptoms, and whether it has been disassembled are the three key factors for determining the recovery path. Please provide this information when contacting us.