我正在建立一个网站,其中包含一些时长 1 到 3 分钟的教学视频。用户将通过标准浏览器和移动浏览器访问这些内容。我特别关心 i 设备的用户,例如 iPhone/iPod Touch/iPad。
为了提供视频,我可能会使用 videojs.com 播放器 - 这似乎是一个非常强大的选择。不幸的是,我首先不知道用于编码文件的文件格式和标准。 H.264 基线配置文件似乎是一个不错的选择,但我确实需要一些指导来了解哪里可能是最佳选择。
请帮忙:)
I'm putting together a site that will include some instructional videos that will be 1 to 3 minutes long. The users will be accessing these through standard and mobile browsers. I'm particularly concerned with users of i-devices, such as iPhone/iPod Touch/iPad.
To deliver the videos, I'm will probably use videojs.com player - it seems like a pretty robust choice. Unfortunately, I don't know first thing about what file formats and standards to use for encoding files. H.264 Baseline profile seems to be a good choice, but I really need some direction on where to read up on what might be the best choice.
Please help :)
发布评论
评论(1)
我找到的有关此信息的最佳资源是深入了解 HTML 5。他们对每种浏览器适用的格式进行了非常简洁的细分。
然而,总而言之,h264 基线是正确的选择,特别是如果您的 HTML5 视频播放器具有 Flash 故障转移功能。
虽然 HTML5 视频目前是移动领域的标准,但粗略计算显示,只有 40% 的桌面浏览器用户可以查看它 noreferrer">Flash 的市场渗透率超过 99%。此外,您必须对视频进行两次编码和存储(h264 和 Theora)才能访问所有支持 HTML5 视频的浏览器。
但是,通过使用 h264 视频和 Flash 故障转移,您可以覆盖所有 iDevices 以及不支持 HTML5 视频或支持除 h264 以外格式的 HTML5 视频的所有浏览器。
警告一句:iDevices 仅支持最高 3.0 级的 h264 基线,因此,请确保遵守这些规范。
希望这有帮助。
The best resource I've found for this information is Dive Into HTML 5. They have a very concise breakdown of which formats will work with each of the browsers.
The long and short of it, however, is that h264 baseline is the way to go, especially if your HTML5 video player has Flash failover.
While HTML5 video is currently the standard in the mobile space, a back of the envelope calculation reveals that only about 40% of desktop browsers users can view it as compared to Flash's 99%+ market penetration. Moreover, you'd have to encode and store your videos twice (h264 and Theora) in order to reach all HTML5 video capable browsers.
However, by using h264 video and a Flash failover, you can cover all iDevices plus all browser that either don't support HTML5 video, or support HTML5 video for a format other than h264.
One word of warning: iDevices only support the h264 baseline up to level 3.0, so make sure to stay within these specs.
Hopefully that helps.