Skip to content

Modify/Extend MP4PrivateMovieRecord #40

@lkondrad

Description

@lkondrad

MP4PrivateMovieRecord structure in MP4Atoms.h contains pointers to file level boxes :

  • MP4AtomPtr moovAtomPtr; /* might be a moof or a moov */
  • MP4AtomPtr ftyp; /* the file type atom */
  • MP4AtomPtr jp2h; /* for JPEG-2000, the JP2 header atom */
  • MP4AtomPtr sgnt; /* for JPEG-2000, the signature atom */
  • MP4AtomPtr meta; /* file-level meta-data */
  • MP4AtomPtr meco; /* Deprecated file-level additional meta-data container */

Part 12 defines other boxes that can be on File level (e.g. ExtendedTypeBox) but it is not possible to include them in the file using current implementation of the library.

The future prove way would be to modify the structure to store MP4AtomPtr to the boxes in MP4LinkedList? The order in the list would be the order in which the boxes are stored. Functions to get a box of given type form the record could be added. Unfortunately, that change would affect the library in many places.

The quick fix would be to add new pointers and modify LocalPutMovieIntoHandle function from MP4MovieFile.c to handle them when storing the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions