Skip to main content
Participating Frequently
December 23, 2012
Question

FMLE metadata in FMS streams?

  • December 23, 2012
  • 1 reply
  • 1250 views

Hey I am trying to read the metadata send from FMLE 3.2 on the server side of FMS 4.5, but I was unable after many try to find the custom metadata I set up in FMLE.

Here is the serverside function I use:

function getmd(stream){

//    var infoObject = Stream.getOnMetaData(stream.type+":"+stream.name+sname+".f4v");

    var infoObject = Stream.getOnMetaData(stream.type+":"+stream.name);    

    trace("Metadata:");

    for(i in infoObject){

        trace(i + " = " + infoObject);

    }

    for(i in infoObject["trackinfo"]){

        trace(i + " = " + infoObject["trackinfo"]);

    }

    for(i in infoObject["trackinfo"][0]){

        trace(i + " = " + infoObject["trackinfo"][0]);

    }   

    for(i in infoObject["trackinfo"][1]){

        trace(i + " = " + infoObject["trackinfo"][1]);

    }       

    for(i in infoObject["trackinfo"][0]["sampledescription"][0]){

        trace(i + " = " + infoObject["trackinfo"][0]["sampledescription"][0]);

    }   

    for(i in infoObject["trackinfo"][1]["sampledescription"][0]){

        trace(i + " = " + infoObject["trackinfo"][1]["sampledescription"][0]);

    }       

}

The output I get in Flash Media Admin Console, in Live log is:

Metadata:

duration = 25.44

moovPosition = 36

width = 768

height = 576

videocodecid = avc1

avcprofile = 77

avclevel = 31

videoframerate = 25.03930817610063

trackinfo = [object Object],[object Object]

0 = [object Object]

1 = [object Object]

length = 0

timescale = 1000

language = eng

sampledescription = [object Object]

length = 25440

timescale = 1000

language = eng

sampledescription = [object Object]

sampletype = amf0

sampletype = avc1

So as you can see there is no custom metadata visible from FMLE in this output. Ive tryed getting the metadata both from a live stream and also from a recorded version of the same stream, in both cases I get the same metadata's but no custom metadata from FMLE.

Note: When I speak about custom metadata from FMLE I speak about the information you can set up in Panel Options > Metadata interface.

So my question is: How can one read server side the custom metadata he sets in the FMLE interface?

Thank you.

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    January 2, 2013

    Seems it is an HDS stream. You are recording the f4f content. Right?

    1. Firstly this api works for the recorded stream only.

    2. Secondly in case fo f4f recorded stream, currently custom metadata is ignored. Please file a bug on product. We will see in future releases, if we can take care of custom metadata in this case.

    Thanks

    Adobe Employee
    January 2, 2013

    Can you please let me know the use case.. I may help you with a workaround.

    MareleADIAuthor
    Participating Frequently
    January 3, 2013

    Hey Nitin,

    The recorded stream its a normal mp4:name.f4v stream over rtmp, not a HTTP Dinamic Streaming.

    Initially I was under the impression its a problem from this http://helpx.adobe.com/adobe-media-server/kb/custom-metadata-added-live-stream.html but setInterval() didnt help. Then I found out that http://helpx.adobe.com/adobe-media-server/kb/flash-media-live-encoder-currently.html so sadly it seems its not supported feature to send custom metadata over f4v.

    In our case after the recording stop we update our database, so cutom metadata's would have helped us to send all necesary information directly from custom metadata's in FMLE, now we need to create a new interface to send the aditional information to the initial database entry created at the end of recording.