将视频添加到网站 [英] adding video to website

查看:91
本文介绍了将视频添加到网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将编辑过的视频从imovie导出到网站上,由于某些原因,没有人会播放 - 他们会一直冻结或根本不开始。

视频本身是20,681 KB,可能是我打算使用的最小的视频文件。代码非常简单,如果有更好的选择,请告诉我!



< p align =center>

< video controls =height =360width =640>< source src =video_name.mp4type =video / mp4/>< / video>

< / p>

I exported edited videos from imovie to put on a website, and for some reason none will play- they continuously freeze or don't start at all.
The video itself is 20,681 KB, and is probably the smallest video file I plan to use. The code is pretty simple, if there is an alternative that works better please let me know!

<p align="center">
<video controls="" height="360" width="640"><source src="video_name.mp4" type="video/mp4" /></video>
</p>

推荐答案

请看我对这个问题的评论,这是你想要考虑的。另请查看本文中与HTML视频元素的视频兼容性问题: http://en.wikipedia.org/wiki/ HTML5_video#Supported_video_formats



另请注意,* .mp4等文件名模式几乎没有说明。在这个名称下,可以有许多不同的容器和不同的视频,音频和其他流。并非一切都支持一切。



参见:

http://en.wikipedia.org/wiki/Digital_container_format

http: //en.wikipedia.org/wiki/Open_source_codecs_and_containers

http:// en.wikipedia.org/wiki/MPEG-4



-SA
Please see my comment to the question, this is what you want to consider. Also please review the issues of video compatibility with HTML video element in this article: http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats.

Also note that the file name pattern like *.mp4 tells next to nothing. Under this name, there can be many different container and different video, audio and other streams. Not everything supports everything.

See also:
http://en.wikipedia.org/wiki/Digital_container_format,
http://en.wikipedia.org/wiki/Open_source_codecs_and_containers,
http://en.wikipedia.org/wiki/MPEG-4.

—SA


这篇关于将视频添加到网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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