简体   繁体   English

如何一次扩展在线播放视频并与所有平台兼容?

[英]how to play video online with one extention and compatible with all platforms?

I need help to play video with one extension at all platforms, for example FLV is running under WIN but not under MAC, so I have to upload FLV and Generate an other Video file with MP4 extension using FFMPEG encoder .. is there any solution to play video with one extension at all platforms ? 我需要在所有平台上播放具有一个扩展名的视频的帮助,例如FLV在WIN下而不是在MAC下运行,因此我必须上传FLV并使用FFMPEG编码器生成具有MP4扩展名的另一个视频文件。在所有平台上播放带有一个扩展程序的视频? regards. 问候。

You can't. 你不能

There is no one-size-fits-all video codec for all platforms. 没有适用于所有平台的“一刀切”的视频编解码器。

That said, you can go for a lowest common denominator that will cover most platforms. 就是说,您可以选择适用于大多数平台的最低公分母。

  • h264 video h264视频
  • mp3 audio mp3音频
  • baseline 3.0 基线3.0

For the most part, if you really want to distribute video to all platforms you'll need to do multiple encodings of the source video. 在大多数情况下,如果您确实想将视频分发到所有平台,则需要对源视频进行多种编码。 FLV is particularly a bad choice, unless you are only interested in playing the video in Flash-based players. 除非您只对在基于Flash的播放器中播放视频感兴趣,否则FLV是一个特别糟糕的选择。

BTW: Your question would be easier to answer with more specifics if you defined the "platforms" you are targeting, the use case, codec parameters/details, etc. 顺便说一句:如果您定义了要定位的“平台”,用例,编解码器参数/详细信息等,那么您的问题将更容易回答,并且提供更多细节。

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

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