android 支持的codec一览

虽然各个机型都对多媒体的支持做了定制,但是了解android平台默认支持的格式,可以让自己的多媒体应用做的更通用。本文主要对目前主流的android平台的支持情况做个介绍。

android默认支持的多媒体格式:

一.对网络多媒体的协议支持

主要由如下三种:

 

  • RTSP (RTP, SDP)  实时的流媒体协议,主流的web应用应该都用的这个吧。
  • HTTP 非完全的,支持部分流媒体播放
  • HTTP live streaming draft protocol (Android 3.0 以上)

二.主流平台中支持的多媒体格式

TypeFormat / CodecEncoderDecoderDetailsSupported File Type(s) / Container Formats
AudioAAC LC/LTPMono/Stereo content in any combination of standard bit rates up to 160 kbps and sampling rates from 8 to 48kHz3GPP (.3gp), and MPEG-4 (.mp4, .m4a). ADTS raw AAC (.aac, decode only, ADIF not supported, Android 3.1+).
HE-AACv1 (AAC+)
HE-AACv2 (enhanced AAC+)
AMR-NB4.75 to 12.2 kbps sampled @ 8kHz3GPP (.3gp)
AMR-WB9 rates from 6.60 kbit/s to 23.85 kbit/s sampled @ 16kHz3GPP (.3gp)
FLAC
(Android 3.1+)
Mono/Stereo (no multichannel). Sample rates up to 48 kHz (but up to 44.1 kHz is recommended on devices with 44.1 kHz output, as the 48 to 44.1 kHz downsampler does not include a low-pass filter). 16-bit recommended; no dither applied for 24-bit.FLAC (.flac) only
MP3Mono/Stereo 8-320Kbps constant (CBR) or variable bit-rate (VBR)MP3 (.mp3)
MIDIMIDI Type 0 and 1. DLS Version 1 and 2. XMF and Mobile XMF. Support for ringtone formats RTTTL/RTX, OTA, and iMelodyType 0 and 1 (.mid, .xmf, .mxmf). Also RTTTL/RTX (.rtttl, .rtx), OTA (.ota), and iMelody (.imy)
Ogg VorbisOgg (.ogg)
PCM/WAVE8- and 16-bit linear PCM (rates up to limit of hardware)WAVE (.wav)
ImageJPEGBase+progressiveJPEG (.jpg)
GIFGIF (.gif)
PNGPNG (.png)
BMPBMP (.bmp)
VideoH.2633GPP (.3gp) and MPEG-4 (.mp4)
H.264 AVC
(Android 3.0+)
Baseline Profile (BP)3GPP (.3gp) and MPEG-4 (.mp4). MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)
MPEG-4 SP3GPP (.3gp)
VP8
(Android 2.3.3+)
WebM (.webm)

 

出处:点击我

 

对于目前WEB中的video的格式,有统计H.264已经在Web应用中占据了绝对的优势,可以看techcrunch的这篇文章

对于手机版的Web应用可以考虑采用H.264的codec

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值