android开发影片类型选择,如何选择要在网路,Android和iOS上播放的影片格式?

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,不同的网络浏览器)上仍然需要检查兼容性问题,这在每个站点上有所介绍.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值