FLV Info : duration, width, height, videodatarate, framerate, videocodecid, stereo

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


  1. Tal Vazana says:


    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


  2. Daniel says:

    Hi Tal,

    There is some information here that might be useful for you: http://www.cs.tut.fi/~jkorpela/round.html


  3. PaPer says:


    thanks first for your useful tool.
    Can you offer me the clue, how to get such information on flash?
    thanks anyway.

  4. Daniel says:

    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/

  5. Uday says:

    You developed this application in AS3. Is it possible to develop same in AS2 with having the same feature?


  6. Daniel says:

    Hi Uday,
    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?

  7. Adam says:

    How did you get the string values for video codec name from videocodecid?

  8. Daniel says:

    Hi Adam,
    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

Leave a Reply