Fwd: Re: Flash container example for the Ontology for Media Resources 1.0

resent to the group

-------- Message original --------
Sujet: Re: Flash container example for the Ontology for Media Resources 1.0
Date : Mon, 20 Jun 2011 15:06:07 -0700
De : Alan Lillich <alillich@adobe.com>
Pour : Felix Sasaki <felix.sasaki@dfki.de>
Copie à : tmichel@w3.org <tmichel@w3.org>

Felix,

I know I'm confused as to exactly what you guys want. And I think you 
might be confused about the use of metadata in FLV and F4V. There is no 
such thing as an "XMP sidecar" for FLV and F4V. The XMP is embedded. 
I've extracted that XMP and sent it below. There are separate issues 
with non-XMP metadata in FLV and F4V.

In the case of FLV there is a smallish "onMetaData" tag that contains 
technical metadata. There is no RDF form for this. It is binary 
metadata, the details are in the FLV file format spec. The sample file 
that Frank  sent contains these values (partial output from an FLV dump 
tool we have):

     onMetaData @ 0x18 : ECMA array [10]
       duration @ 0x2A : float = 24.858000
       width @ 0x3D : float = 320.000000
       height @ 0x4D : float = 160.000000
       videodatarate @ 0x5E : float = 250.000000
       framerate @ 0x76 : float = 23.976013
       videocodecid @ 0x8A : float = 4.000000
       audiodatarate @ 0xA1 : float = 128.000000
       audiodelay @ 0xB9 : float = 0.027000
       audiocodecid @ 0xCE : float = 2.000000
       canSeekToEnd @ 0xE5 : bool = 1

The "@ 0x..." part is a file offset. None of this is implicitly mapped 
to XMP by the Adobe XMP Toolkit SDK, although the app creating the FLV 
can duplicate some of this in the xmpDM: namespace. And did in the 
example Frank sent.

In the case of F4V, any MPEG-4 as far as Adobe is concerned, there is 
some technical metadata scattered around the file as shown in 5.2.3.2.2 
F4V. And sometimes requiring computation. I don't have an easy way to 
dump this technical metadata from a file. Like the FLV example, the 
creation app choose to duplicate some of this info in the XMP's xmpDM 
namespace.

=================================
XMP from AdobeBand_800K_H264_1.flv:

    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
       <rdf:Description rdf:about=""
             xmlns:xmp="http://ns.adobe.com/xap/1.0/">
          <xmp:CreateDate>2011-06-07T21:50:44.00304+05:30</xmp:CreateDate>
          <xmp:ModifyDate>2011-06-07T21:50:47.0021+05:30</xmp:ModifyDate>
          <xmp:MetadataDate>2011-06-07T21:50:47+05:30</xmp:MetadataDate>
          <xmp:NativeDigests rdf:parseType="Resource">
             <xmp:FLV>BE43924B4416E4ABD0ABEFCA877AB863</xmp:FLV>
          </xmp:NativeDigests>
       </rdf:Description>
       <rdf:Description rdf:about=""
             xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
             xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
 
<xmpMM:OriginalDocumentID>xmp.did:CDB5C2062291E011985F90416E3DB9C2</xmpMM:OriginalDocumentID>
 
<xmpMM:InstanceID>xmp.iid:D1B5C2062291E011985F90416E3DB9C2</xmpMM:InstanceID>
 
<xmpMM:DocumentID>xmp.did:D1B5C2062291E011985F90416E3DB9C2</xmpMM:DocumentID>
          <xmpMM:History>
             <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                   <stEvt:action>saved</stEvt:action>
 
<stEvt:instanceID>xmp.iid:CEB5C2062291E011985F90416E3DB9C2</stEvt:instanceID>
                   <stEvt:when>2011-06-07T21:50:14+05:30</stEvt:when>
                   <stEvt:softwareAgent>Adobe Adobe Media Encoder 
5.0.0</stEvt:softwareAgent>
                   <stEvt:changed>/metadata</stEvt:changed>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                   <stEvt:action>saved</stEvt:action>
 
<stEvt:instanceID>xmp.iid:CFB5C2062291E011985F90416E3DB9C2</stEvt:instanceID>
                   <stEvt:when>2011-06-07T21:50:24+05:30</stEvt:when>
                   <stEvt:softwareAgent>Adobe Adobe Media Encoder 
5.0.0</stEvt:softwareAgent>
                   <stEvt:changed>/metadata</stEvt:changed>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                   <stEvt:action>saved</stEvt:action>
 
<stEvt:instanceID>xmp.iid:D1B5C2062291E011985F90416E3DB9C2</stEvt:instanceID>
                   <stEvt:when>2011-06-07T21:50:47+05:30</stEvt:when>
                   <stEvt:softwareAgent>Adobe Adobe Media Encoder 
5.0.0</stEvt:softwareAgent>
                </rdf:li>
             </rdf:Seq>
          </xmpMM:History>
       </rdf:Description>
       <rdf:Description rdf:about=""
             xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/"
             xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#">
          <xmpDM:videoFrameRate>23.976024</xmpDM:videoFrameRate>
          <xmpDM:videoFieldOrder>Progressive</xmpDM:videoFieldOrder>
          <xmpDM:videoPixelAspectRatio>1/1</xmpDM:videoPixelAspectRatio>
          <xmpDM:audioSampleRate>44100</xmpDM:audioSampleRate>
          <xmpDM:audioSampleType>Compressed</xmpDM:audioSampleType>
          <xmpDM:audioChannelType>Stereo</xmpDM:audioChannelType>
          <xmpDM:duration rdf:parseType="Resource">
             <xmpDM:value>2248320</xmpDM:value>
             <xmpDM:scale>1/90000</xmpDM:scale>
          </xmpDM:duration>
          <xmpDM:startTimecode rdf:parseType="Resource">
             <xmpDM:timeFormat>23976Timecode</xmpDM:timeFormat>
             <xmpDM:timeValue>00:00:00:00</xmpDM:timeValue>
          </xmpDM:startTimecode>
          <xmpDM:videoFrameSize rdf:parseType="Resource">
             <stDim:w>320</stDim:w>
             <stDim:h>160</stDim:h>
             <stDim:unit>pixel</stDim:unit>
          </xmpDM:videoFrameSize>
          <xmpDM:altTimecode rdf:parseType="Resource">
             <xmpDM:timeValue>00:00:00:00</xmpDM:timeValue>
             <xmpDM:timeFormat>23976Timecode</xmpDM:timeFormat>
          </xmpDM:altTimecode>
       </rdf:Description>
       <rdf:Description rdf:about=""
             xmlns:dc="http://purl.org/dc/elements/1.1/">
          <dc:format>FLV | F4V</dc:format>
       </rdf:Description>
    </rdf:RDF>

===============================
XMP from AdobeBand_800K_H264.f4v:

    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
       <rdf:Description rdf:about=""
             xmlns:xmp="http://ns.adobe.com/xap/1.0/">
          <xmp:CreateDate>2011-06-06T21:50:24+05:30</xmp:CreateDate>
          <xmp:ModifyDate>2011-06-06T21:50:24+05:30</xmp:ModifyDate>
          <xmp:MetadataDate>2011-06-07T21:50:26+05:30</xmp:MetadataDate>
       </rdf:Description>
       <rdf:Description rdf:about=""
             xmlns:xmpDM="http://ns.adobe.com/xmp/1.0/DynamicMedia/"
             xmlns:stDim="http://ns.adobe.com/xap/1.0/sType/Dimensions#">
          <xmpDM:videoFrameRate>23.976024</xmpDM:videoFrameRate>
          <xmpDM:videoFieldOrder>Progressive</xmpDM:videoFieldOrder>
          <xmpDM:videoPixelAspectRatio>1/1</xmpDM:videoPixelAspectRatio>
          <xmpDM:audioSampleRate>44100</xmpDM:audioSampleRate>
          <xmpDM:audioSampleType>Compressed</xmpDM:audioSampleType>
          <xmpDM:audioChannelType>Stereo</xmpDM:audioChannelType>
          <xmpDM:duration rdf:parseType="Resource">
             <xmpDM:value>2237234</xmpDM:value>
             <xmpDM:scale>1/90000</xmpDM:scale>
          </xmpDM:duration>
          <xmpDM:startTimecode rdf:parseType="Resource">
             <xmpDM:timeFormat>23976Timecode</xmpDM:timeFormat>
             <xmpDM:timeValue>00:00:00:00</xmpDM:timeValue>
          </xmpDM:startTimecode>
          <xmpDM:videoFrameSize rdf:parseType="Resource">
             <stDim:w>320</stDim:w>
             <stDim:h>160</stDim:h>
             <stDim:unit>pixel</stDim:unit>
          </xmpDM:videoFrameSize>
          <xmpDM:altTimecode rdf:parseType="Resource">
             <xmpDM:timeValue>00:00:00:00</xmpDM:timeValue>
             <xmpDM:timeFormat>23976Timecode</xmpDM:timeFormat>
          </xmpDM:altTimecode>
       </rdf:Description>
       <rdf:Description rdf:about=""
             xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
             xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
 
<xmpMM:OriginalDocumentID>xmp.did:CDB5C2062291E011985F90416E3DB9C2</xmpMM:OriginalDocumentID>
 
<xmpMM:InstanceID>xmp.iid:D0B5C2062291E011985F90416E3DB9C2</xmpMM:InstanceID>
 
<xmpMM:DocumentID>xmp.did:D0B5C2062291E011985F90416E3DB9C2</xmpMM:DocumentID>
          <xmpMM:History>
             <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                   <stEvt:action>saved</stEvt:action>
 
<stEvt:instanceID>xmp.iid:CEB5C2062291E011985F90416E3DB9C2</stEvt:instanceID>
                   <stEvt:when>2011-06-07T21:50:14+05:30</stEvt:when>
                   <stEvt:softwareAgent>Adobe Adobe Media Encoder 
5.0.0</stEvt:softwareAgent>
                   <stEvt:changed>/metadata</stEvt:changed>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                   <stEvt:action>saved</stEvt:action>
 
<stEvt:instanceID>xmp.iid:D0B5C2062291E011985F90416E3DB9C2</stEvt:instanceID>
                   <stEvt:when>2011-06-07T21:50:26+05:30</stEvt:when>
                   <stEvt:softwareAgent>Adobe Adobe Media Encoder 
5.0.0</stEvt:softwareAgent>
                </rdf:li>
             </rdf:Seq>
          </xmpMM:History>
       </rdf:Description>
       <rdf:Description rdf:about=""
             xmlns:dc="http://purl.org/dc/elements/1.1/">
          <dc:format>FLV | F4V</dc:format>
       </rdf:Description>
    </rdf:RDF>

hope this helps somewhat,
Alan

Received on Wednesday, 29 June 2011 11:58:47 UTC