Skip to main content
Dec 17, 2011 3:54 PM UTC
Answered

Custom metada and record live stream

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 is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Jan 9, 2012 12:04 AM UTC

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

8 replies

Adobe Employee
Dec 21, 2011 1:17 PM UTC

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

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

Translate
Jan 2, 2012 10:52 PM UTC

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

Translate
Adobe Employee
Jan 3, 2012 5:13 AM UTC

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..

Translate