所有浏览器支持的视频和音频格式 [英] video and audio formats supported by all browsers

查看:1808
本文介绍了所有浏览器支持的视频和音频格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表单,用户可以在其中上传有关其公司的视频或音频,并将其显示给访问者. 现在,我认为并非所有浏览器都支持用户上传的所有视频和音频格式.

I am having form where the user uploads a video or audio about his company, and it will be displayed to the visitors. Now, I think all the video and audio formats uploaded by users will not be supported by all the browsers..

我指的是 https://developer.mozilla.org/en -US/docs/Web/HTML/Supported_media_formats 已经..

所以我想知道所有浏览器都支持哪些常见的音频和视频.

So I want to know what are common audio and video supported by all browsers..

请帮助我...

推荐答案

根据 MDN链接我们可以看到以下格式是常见的:

According to the tables from the MDN link we can see that these formats are common:

总而言之,使用H.264通过MP4容器(使用MP3/AAC进行音频)使用H.264,在视频方面非常安全.仅仅音频MP3似乎在所有浏览器中都受支持.

In conclusion you are pretty safe on the video side using H.264 via the MP4 container using MP3/AAC for audio. For just audio MP3 seem to be supported across all browsers.

对于移动端的音频,您面临更多挑战,因为在制作此表时,并非所有浏览器都支持所有格式.您可能必须根据平台和功能添加特殊待遇.

For audio on mobile side you have a little more challenges since not all formats seem to supported by all browsers by the time this table was made. You may have to add special treatment depending on platform and capabilities.

总有 FFMPEG 可以在服务器端转换为几乎所有允许的视频和音频格式您可以上传许多不同的格式-但是,它涉及一台服务器,为此您必须能够对其进行自定义.

There is anyways the FFMPEG which on server side can convert to and from almost any video and audio format which would allow you to upload many different formats - but, it involves a server which you must be able to customize for this purpose.

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

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