[as3] Determining if a flash video has sound
- Started
- Last post
- 9 Responses
- Autokern
Is there a way to determine wheter a flash video (flv on my case) has an audio channel?
I did a bit of research and the best way seems to read the header bytes of the video files, (as suggested here http://stackoverflow.com/questio…) which is a bit to far for my purpose.
Are there other quicker methods?
- co20
Open it in Adobe Media Player or VLC and make sure your speakers are on.
- airey0
check if it makes noise*.
*noise = audio
- Autokern0
You always can count on the people of this forum for good and clever advice.
- ckentish0
just listen
- Autokern0
Maybe i forgot to add that I need to perform this check dynamically since the video can or cannot have audio (single video player with several videos) and i'd need to toggle the audio controls accordingly.
- rson0
I think you can get that info in the trace(MetaData)
- rson0
- kewHexton0
right - and from that page - If your video does not have audio, the audio-related metadata information (such as audiodatarate) returns undefined because no audio information is added to the metadata during encoding.
- Amarux0
Try GSpot (free)
http://www.headbands.com/gspot/It's a very cool app (if not the best) for analizing video files. It identifies the video codec and audio compression used (among other interesting features) and yes, it supports .flv
Salut