Working with metadata in MOV files

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Metadata MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-metadata -- dnx GroupDocs.Metadata.Mcp --yes
Folders, licensing and more →

Reading MOV format-specific properties

The GroupDocs.Metadata API supports extracting QuickTime atoms from a MOV video. The atom is the basic data unit in any QuickTime file. Please find more information on QuickTime atoms in the official specification: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFPreface/qtffPreface.html

The following are the steps to extract QuickTime atoms from a MOV video.

  1. Load a MOV video
  2. Get the root metadata package
  3. Extract  the native metadata package using the MovRootPackage.getMovPackage method
  4. Read the QuickTime atoms

advanced_usage.managing_metadata_for_specific_formats.video.mov.MovReadQuickTimeAtoms

try (Metadata metadata = new Metadata(Constants.InputMov)) {
	MovRootPackage root = metadata.getRootPackageGeneric();

	for (MovAtom atom : root.getMovPackage().getAtoms()) {
		System.out.println(atom.getType());
		System.out.println(atom.getOffset());
		System.out.println(atom.getSize());

		// ...
	}
}

Working with XMP metadata

GroupDocs.Metadata for Java allows managing XMP metadata in MOV files. For more details please refer to the following guide: Working with XMP Metadata.

The code sample below shows how to update XMP properties in a MOV video. If the file has no XMP package or the required schemes yet, they are created first.

advanced_usage.managing_metadata_for_specific_formats.video.mov.MovUpdateXmpProperties

try (Metadata metadata = new Metadata(Constants.InputMov)) {
    IXmp root = (IXmp) metadata.getRootPackage();

    if (root.getXmpPackage() == null) {
        root.setXmpPackage(new XmpPacketWrapper());
    }

    if (root.getXmpPackage().getSchemes().getDublinCore() == null) {
        root.getXmpPackage().getSchemes().setDublinCore(new XmpDublinCorePackage());
    }
    root.getXmpPackage().getSchemes().getDublinCore().setFormat("video/quicktime");
    root.getXmpPackage().getSchemes().getDublinCore().setRights("Copyright (C) 2011-2026 GroupDocs. All Rights Reserved.");
    root.getXmpPackage().getSchemes().getDublinCore().setSubject("test");

    if (root.getXmpPackage().getSchemes().getXmpBasic() == null) {
        root.getXmpPackage().getSchemes().setXmpBasic(new XmpBasicPackage());
    }
    root.getXmpPackage().getSchemes().getXmpBasic().setCreateDate(new Date());
    root.getXmpPackage().getSchemes().getXmpBasic().setLabel("GroupDocs");
    root.getXmpPackage().getSchemes().getXmpBasic().setRating(5);
    // ...

    metadata.save(Constants.OutputMov);
}

More resources

GitHub examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free online document metadata management App

Along with full featured Java library we provide simple, but powerful free Apps.

You are welcome to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails, images and more with our free online Free Online Document Metadata Viewing and Editing App.