HTML5读取mp4的视频元数据

HTML5读取mp4的视频元数据

本文介绍了HTML5读取mp4的视频元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用HTML5,我试图获取位于mp4标头中的属性(即旋转)(我使用视频标签进行播放),为此,我尝试获取组成标头的字节,并知道结构,找到这个原子.

Using HTML5 I am trying to get the attribute (ie rotation), located in the header of a mp4 (I play it using a video tag), to do this I am trying to get the bytes that make up the header, and knowing the structure, find this atom.

有人知道如何使用javascript吗?

Does anyone know how to do this in javascript?

推荐答案

我认为您无法使用HTML5及其视频标签从视频中提取此类详细的元数据.您可以提取的唯一信息(视频长度,视频轨道等)在此处列出:

I do not think you can extract such detailed metadata from a video, using HTML5 and its video-tag. The only things you can extract (video length, video tracks, etc.) are listed here:

http://www.w3schools.com/tags/ref_av_dom.asp

当然,某些浏览器中可能还有一些特殊的附加方法,但是没有通用"方法-您将需要比HTML5的现有方法更多的东西.

Of course, there might be special additional methods available in some browsers, but there is no "general" approach - you would need more than the existing methods of HTML5.

这篇关于HTML5读取mp4的视频元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 02:23