Skip to content

Conversation

@karlobencic
Copy link
Contributor

Adds full support for signing and validating MP4 video files with C2PA manifests.

  • Added support for MP4 video files (mp41, mp42, isom brands)
  • Implemented StcoBox and Co64Box classes for proper chunk offset patching when inserting C2PA manifests in MP4 files
  • Fixed QuickTime-style MetaBox parsing to handle both ISO BMFF and QuickTime formats
  • Fixed JUMBF extraction to exclude trailing padding bytes
  • Made metadata assertion JSON-LD parser more lenient with undefined prefixes
  • Added MP4 video signing and validation tests
  • MP4 files can now be signed and validated using BMFF v2 and v3 hash assertions

@karlobencic karlobencic requested a review from cyraxx January 5, 2026 16:42
@changeset-bot
Copy link

changeset-bot bot commented Jan 5, 2026

🦋 Changeset detected

Latest commit: 2234c27

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@trustnxt/c2pa-ts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cyraxx
Copy link
Contributor

cyraxx commented Jan 6, 2026

Have the resulting signed MP4s (V2 and V3 assertion) been cross-verified with c2patool?

@karlobencic
Copy link
Contributor Author

karlobencic commented Jan 6, 2026

Have the resulting signed MP4s (V2 and V3 assertion) been cross-verified with c2patool?

Both V2 and V3 work with c2patool

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

Copy link
Contributor

@cyraxx cyraxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@karlobencic karlobencic merged commit 1deb78f into main Jan 6, 2026
4 checks passed
@karlobencic karlobencic deleted the feature/mp4-support branch January 6, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants