Friday, June 16, 2006

FLV's

Found out an interesting thing while trying to find the duration of an FLV today. (at the eleventh hour, of course, somebody wanted a progress bar)

Fuel's blog

Good ol Flash Video Encoder slaps down some nifty metadata.
__ns.onMetaData = function(obj) {
trace("FLV duration: " + obj.duration + " sec.");
trace("FLV videodatarate: " + obj.videodatarate + " Kbit/s");
trace("FLV audiodatarate: " + obj.audiodatarate + " Kbit/s");
trace("FLV creationdate: " + obj.creationdate);
}


personally, creationdate came back undefined, but duration worked just fine.

Labels: , ,

0 Comments:

Post a Comment

<< Home