用于HTML5的最佳视频格式 [英] Best video format to use for HTML5

查看:96
本文介绍了用于HTML5的最佳视频格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想确定我为所有用户(包括电脑和手机)提供最佳格式的视频。有人能为我提供一个在网站上运行良好的设置吗?

解决方案

我不是自称是专家,但我玩过这一堆  Mp4是最好的格式。 详情:


1. 视频 - 使用H.264 Baseline。 许多设备无法处理其他mp4编码选项。


2. 音频 - ACC-LC。 很多设备都存在音量太低的问题。 我喜欢保持大声但不要扭曲它。 我通常把它设置为2倍。 这取决于音量。


3.  。大小 保持宽度为800 或更少。 宽度和高度都应为16的倍数。 有些球员有其他问题。


4.  。帧率 所有玩家都能处理500kbps。 我认为800kbps是动作视频的最低限度。 您可能会得到一点像素化但不坏。 根据我的经验,1100kbps重复DVD质量。 有些玩家无法处理
1100kbps。


5. 电影资讯。 电影的信息需要位于流媒体文件的开头(称为FastStart)。  Expression Encoder可以执行此操作,但其他编码器可能不这样做。 


我使用名为archive.org的网站作为参考。 他们的移动内容通常具有512kbpsMp4的格式。 看看您感兴趣的设备如何在该电影上播放。





I'm wanting to make certain I put my video in the best format for all user, both pc and mobile. Can someone offer me a setting that works well on websites for this?

解决方案

I do not claim to be an expert but I have played with this a bunch.  Mp4 is the best format.  Details:

1.  Video - Use H.264 Baseline.  A lot of devices can't handle the other mp4 encoding options.

2.  Audio - ACC-LC.  A lot of devices have a problem with audio volume being too low.  I like to keep it loud but not distort it.  I generally set it at 2X.  This depends on source volume.

3.  Size.  Keep width at 800  or less.  Both width and height should be multiples of 16.  Some players have problems otherwise.

4.  Framerate.  All players handle 500kbps.  I consider 800kbps to be a minimum for an action video.  You may get a little pixelation but not bad.  1100kbps duplicates DVD quality in my experience.  Some players can't handle 1100kbps.

5.  Movie Info.  The info for the movie needs to be at the beginning of the file for streaming (called FastStart).  Expression Encoder does this but other encoders may not. 

I use a site called archive.org as a reference.  Their moving content usually has a format 512kbpsMp4.  See how the device you are interested in plays on that movie.


这篇关于用于HTML5的最佳视频格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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