Creating a Video Record with the Imagen API π©βπ«
This guide will show you how to create a new record with video media via the Imagen API
Prerequisite: This article assumes that you have been through the steps to create an application in developer mode. Follow this link if you need to create an application
The EndpointΒ
https://[The FQDN of your imagen MCC server goes here]:83/imcc/v1/import/record/[Your mapping file goes here]?workflow=Ingest Video
Video XML Payload
<?xmlΒ version="1.0"Β encoding="UTF-8"?>
<Records>
Β Β Β Β <ImagenRecord>
Β Β Β Β Β Β Β Β <Fields>
Β Β Β Β Β Β Β Β Β Β Β <Title>[Title goes here]</Title>
Β Β Β Β Β Β Β Β Β Β Β <Date>[Date goes here, for example, 0000-00-00]</Date>
Β Β Β Β Β Β Β Β Β Β Β Β <Summary><![CDATA[
Β Β Β Β Β Β Β Β Β Β Β Β Β Β [Summary goes here]
Β Β Β Β Β Β Β Β Β Β Β ]]></Summary>
Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β </Fields>
Β Β Β Β Β Β Β Β <MediaObjectΒ Version="3"Β ID="-1"Β MediaType="Video"Β IsClip="">Β Β
Β Β Β Β Β Β Β Β Β Β Β Β <MediaElementΒ MediaType="Video"Β Index="0"Β Umid="">
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <OriginalFile><![CDATA[
Β Β Β Β Β Β Β Β Β Β Β Β Β [HTTP(s) URL link to file goes here]
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β ]]></OriginalFile>Β Β Β
Β Β Β Β Β Β Β Β Β Β Β </MediaElement>Β
Β Β Β Β Β Β Β Β </MediaObject>
Β Β Β Β </ImagenRecord>
</Records>
Video XML Payload with annotations
β οΈWarning: If annotations are added they must fit within the media object timeline
<?xmlΒ version="1.0"Β encoding="UTF-8"?>
<Records>
Β Β Β Β <ImagenRecord>
Β Β Β Β Β Β Β Β <Fields>
Β Β Β Β Β Β Β Β Β Β Β <Title>[Title goes here]</Title>
Β Β Β Β Β Β Β Β Β Β Β <Date>[Date goes here, for example, 0000-00-00]</Date>
Β Β Β Β Β Β Β Β Β Β Β Β <Summary><![CDATA[
Β Β Β Β Β Β Β Β Β Β Β Β Β Β [Summary goes here]
Β Β Β Β Β Β Β Β Β Β Β ]]></Summary>
Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β </Fields>
Β Β Β Β Β Β Β Β <MediaObjectΒ Version="3"Β ID="-1"Β MediaType="Video"Β IsClip="">Β Β
Β Β Β Β Β Β Β Β Β Β Β Β <MediaElementΒ MediaType="Video"Β Index="0"Β Umid="">
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <OriginalFile><![CDATA[
Β Β Β Β Β Β Β Β Β Β Β Β Β [HTTP(s) URL link to file goes here]
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β ]]></OriginalFile>Β Β Β
Β Β Β Β Β Β Β Β Β Β Β Β </MediaElement>Β
Β Β Β Β Β Β Β Β Β Β Β Β <MediaAnnotation>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β <Description>[Annotation goes here]</Description>Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β Β Β Β Β Β Β <StartTimecode>[Start timecode goes here, for example, 10:00:00:00]</StartTimecode>Β Β Β Β Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β Β Β Β Β Β Β <EndTimecode>[Start timecode goes here, for example, 10:00:00:00]</EndTimecode>
Β Β Β Β Β Β Β Β Β Β Β Β </MediaAnnotation>Β Β
Β Β Β Β Β Β Β Β </MediaObject>
Β Β Β Β </ImagenRecord>
</Records>
Β
Postman example
Can't see the guide below? Open it in a new tab ↗ (may not work when viewing this page in SharePoint)
If SharePoint blocks the link, copy this address and paste it into a new browser tab:
https://scribehow.com/embed/Creating_a_Video_record_via_the_Imagen_API__He1gluetTtqYUnWpf_8YbA?as=scrollable&removeLogo=true
Β