Flash / FLV - How do I extract MetaData from an FLV? [closed]

隐身守侯 提交于 2019-12-25 19:42:11

问题


What software is available for extracting metadata from an FLV? I'm testing an flv streaming module for apache (mod_flvx) and need to extract keyframe info from an flv for debugging purposes.

I was only able to find FLV MetaData Viewer, but its dated, from 2006, and doesn't install properly on Win7. http://www.buraks.com/flvmdv/

Edit: I'm open to any method of extraction, either app or library.


回答1:


Don't know about tools, but maybe you can use ffmpeg as reference.

You must parse flv to find metadata chunk. It's not hard.

Then look at flv_read_metabody function from libavformat\flvdec.c. Metadata in flv is simply an AMF object.

But if keyframe info is only you need, you can don't touch metadata at all. You can parse flv: each video chunk marked if it's a kayframe.


Update:

You can use FLVTool2 to extract MetaData.



来源:https://stackoverflow.com/questions/3761358/flash-flv-how-do-i-extract-metadata-from-an-flv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!