转换html5视频-使用什么软件 [英] Converting html5 video - what software to use

查看:100
本文介绍了转换html5视频-使用什么软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正计划在网站上使用全屏html5视频.我读过MPEG-4/H.264可能是目前最好的格式.

we're planning to use a fullscreen html5 video on a website. I've read that MPEG-4/H.264 might be the best format at the moment.

我的视频文件为1080p mp4…大小为41.2mb.由于视频应以相对"良好的质量播放并真正快速地播放,因此如何优化视频文件.

I have the video file available as 1080p mp4 … it's 41.2mb in size. Since the video should play in "relative" good quality and stream really fast, how can i optimize the video file.

有什么技巧对我有用吗?在台式机上播放全屏视频需要1080p还是720p足够? 台式机全屏视频的输出大小应该是什么?

Any tips, tricks for me? is 1080p needed for a fullscreen video on desktop or is 720p enough? What should the output size of a fullscreen video for desktop be?

关于, 哑光

推荐答案

720p就足够了,特别是如果您可以在顶部添加半透明的影片以隐藏任何伪影的话.您真的不希望它缓慢而生涩.

720p would be enough, especially if you can add a semi-transparent film over the top to hide any artifacts. You really don't want it to be slow and jerky.

明智地设置格式,您可以根据需要在<video>标记中使用任意数量(对于需要支持的任何浏览器).例如.

Format wise you can use as many as you like in the <video> tag (for whatever browsers you need to support). E.g.

<video poster="path/to/screenshot.jpg">
    <source src="path/to/video.webm" type="video/webm">
    <source src="path/to/video.ogg" type="video/ogg">
    <source src="path/to/video.mp4" type="video/mp4">
</video>

您甚至可以添加Flash后备广告.视频标签中除<source>属性之外的所有内容均会被支持html5视频的浏览器忽略.因此:

You can even add a flash fallback. Anything inside the video tag other than <source> attributes is ignored by browsers that support html5 video. Therefore:

<video poster="path/to/screenshot.jpg">
    <source src="path/to/video.webm" type="video/webm">
    <source src="path/to/video.ogg" type="video/ogg">
    <source src="path/to/video.mp4" type="video/mp4">
    <!-- Flash fallback -->
    <object data="flvplayer.swf" type="application/x-shockwave-flash">
        <param value="flvplayer.swf" name="movie"/>
    </object>
</video>

我使用HTML5视频相当不错,并构建了一个免费的(适用于20MB以下的文件)转换器,该转换器可以接收任何视频文件并输出webm,ogg和mp4文件以及您的<video>标签:

I work with HTML5 video a fair bit and built a free (for under 20MB files) converter that takes any video file and outputs webm, ogg and mp4 files along with your <video> tag: http://html5backgroundvideos.com/converter/

这篇关于转换html5视频-使用什么软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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