본문 바로가기

TechLog

안드로이드에서 지원하는 비디오, 오디오 포맷

이것도 일단, 다음 표를 보자:

Type Format / Codec Encoder Decoder Details Supported File Type(s) / Container Formats
Audio AAC LC/LTP Mono/Stereo content in any combination of standard bit rates up to 160 kbps and sampling rates from 8 to 48kHz 3GPP (.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-NB 4.75 to 12.2 kbps sampled @ 8kHz 3GPP (.3gp)
AMR-WB 9 rates from 6.60 kbit/s to 23.85 kbit/s sampled @ 16kHz 3GPP (.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
MP3   Mono/Stereo 8-320Kbps constant (CBR) or variable bit-rate (VBR) MP3 (.mp3)
MIDI   MIDI Type 0 and 1. DLS Version 1 and 2. XMF and Mobile XMF. Support for ringtone formats RTTTL/RTX, OTA, and iMelody Type 0 and 1 (.mid, .xmf, .mxmf). Also RTTTL/RTX (.rtttl, .rtx), OTA (.ota), and iMelody (.imy)
Ogg Vorbis     Ogg (.ogg)
PCM/WAVE   8- and 16-bit linear PCM (rates up to limit of hardware) WAVE (.wav)
Video H.263   3GPP (.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 SP     3GPP (.3gp)
VP8  
(Android 2.3.3+)
  WebM (.webm)

 

별로 겉으로 드러나지는 않지만, 안드로이드의 장점 중의 하나는 OS 자체에서 상당히 많은 미디어 포맷을 지원한다는 점이다. 물론 이렇게 수많은 미디어 포맷을 실제로 다 사용하느냐에 대해서는 이견이 있겠지만, 개발자 입장에서는 개발하는데 별다른 문제가 없다면 좋은 일이다.

하지만 실제 안드로이드에서 미디어 관련 앱을 개발해 본 입장에서 말하자면, 최근 중립적인 비디오 포맷으로 각광받고 있는 h.264(=MPEG4 AVC) 포맷의 Baseline Profile까지가 공식 지원 포맷이라는 것이 약간 아쉽다. 일반적으로 h.264의 프로파일은 Main, Extended Profile까지가 많이 사용되는데, 초기 안드로이드에서는 성능상의 문제로 Baseline Profile 지원이 기본 사양으로 되어 있는 것 같다. (안드로이드만 그런 것은 아니고, 아이폰의 경우에도 3GS까지는 Baseline Profile만을 지원했었다) 기기에 따라서 Main, Extended Profile까지 지원하는 경우도 있는데, 모두 그런 것은 아니므로 대상 기기에서 직접 테스트해보는 것이 좋을 것이다.

 

- 참고 :

Android Supported Media Formats
http://developer.android.com/guide/appendix/media-formats.html

'TechLog' 카테고리의 다른 글

iOS가 지원하는 비디오, 오디오 포맷  (0) 2011.09.30
WP7에서 지원하는 비디오, 오디오 포맷  (0) 2011.09.30
Windows Phone 7.1? 7.5?  (0) 2011.09.27
WP 가속도계 다루기  (0) 2011.09.21
WP의 위치 서비스  (0) 2011.09.17