How to Fix Corrupted MP4, HDR, RAW, and LOG Video Files
Repair corrupted HDR, RAW, LOG, and ProRes video files. Professional camera formats require special handling. Free tools and techniques that work.
TL;DR
HDR, RAW, and LOG files can be repaired using the same techniques as standard MP4 — but with important caveats. The container (MP4/MOV) is what gets corrupted; the video data usually survives. Use VidRepair or FFmpeg, and always preserve the original file.
Understanding Professional Video Formats
| Format | What It Is | Corruption Risk |
|---|---|---|
| HDR | High Dynamic Range — 10-bit+ color | Same as standard video |
| RAW | Uncompressed sensor data | Higher file sizes, more data at risk |
| LOG | Logarithmic color profile | Same as standard video |
| ProRes | Apple intermediate codec | Large files, standard repair works |
Key insight: These formats use the same containers (MP4, MOV, MXF) as standard video. Repair techniques are identical.
How to Repair Corrupted HDR Video Files
HDR (HDR10, HLG, Dolby Vision) is metadata + video data:
What Gets Corrupted
| Component | Repairable? | Notes |
|---|---|---|
| Container (MP4/MOV) | ✅ Yes | Standard repair works |
| HDR metadata | ⚠️ Sometimes | May need re-injection |
| Video stream | ✅ Yes | Preserved during repair |
| Color info | ✅ Usually | Part of video stream |
Repair Process
- Repair the container with VidRepair
- Verify HDR playback in compatible player
- Re-inject HDR metadata if needed (ffmpeg)
Important: Some repair tools strip HDR metadata. Always test HDR playback after repair.
FFmpeg for HDR
# Repair while preserving HDR
ffmpeg -i corrupted.mp4 -c copy -movflags faststart repaired.mp4
# Re-inject HDR10 metadata
ffmpeg -i repaired.mp4 -c copy -bsf:v hevc_metadata=colour_primaries=9:transfer_characteristics=16:matrix_coefficients=9 hdr_output.mp4How to Repair Corrupted RAW Video Files
RAW video (CinemaDNG, BRAW, ProRes RAW, RED) is more complex:
| RAW Format | Container | Repair Difficulty |
|---|---|---|
| ProRes RAW | MOV | Standard repair works |
| Blackmagic RAW | .braw | Proprietary — limited options |
| CinemaDNG | DNG sequence | Repair individual frames |
| RED R3D | .r3d | Proprietary — contact RED support |
For ProRes RAW
Standard MOV repair with VidRepair or FFmpeg works.
For BRAW
- Try Blackmagic RAW Player — may recover index
- Contact Blackmagic support — They have internal tools
- Professional recovery — For critical footage
For CinemaDNG
CinemaDNG is a sequence of DNG frames:
- Check for missing frames — Sequential numbering
- Repair individual DNG files — Adobe DNG Converter
- Rebuild sequence — Re-index frames
How to Repair Corrupted LOG Footage
LOG (S-Log, C-Log, V-Log) is just a color profile encoded in the video stream:
Good news: LOG footage repairs exactly like standard video. The LOG curve is baked into the video data, not the container.
Common Issues
| Issue | Cause | Fix |
|---|---|---|
| Flat/washed look | Missing LUT | Re-apply camera LUT |
| Wrong colors | Color space mismatch | Set correct color space in NLE |
| Banding | 8-bit LOG | Nothing — avoid 8-bit LOG |
After Repair
- Verify playback — Should look flat (normal for LOG)
- Apply camera LUT — Restore proper colors
- Grade normally — LOG gives maximum flexibility
Repair Comparison by Format
| Format | VidRepair | FFmpeg | Professional |
|---|---|---|---|
| Standard MP4 | ✅ Excellent | ✅ Excellent | ✅ |
| HDR (MP4/MOV) | ✅ Excellent | ✅ Good | ✅ |
| ProRes | ✅ Excellent | ✅ Excellent | ✅ |
| ProRes RAW | ✅ Good | ✅ Good | ✅ |
| BRAW | ❌ No | ❌ No | ⚠️ Contact BMD |
| R3D | ❌ No | ❌ No | ⚠️ Contact RED |
| CinemaDNG | ⚠️ Limited | ⚠️ Limited | ✅ |
Step-by-Step: Repair Professional Video Files
Step 1: Assess the File
# Check file structure with ffprobe
ffprobe -v error -show_format -show_streams corrupted.mp4Look for:
- Missing streams
- Damaged index
- Truncated data
Step 2: Attempt Basic Repair
With VidRepair:
- Select corrupted file
- Add reference file from same camera/settings
- Click Repair
- Preview result
With FFmpeg:
ffmpeg -i corrupted.mp4 -c copy repaired.mp4Step 3: Verify Quality
Check for:
- Frame accuracy — No dropped frames
- Color accuracy — LOG looks flat (correct)
- HDR playback — On HDR-compatible display
- Audio sync — Check lip sync
Step 4: Re-inject Metadata (If Needed)
# For HDR content
ffmpeg -i repaired.mp4 -c copy -bsf:v hevc_metadata=colour_primaries=9 repaired_hdr.mp4When Professional Formats Can't Be Repaired
| Situation | Recovery Option |
|---|---|
| Camera-specific codec damage | Camera manufacturer support |
| Proprietary format corruption | Format-specific tools (RED, BMD) |
| Sensor data corruption | Usually unrecoverable |
| Storage media failure | Professional data recovery |
Prevention for Professional Workflows
- Record to dual cards — Redundancy is critical
- Use high-end SD/CFAST — Professional media matters
- Verify in-camera — Check playback on set
- Backup immediately — Copy to multiple drives
- Use checksum verification — Verify copies are identical
- Archive original files — Before any processing