This FLV Info tool enables you to view embedded MetaData without needing to play the video. Just like the SWFInfo tool I blogged about last year, using this tool you select your FLV file using the FileReference class and then you can view all you need to know about your Flash video : duration, width, height, videodatarate, framerate, videocodecid and stereo values.
It works by converting the loaded FLV data into a ByteArray and then searching for the string values associated with each metadata value. Then it reads either a double-precision (64-bit) floating-point number from the ByteArray, or in the case of ‘stereo’, a Boolean value. Also it will tell you how the videocodecid number translates into an understandable string value (i.e. VP6, H263 or AVC).
duration, width, height, videodatarate, framerate, videocodecid, stereo
Im trying to get some FLV statistics
My question is how do I (in C code) convert the metadata values
(represents as DOUBLE) to the actual value, like you show in your example above
Thanks in adavance
There is some information here that might be useful for you: http://www.cs.tut.fi/~jkorpela/round.html
thanks first for your useful tool.
Can you offer me the clue, how to get such information on flash?
Hi papierli, I’m not sure what you are after but suspect it might be this: http://blog.sitedaniel.com/2009/11/swf-info-width-height-swf-version-actionscript-version-framerate/
You developed this application in AS3. Is it possible to develop same in AS2 with having the same feature?
I think in terms of loading FLVs, and displaying the metadata it should be ok, however the FileReference class used to browse for the files is AS3 only, so you would need to come up with another solution for inputting the file location. Perhaps an input TextField?
How did you get the string values for video codec name from videocodecid?
This information is in the format specification. Download it here: Adobe Flash Video File Format Specification. The part you want is on page 72. Cheers