PDA

View Full Version : How to determine type of FLV


bluerattle
11-23-2007, 03:45 PM
I am working on a project where I am receiving FLV files from a client to integrate into a Flash application.

The FLV files should have transparency but they do not. I am guessing that the client encoded them (exported from After Effects) with the codec set to Sorenson Spark, rather than On2 VP6 -- which is what we need. So I want to verify this and see if that is the problem.

However, I haven't seen any tool in Flash that will report the codec of the existing FLV. Can someone tell me how this can be done, either in Flash or with a 3rd-party tool?

thanks,
BR

atomic
11-23-2007, 10:47 PM
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001576.html

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003559.html

In both of the above you'll find videocodecid... Which apparently is A number that is the codec version that was used to encode the video.

Couldn't find a list of codecs with the id numbers, but once you find that out, you'd be in business...

atomic
11-23-2007, 10:49 PM
Oh just found this...

http://www.devx.com/webdev/Article/31420/1954?pf=true

videocodecid Number Video codec ID number used in the FLV. (Sorenson H.263 =2, Screen Video =3, On2 VP6 = 4 and 5, Screen Video V2 = 6).

bluerattle
11-24-2007, 01:17 AM
Thanks atomic, so I can use a little Actionscript to extract the codec ID.

Based on your info, I googled the following URL, which explains the distinction between the two On2 VP6 ID's (4 vs 5):

http://www.buraks.com/captionate/helpfile/e05.html

videocodecid (Number): Video codec ID used in the FLV (Captionate uses the first video tag for this value). Possible values are 2: Sorenson H.263, 3: Screen Video, 4: On2 VP6, 5: On2 VP6 with Transparency.

That helps me even more, to be able to tell if they turned on the On2 VP6 transparency option, as well as knowing the codec.

BR

atomic
11-24-2007, 01:20 AM
Grrrrrrrrrrrreat! ;)