M4V Mimetype - 视频/ mp4或视频/ m4v? [英] M4V Mimetype - video/mp4 or video/m4v?
问题描述
我通过HTML5 视频
元素投放视频。我发现有关适用于 m4v
视频的MIME类型的冲突信息。大多数演示在源$ c $>中将
类型
属性设置为 video / mp4
c>标记中的标记。我读过的一些文章指出,对于Web服务器Mimetype而言, video / m4v
,而另一些则表示 video / mp4
。哪一个是正确的?
I am serving a video via the HTML5 video
element. I'm finding conflicting information about the appropriate MIME type for m4v
video. Most demos set the type
attribute to video/mp4
in the source
tag in the markup. Some articles I've read indicate video/m4v
for the web server Mimetype, while others indicate video/mp4
. Which is correct?
例如,看这篇文章,指出 video / m4v
mimetype: http://html5center.sourceforge.net/make-your-html5-video-play-on-mobile-设备
See for example, this article indicating video/m4v
mimetype: http://html5center.sourceforge.net/make-your-html5-video-play-on-mobile-devices
本文指示 video / mp4
:http://www.coolestguyplanettech.com/use-html-5-video-on-all-browsers/
推荐答案
标准媒体类型是 video / mp4
。
标准mp4容器格式通常用于AAC音频和H.264视频+ AAC音频。这些媒体类型不同, audio / mp4
和 video / mp4
,但是您经常需要不同的音频和视频应用程序并且在某些系统上,只能将默认应用程序与文件扩展名相关联。因此,在某些圈子中,对音频和视频(+音频)使用扩展名 .m4a
和 .m4v
),分别在一个mp4容器中。然而,这不会影响媒体类型,而媒体类型已经通过音频或视频前缀区分了这些类型。
The standard mp4 container format is commonly used for both AAC audio, and H.264 video + AAC audio. These have different media types, audio/mp4
and video/mp4
, however often you want different applications for audio and video and on some systems it is only possible to associate a default application with a file extension. Therefore it has become popular in some circles to use the extensions .m4a
and .m4v
for audio and video(+audio), respectively, in an mp4 container. However this does not affect the media type, which already distinguishes these using the audio or video prefix.
然而,转折点在于Apple开始使用自己的媒体类型,对于来自商店的视频,它们位于mp4容器中并使用 .m4v
扩展名 video / x-m4v
。这被设置为默认在iTunes中打开视频。有时候这是必要的,因为视频使用DRM,AC-3杜比数字音频或mp4容器不常用的其他功能,但iTunes支持用于具有 .m4v
扩展名的文件。如果您依赖此类功能,则可能需要使用此媒体类型而不是标准媒体类型。
A twist, however, is that Apple started using their own media type, video/x-m4v
, for videos from their store, which are in an mp4 container and use a .m4v
extension. This is set to open the video in iTunes by default. Sometimes that is necessary because the video uses DRM, AC-3 Dolby Digital audio, or other capabilities that are not commonly supported in an mp4 container, but which are supported by iTunes for files with a .m4v
extension. If you rely on such capabilities then you may want to use this media type instead of the standard one.
媒体类型不包含 x -
在RFC中标准化并由IANA跟踪。没有名称为 video / m4v
的媒体类型已标准化。非标准媒体类型的前缀为 x -
。
Media types with no x-
are standardized in an RFC and tracked by IANA. No media type with the name video/m4v
has been standardized. Non-standard media types have a x-
prefix.
这篇关于M4V Mimetype - 视频/ mp4或视频/ m4v?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!