External Metadata Advanced 17.3

Introduction

Metadata can be provided to MediaHaven in the form of a metadata XML. The XML can be provided as a sidecar XML file or provided in a MediaHaven REST API. The basic version of the external metadata format can be found here: External Metadata Basic.

The following XSD validates the metadata:

Standard Fields

Sidecar (xpath)ProfileDescriptionFormat
titleTitleThe title of the file
descriptionDescriptionDescription about the file
md5Md5The MD5 checksum of the submitted file. If it mismatches with the calculated MD5 checksum during ingest, the file is rejected.
keywords/keywordKeywordsSeries of categories about the fileMultiItem
MDProperties/CreationDateCreationDateThe date and time the file was originally createdEXIF
MDProperties/rights_ownerRights_OwnerThe name of the (copyright) owner of the file
MDProperties/PublisherPublisherPublisher of the file
MDProperties/categories/categoryCategories
Series of keywords about the fileMultiItem
MDProperties/Authors/auteur
AuthorsSeries of authors of the fileMultItem
MDProperties/<any-tag><any-tag>

The user can provide his or her own custom tags as children of the tag MDProperties.

(warning) Namespaced tags are not allowed

(warning) It is forbidden to use MediaHaven reserved tags names inside MDProperties. The reserved fields include the following tags: type, title, description. The full list of the reserved fields in MediaHaven: Metadata Fields.


Advanced Fields

Sidecar (xpath)Description
Relations/<relation-type>/ExternalId

Define relations with this file as subject and the provided references as object by means of an ExternalId.

(warning) The object of the relation must already exist in MediaHaven with the provided ExternalId.

(warning) The provided relation type must have been configured in MediaHaven beforehand

(warning) Namespaced relation types are not allowed

fragments/fragment

To create fragments of videos or documents, you can provide a list of fragment children under the element fragments.

The fields below allow for providing some basic metadata fields to the created fragments.

fragments/fragment/original_start_z

The start position of the fragment in the file

  • In the case of video or audio: expressed in frames. Calculate the seconds relative to the start of the video, multiply by 25 and round to an integer. For example: 10.40s => 252
  • In the case of images or documents: the layer or page number, counted from 0.
fragments/fragment/original_end_z

The end position of the fragment in the file

  • In the case of video or audio: expressed in frames. Calculate the seconds relative to the start of the video, multiply by 25 and round to an integer. For example: 10.40s => 252
  • In the case of images or documents: no meaning
fragments/fragment/titleThe title of the new fragment
fragments/fragment/description
The description of the new fragment
fragments/fragment/keywords/keywordA list of keywords about the new fragment
TechnicalAll the technical fields defined in Metadata 17.3#Technical appear under the tag Technical.
InternalAll the internal fields defined in Metadata 17.3#Internal appear under the tag Internal.
AdministrativeAll the fields defined in Metadata 17.3#Administrative appear under the tag Administrative.

Example

MediaHAVEN_external_metadata
<?xml version="1.0" encoding="UTF-8"?>
<MediaHAVEN_external_metadata>
    <title>Metal - A Headbanger&amp;#039;s Journey 2005 DVDRip XviD MP3-frapper(FLAG_SU).mkv</title>
    <description>azertt</description>
    <MDProperties>
        <CreationDate>2016:02:04 14:06:50+01:00</CreationDate>
        <ArchiveDate>2016:02:04 14:06:13</ArchiveDate>
        <rights_owner>© dev</rights_owner>
        <Department>dd100b7a-efd0-44e3-8816-0905572421da</Department>
    </MDProperties>
    <OriginalFilename>Metal - A Headbanger's Journey 2005 DVDRip XviD MP3-frapper(FLAG_SU).mkv</OriginalFilename>
    <Administrative>
        <OrganisationName>dev</OrganisationName>
        <LastModifiedDate>2017-07-04T09:46:07Z</LastModifiedDate>
        <ArchiveDate>2016:02:04 14:06:15</ArchiveDate>
        <UploadedBy>tuur</UploadedBy>
        <Type>video</Type>
        <DepartmentName>dev</DepartmentName>
    </Administrative>
    <Technical>
        <OriginalFilename>Metal - A Headbanger's Journey 2005 DVDRip XviD MP3-frapper(FLAG_SU).mkv</OriginalFilename>
        <FileSize>727121284</FileSize>
        <Md5>c928f383035fa5d89edf07e1100646a3</Md5>
        <MimeType>video/x-matroska</MimeType>
        <Width>560</Width>
        <Height>304</Height>
        <ImageSize>560x304</ImageSize>
        <VideoTechnical>mpeg4 (Simple Profile) (XVID / 0x44495658) 560x304 23.98fps 987000bps</VideoTechnical>
        <AudioTechnical>mp3 2ch 48000HZ 32000bps</AudioTechnical>
        <DurationTimeCode>01:38:08.280</DurationTimeCode>
        <StartTimeCode>00:00:00.000</StartTimeCode>
        <EndTimeCode>01:38:08.280</EndTimeCode>
        <FragmentDurationTimeCode>01:34:08.040</FragmentDurationTimeCode>
        <FragmentStartTimeCode>00:00:00.000</FragmentStartTimeCode>
        <FragmentEndTimeCode>01:34:08.040</FragmentEndTimeCode>
        <FragmentDurationFrames>141201</FragmentDurationFrames>
        <FragmentStartFrames>0</FragmentStartFrames>
        <FragmentEndFrames>0</FragmentEndFrames>
    </Technical>
    <Internal>
        <MediaObjectId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106</MediaObjectId>
        <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b01069666b2fffc3c4f7780d7667ba6c0a29c</FragmentId>
        <TransferStatus>1016</TransferStatus>
        <ArchiveStatus>on_disk</ArchiveStatus>
        <OrganisationId>100</OrganisationId>
        <IngestSpaceId>b6b44df6-cf43-467e-acad-d26c98a9ff5d</IngestSpaceId>
        <IsInIngestSpace>0</IsInIngestSpace>
        <DepartmentId>dd100b7a-efd0-44e3-8816-0905572421da</DepartmentId>
        <IsFragment>0</IsFragment>
        <HasKeyframes>1</HasKeyframes>
        <ContainsGeoData>0</ContainsGeoData>
        <PathToKeyframe>http://dev-storage-virtual.mediahaven.com/DEV/69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106/keyframes/keyframes_1_1/keyframe1.jpg</PathToKeyframe>
        <PathToKeyframeThumb>http://dev-storage-virtual.mediahaven.com/DEV/69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106/keyframes-thumb/keyframes_1_1/keyframe1.jpg</PathToKeyframeThumb>
        <PathToVideo>http://dev-storage-virtual.mediahaven.com/DEV/69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106/browse.mp4</PathToVideo>
        <Browses>
            <Browse>
                <PathToKeyframe>http://dev-storage-virtual.mediahaven.com/DEV/69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106/keyframes/keyframes_1_1/keyframe1.jpg</PathToKeyframe>
                <PathToKeyframeThumb>http://dev-storage-virtual.mediahaven.com/DEV/69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106/keyframes-thumb/keyframes_1_1/keyframe1.jpg</PathToKeyframeThumb>
                <PathToVideo>http://dev-storage-virtual.mediahaven.com/DEV/69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106/browse.mp4</PathToVideo>
            </Browse>
        </Browses>
    </Internal>
    <fragments>
        <fragment>
            <title>Metal - Fragment 1</title>
            <original_start_z>48</original_start_z>
            <original_end_z>9955</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106b2213889673e431a9cdb611a1f20d8ba</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - Fragment 2</title>
            <description>...
            </description>
            <original_start_z>2545</original_start_z>
            <original_end_z>4329</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b01063929b43f42c14897a69d7e0e03339d3a</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - A Headbanger's LONG LONG</title>
            <description>Very long!!!!</description>
            <original_start_z>5028</original_start_z>
            <original_end_z>135878</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b010655126786f22342bda33f9c077413415e</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - Fragment 4</title>
            <description>Hello world!!!</description>
            <original_start_z>12405</original_start_z>
            <original_end_z>30679</original_end_z>
            <keywords>
                <keyword>Tag this!!!</keyword>
            </keywords>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106d94383bc651740e0b77d9083a16ba2f3</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - Fragment 3</title>
            <original_start_z>12405</original_start_z>
            <original_end_z>30679</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b01062aca50b91eca40e6b168565ff5103a72</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - A Headbanger's Journey 2005 DVDRip XviD MP3-frapper(FLAG_SU).mkv</title>
            <original_start_z>30679</original_start_z>
            <original_end_z>37121</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b010612373dd9706a40988d5e01cca7e2cc3a</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - A Headbanger&amp;#039;s Journey 2005 DVDRip XviD MP3-frapper(FLAG_SU).mkv</title>
            <original_start_z>45248</original_start_z>
            <original_end_z>48598</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106cf67e5d2c3f5451eb8aaa7b390f2a873</FragmentId>
            </Internal>
        </fragment>
        <fragment>
            <title>Metal - A Headbanger&amp;#039;s Journey 2005 DVDRip XviD MP3-frapper(FLAG_SU).mkv</title>
            <original_start_z>141863</original_start_z>
            <original_end_z>146690</original_end_z>
            <Internal>
                <FragmentId>69a81d8888204580b7fee3227b8fa2bd32ff7d4c864f452b87d70c60ae3b0106dc2dae80468045ccad7cee3f3ab4b1da</FragmentId>
            </Internal>
        </fragment>
    </fragments>
</MediaHAVEN_external_metadata>