Skip to main content
December 17, 2011
Answered

Custom metada and record live stream

  • December 17, 2011
  • 1 reply
  • 2206 views

I tried to inject my own metadata into a live stream (webcam) recorded on FMS 4.5.1

with no success. I was able to change only the standard metadata but not all my custom ones were recorded

despite of all example on adobe livedocs, no luck.(as2 and as3)

this example

http://help.adobe.com/en_US/flashmediaserver/devguide/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ff6Dev.html

doesn't work at all for custom metadat and EVEN recroded special metadata like createdby and creationdata

example:

metaData.createdby = String(streamTitle + " of "+fullName);
metaData.creationdate = String(now.toString());
metaData.tags = {createdby:metaData.createdby, creationdate:metaData.creationdate};
metaData.width = Number(devicesQuality.width);
metaData.height = Number(devicesQuality.height);
nodeSendStream.send("@setDataFrame", "onMetaData", metaData);

once the stream is recorded I can see only metData.width and height. createdby, creationdate and tags don't exist.

notice: I encode and stream from FP11.1 in H2564 with speex or pcmu

Thanks

This topic has been closed for replies.
Correct answer

Ok , so metadata needs to be before any segment get flushed to the file.. Because once data has been flushed, you can't go in the start of file and add some more data..

So if metadata hasn't reached before the flush of first segment, FMS do record a default metadata with few properties like width, hegiht and few others.. And you can modify the value of the properties whose sizes are fixed in nature, for example integer kind of property (U32 in takes 32 bytes).. but not properties whose values have variable length like strings, double etc..

This is technical limilatation on FMS side.. But as far as I know, people have been successful in work it around using the techniques mentioned in the technotes..


ok understood. so the trick is to send (flush instantly ?) the metadata to the record streaming before any movie stream ?

if yes maybe the best would be to attach audio and camera just after metada flushed to be sure that no segment is sent before ?

thanks

1 reply

Adobe Employee
December 21, 2011

I hope this technote may be useful to you...

http://kb2.adobe.com/cps/859/cpsid_85995.html

January 2, 2012

Hi Nitin,

I knew this technote which I tried weeks ago without success with AS2 and AS3.

it seems that only the standard metadata can be accepted and changed, absolutely not custom

metada are passed

Adobe Employee
January 3, 2012

Did you try recording from server side with some delay.. You may try increasing the delay.. Simultaenously, you may try increasing the maxflushtime and maxflushSize. That should be helpful.

There are certain limilatations which mandates that custom metadata should arrive before flush of first segment data.. otherwise it will be ignored.

If you can share some of your sample code with me, hope I can help.. Also share the Application.xml settings regarding the maxFlushSize and maxFLushTime..