Skip to content

MP4: ParseError — box exceeds container bounds on FLIR Thermal.mp4 #2310

Description

@magicsunday

Problem

Parsing an MP4 file throws:

ParseError: box ���f exceeds container bounds

The box FourCC contains non-ASCII bytes, suggesting a malformed or unusual MP4 structure.

Test File

Source: metadata-extractor-images/mp4/FLIR Thermal.mp4

Expected

The file should parse successfully or at least extract available metadata before the malformed box. ExifTool reads it without issues.

Analysis

The ISO BMFF parser encounters a box with an invalid FourCC and size that exceeds the container bounds. This could be FLIR-specific proprietary data embedded in the MP4. Per Postel's Law, the parser should tolerate trailing garbage and extract metadata from valid boxes.

Impact

FLIR thermal camera MP4 files are unreadable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions