HTML5和Mime,流式传输视频? [英] HTML5 and Mime, Streaming a video?

查看:193
本文介绍了HTML5和Mime,流式传输视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧所以我正在尝试使用html5从我的服务器播放视频

i有cPanel等等但是当我嵌入视频时我得到了

http://screencloud.net/v/2L6q [ ^ ]



说没有支持格式或mime类型的视频?

解决方案

最有可能的是,你使用了一些不支持的视频格式;或视频容器文件包含使用一个或多个不受支持的编解码器的媒体。请参阅:

http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats [ ^ ],

http://en.wikipedia.org/wiki/HTML5_video#Patented_formats [ ^ ],

http://en.wikipedia.org/wiki/HTML5_video#Free_formats [ ^ ],

http://en.wikipedia.org/wiki/Use_of_Ogg_formats_in_HTML5 [ ^ ]。



实际上,您应该只使用兼容的编解码器提供Ogg Theora或WebM格式。请参阅:

http://en.wikipedia.org/wiki/Theora [< a href =http://en.wikipedia.org/wiki/Theoratarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/WebM [ ^ ]。



如果您的可用格式不同,您怎么做?您可以使用不同的软件项目 remaster 您已有的视频,但我强烈推荐使用FFmpeg或libavcodec实用程序。请参阅:

http://en.wikipedia.org/wiki/Ffmpeg [< a href =http://en.wikipedia.org/wiki/Ffmpegtarget =_ blanktitle =New Window> ^ ],

http://ffmpeg.org/ [ ^ ],

http://en.wikipedia.org/wiki/Libavcodec [ ^ ],

http://libav.org/ [ ^ ]。



在这两种情况下,您都可以获得免费的开源实用程序,几乎可以制作所有内容。



选择好的编码参数集以在文件大小和质量之间提供合理的权衡是一首单独的歌曲。您可能需要进行一段时间的实验并阅读一些实用建议以获得足够的经验。



祝你好运,

-SA

Okay so i am trying to play a video from my server using html5
i have cPanel and such but when i embed the video i get
http://screencloud.net/v/2L6q[^]

Says No video with supported format or mime type ?

解决方案

Most likely, you use some unsupported video format; or the video container file contains media using one or more of unsupported codecs. Please see:
http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats[^],
http://en.wikipedia.org/wiki/HTML5_video#Patented_formats[^],
http://en.wikipedia.org/wiki/HTML5_video#Free_formats[^],
http://en.wikipedia.org/wiki/Use_of_Ogg_formats_in_HTML5[^].

Practically, you should provide only Ogg Theora or WebM formats with the use of compatible codecs. Please see:
http://en.wikipedia.org/wiki/Theora[^],
http://en.wikipedia.org/wiki/WebM[^].

How can you do this if your available format is different? You can use different software project to remaster the video you already have, but I would strongly recommend FFmpeg or libavcodec utility. Please see:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].

In both cases, you can get free open-source utilities which can make nearly everything.

The selection of good sets of encoding parameters to provide a reasonable trade-off between size of the file and quality is a separate song. You may need to experiment for a while and read some practical recommendation to gain enough experience.

Good luck,
—SA


这篇关于HTML5和Mime,流式传输视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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