Flash / FLV - 如何从FLV中提取元数据? [英] Flash / FLV - How do I extract MetaData from an FLV?

查看:807
本文介绍了Flash / FLV - 如何从FLV中提取元数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么软件可以从FLV中提取元数据?我正在为apache(mod_flvx)测试flv流模块,并且需要从flv中提取关键帧信息以进行调试。



我只能找到FLV MetaData Viewer ,但是它的日期从2006年开始,并没有在Win7上正确安装。 http://www.buraks.com/flvmdv/

编辑:我可以开放任何提取方法,无论是应用程序还是库。 div>

不知道工具,也许可以使用 ffmpeg 作为参考。



您必须解析flv才能找到元数据块。这不难。然后从 libavformat \ flvdec.c 看看 flv_read_metabody 函数>。 flv中的元数据只是一个 AMF 对象。



但是,如果只有您需要关键帧信息,则根本不需要触摸元数据。您可以解析f​​lv:如果是kayframe,则标记每个视频块。




更新:



您可以使用 FLVTool2 来提取MetaData。


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.

解决方案

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.

这篇关于Flash / FLV - 如何从FLV中提取元数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆