本文共 1967 字,大约阅读时间需要 6 分钟。
从
Android Developer – Supported Media Formats,
Type | Format / | Supported File Type(s) /
| Codec | Container Formats
------+-----------+----------------------------------------------------------
Video | H.263 | 3GPP (.3gp)
| | MPEG-4 (.mp4)
+-----------+----------------------------------------------------------
| H.264 AVC | 3GPP (.3gp)
| | MPEG-4 (.mp4)
| | MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)
+-----------+----------------------------------------------------------
| H.265 HEVC| MPEG-4 (.mp4, Android 5.0+)
+-----------+------------------------------------------------------
| MPEG-4 SP | 3GPP (.3gp)
+-----------+----------------------------------------------------------
| VP8 | WebM (.webm)
| | Matroska (.mkv, Android 4.0+)
+-----------+----------------------------------------------------------
| VP9 | WebM (.webm)
| | Matroska (.mkv, Android 4.0+)
iOS supports many industry-standard video formats and compression standards, including the following:
H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats
H.264 video, up to 768 Kbps, 320 by 240 pixels, 30 frames per second, Baseline Profile up to Level 1.3 with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats
MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats
Numerous audio formats, including the ones listed in 07002
: VP8 and Vorbis in WebM
: VP9 and Opus in WebM
: Streaming VP9 and Opus/VP8 and Opus in WebM via Media Source Extensions (MSE)
: Theora and Vorbis in Ogg
: H.264 and MP3 in MP4
: H.264 and AAC in MP4
从所有数据来看,在所有平台(iOS,Android,Web浏览器)都支持的.mp4(确切地说,H.264视频,MPEG-4中的AAC音频)是其中的选择.但是,请注意,每个平台(不同版本的Android,不同的网络浏览器)上仍然需要检查兼容性问题,这在每个站点上有所介绍.
转载地址:http://wmdqv.baihongyu.com/