简体   繁体   English

在不同的浏览器中播放视频/音频文件的编码格式是什么

[英]what is the format to encode to play video/audio file to play in different browsers

I am recording video and audio from android then i have to upload those files to php server. 我正在从Android录制视频和音频,然后必须将这些文件上传到php服务器。

Now my question is in which format i have to upload the recorded file to support all the the browsers to play the uploaded audio or video file. 现在我的问题是我必须以哪种格式上传记录的文件以支持所有浏览器播放上传的音频或视频文件。

The answer really depends on how you're planning to play the files in the browsers. 答案确实取决于您打算如何在浏览器中播放文件。 If you intend to play them in a flash player, you can convert them to MP4 (AAC+H.264) or FLV. 如果您打算在Flash Player中播放它们,则可以将它们转换为MP4(AAC + H.264)或FLV。 If you want to play them using HTML5, then you need to have two different formats: MP4 (AAC+H.264) for some browsers and OGV (Ogg Vorbis) for others. 如果要使用HTML5播放它们,则需要具有两种不同的格式:某些浏览器为MP4(AAC + H.264),另一些浏览器为OGV(Ogg Vorbis)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM