0

我需要帮助才能在所有平台上播放带有一个扩展名的视频,例如 FLV 在 WIN 下运行但不在 MAC 下运行,所以我必须上传 FLV 并使用 FFMPEG 编码器生成另一个带有 MP4 扩展名的视频文件.. 有什么解决方案在所有平台上使用一个扩展播放视频?问候。

4

1 回答 1

0

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
  • mp3 audio
  • baseline 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.

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.

于 2012-05-20T08:04:40.510 回答