@@ -37,11 +37,16 @@ page.title=Android Supported Media Formats
3737
3838<ul>
3939 <li>RTSP (RTP, SDP)</li>
40- <li>HTTP progressive streaming</li>
41- <li>HTTP live streaming <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming-05">draft protocol</a> (Android 3.0 and above)</li>
40+ <li>HTTP/HTTPS progressive streaming</li>
41+ <li>HTTP/HTTPS live streaming <a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming">draft protocol</a>: <ul>
42+ <li>MPEG-2 TS media files only</li>
43+ <li>Protocol version 3 (Android 4.0 and above)</li>
44+ <li>Protocol version 2 (Android 3.x)</li>
45+ <li>Not supported before Android 3.0</li>
46+ </ul></li>
4247</ul>
4348
44- <p class="note"><strong>Note:</strong> HTTPS is not supported at this time .</p>
49+ <p class="note"><strong>Note:</strong> HTTPS is not supported before Android 3.1 .</p>
4550
4651
4752<h2 id="core">Core Media Formats</h2>
@@ -71,7 +76,11 @@ page.title=Android Supported Media Formats
7176<td style="text-align: center;"><big>•</big></td>
7277<td rowspan="3">Mono/Stereo content in any combination of standard bit
7378rates up to 160 kbps and sampling rates from 8 to 48kHz</td>
74- <td rowspan="3">3GPP (.3gp), and MPEG-4 (.mp4, .m4a). ADTS raw AAC (.aac, decode only, ADIF not supported, Android 3.1+). </td>
79+ <td rowspan="3">
80+ • 3GPP (.3gp)<br>
81+ • MPEG-4 (.mp4, .m4a)<br>
82+ • ADTS raw AAC (.aac, decode in Android 3.1+, encode in Android 4.0+, ADIF not supported)<br>
83+ • MPEG-TS (.ts, not seekable, Android 3.0+)</td>
7584</tr>
7685
7786<tr>
@@ -91,28 +100,30 @@ rates up to 160 kbps and sampling rates from 8 to 48kHz</td>
91100<td style="text-align: center;"><big>•</big></td>
92101<td style="text-align: center;"><big>•</big></td>
93102<td>4.75 to 12.2 kbps sampled @ 8kHz</td>
94- <td>3GPP (.3gp)
95- </td>
103+ <td>
104+ 3GPP (.3gp) </td>
96105</tr>
97106
98107<tr>
99108<td>AMR-WB</td>
100109<td style="text-align: center;"><big>•</big></td>
101110<td style="text-align: center;"><big>•</big></td>
102111<td>9 rates from 6.60 kbit/s to 23.85 kbit/s sampled @ 16kHz</td>
103- <td>3GPP (.3gp)</td>
112+ <td>
113+ 3GPP (.3gp)</td>
104114</tr>
105115
106116<tr>
107117<td>FLAC</td>
108118<td> </td>
109- <td style="text-align: center;"><big>•</big><br><small>(Android 3.1+)</small></td>
119+ <td style="text-align: center;" nowrap ><big>•</big><br><small>(Android 3.1+)</small></td>
110120<td>Mono/Stereo (no multichannel). Sample rates up to 48 kHz (but up to 44.1
111121kHz is recommended on devices with 44.1 kHz output, as the 48 to 44.1 kHz
112122downsampler does not include a low-pass filter). 16-bit recommended;
113123no dither applied for 24-bit.
114124</td>
115- <td>FLAC (.flac) only</td>
125+ <td>
126+ FLAC (.flac) only</td>
116127</tr>
117128
118129<tr>
@@ -121,64 +132,85 @@ no dither applied for 24-bit.
121132<td style="text-align: center;"><big>•</big></td>
122133<td>Mono/Stereo 8-320Kbps constant (CBR) or variable bit-rate (VBR)
123134</td>
124- <td>MP3 (.mp3)</td>
135+ <td>
136+ MP3 (.mp3)</td>
125137</tr>
126138
127139<tr>
128140<td>MIDI</td>
129141<td> </td>
130142<td style="text-align: center;"><big>•</big></td>
131143<td>MIDI Type 0 and 1. DLS Version 1 and 2. XMF and Mobile XMF. Support for ringtone formats RTTTL/RTX, OTA, and iMelody </td>
132- <td>Type 0 and 1 (.mid, .xmf, .mxmf). Also RTTTL/RTX (.rtttl, .rtx), OTA (.ota), and iMelody (.imy)</td>
144+ <td>
145+ • Type 0 and 1 (.mid, .xmf, .mxmf)<br>
146+ • RTTTL/RTX (.rtttl, .rtx)<br>
147+ • OTA (.ota)<br>
148+ • iMelody (.imy)</td>
133149</tr>
134150
135151<tr>
136- <td>Ogg Vorbis</td>
152+ <td>Vorbis</td>
137153<td> </td>
138154<td style="text-align: center;"><big>•</big></td>
139155<td> </td>
140- <td>Ogg (.ogg)</td>
156+ <td>
157+ • Ogg (.ogg)<br>
158+ • Matroska (.mkv, Android 4.0+)</td>
141159</tr>
142160
143161<tr>
144162<td>PCM/WAVE</td>
145163<td> </td>
146164<td style="text-align: center;"><big>•</big></td>
147165<td>8- and 16-bit linear PCM (rates up to limit of hardware)</td>
148- <td>WAVE (.wav)</td>
166+ <td>
167+ WAVE (.wav)</td>
149168</tr>
150169
151170<tr>
152- <td rowspan="4 ">Image</td>
171+ <td rowspan="5 ">Image</td>
153172<td>JPEG</td>
154173<td style="text-align: center;"><big>•</big></td>
155174<td style="text-align: center;"><big>•</big></td>
156175<td>Base+progressive</td>
157- <td>JPEG (.jpg)</td>
176+ <td>
177+ JPEG (.jpg)</td>
158178</tr>
159179
160180<tr>
161181<td>GIF</td>
162182<td> </td>
163183<td style="text-align: center;"><big>•</big></td>
164184<td> </td>
165- <td>GIF (.gif)</td>
185+ <td>
186+ GIF (.gif)</td>
166187</tr>
167188
168189<tr>
169190<td>PNG</td>
170191<td style="text-align: center;"><big>•</big></td>
171192<td style="text-align: center;"><big>•</big></td>
172193<td> </td>
173- <td>PNG (.png)</td>
194+ <td>
195+ PNG (.png)</td>
174196</tr>
175197
176198<tr>
177199<td>BMP</td>
178200<td> </td>
179201<td style="text-align: center;"><big>•</big></td>
180202<td> </td>
181- <td>BMP (.bmp)</td>
203+ <td>
204+ BMP (.bmp)</td>
205+ </tr>
206+
207+ <tr>
208+ <td>WEBP</td>
209+ <td style="text-align: center;" nowrap><big>•</big><br><small>(Android 4.0+)</small></td>
210+ <td style="text-align: center;" nowrap><big>•</big><br><small>(Android 4.0+)</small></td>
211+ <td> </td>
212+ <td>
213+ WebP (.webp)</td>
182214</tr>
183215
184216
@@ -188,93 +220,110 @@ no dither applied for 24-bit.
188220<td style="text-align: center;"><big>•</big></td>
189221<td style="text-align: center;"><big>•</big></td>
190222<td> </td>
191- <td>3GPP (.3gp) and MPEG-4 (.mp4)</td>
223+ <td>
224+ • 3GPP (.3gp)<br>
225+ • MPEG-4 (.mp4)</td>
192226</tr>
193227
194228<tr>
195229<td>H.264 AVC</td>
196230<td style="text-align: center;" nowrap><big>•</big><br><small>(Android 3.0+)</small></td>
197- <td style="text-align: center;"><big>•</big></td>
231+ <td style="text-align: center;" nowrap ><big>•</big></td>
198232<td>Baseline Profile (BP)</td>
199- <td>3GPP (.3gp) and MPEG-4 (.mp4). MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)</td>
233+ <td>
234+ • 3GPP (.3gp)<br>
235+ • MPEG-4 (.mp4)<br>
236+ • MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)</td>
200237</tr>
201238
202239<tr>
203240<td>MPEG-4 SP</td>
204241<td> </td>
205242<td style="text-align: center;"><big>•</big></td>
206243<td> </td>
207- <td>3GPP (.3gp)</td>
244+ <td>
245+ 3GPP (.3gp)</td>
208246</tr>
209247
210248<tr>
211249<td>VP8</td>
212250<td> </td>
213- <td style="text-align: center;"><big>•</big><br><small>(Android 2.3.3+)</small></td>
214- <td> </td>
215- <td><a href="http://www.webmproject.org/">WebM</a> (.webm)</td>
251+ <td style="text-align: center;" nowrap><big>•</big><br><small>(Android 2.3.3+)</small></td>
252+ <td>Streamable only in Android 4.0 and above</td>
253+ <td>
254+ • <a href="http://www.webmproject.org/">WebM</a> (.webm)<br>
255+ • Matroska (.mkv, Android 4.0+)</td>
216256</tr>
217257
218258</tbody></table>
219259
220260
221261<h2 id="recommendations">Video Encoding Recommendations</h2>
222262
223- <p>Table 2, below, lists examples of video encoding profiles and parameters that the Android media framework supports for playback. In addition to these encoding parameter recommendations, a device's available video recording profiles can be used as a proxy for media playback capabilities. These profiles can be inspected using the {@link android.media.CamcorderProfile CamcorderProfile} class, which is available since API level 8.</p>
263+ <p>Table 2, below, lists examples of video encoding profiles and parameters that the Android media framework supports for playback. In addition to these encoding parameter recommendations, a device's available <em> video recording</em> profiles can be used as a proxy for media playback capabilities. These profiles can be inspected using the {@link android.media.CamcorderProfile CamcorderProfile} class, which is available since API level 8.</p>
224264
225265<p class="table-caption" id="encoding-recommendations-table"><strong>Table 2.</strong> Examples of supported video encoding parameters.</p>
226266
227267<table>
228268 <thead>
229269 <tr>
230270 <th> </th>
231- <th style="background-color:#f3f3f3;font-weight:normal">Lower quality</th>
232- <th style="background-color:#f3f3f3;font-weight:normal">Higher quality</th>
271+ <th style="background-color:#f3f3f3;font-weight:normal"><acronym title="Standard definition">SD</a> (Low quality)</th>
272+ <th style="background-color:#f3f3f3;font-weight:normal"><acronym title="Standard definition">SD</a> (High quality)</th>
273+ <th style="background-color:#f3f3f3;font-weight:normal"><acronym title="High definition">HD</a> (Not available on all devices)</th>
233274 </tr>
234275 </thead>
235276 <tbody>
236277 <tr>
237278 <th>Video codec</th>
238- <td>H.264 Baseline Profile</th>
239- <td>H.264 Baseline Profile</th>
279+ <td>H.264 Baseline Profile</td>
280+ <td>H.264 Baseline Profile</td>
281+ <td>H.264 Baseline Profile</td>
240282 </tr>
241283 <tr>
242284 <th>Video resolution</th>
243- <td>176 x 144 px</th>
244- <td>480 x 360 px</th>
285+ <td>176 x 144 px</td>
286+ <td>480 x 360 px</td>
287+ <td>1280 x 720 px</td>
245288 </tr>
246289 <tr>
247290 <th>Video frame rate</th>
248- <td>12 fps</th>
249- <td>30 fps</th>
291+ <td>12 fps</td>
292+ <td>30 fps</td>
293+ <td>30 fps</td>
250294 </tr>
251295 <tr>
252296 <th>Video bitrate</th>
253- <td>56 Kbps</th>
254- <td>500 Kbps</th>
297+ <td>56 Kbps</td>
298+ <td>500 Kbps</td>
299+ <td>2 Mbps</td>
255300 </tr>
256301 <tr>
257302 <th>Audio codec</th>
258- <td>AAC-LC</th>
259- <td>AAC-LC</th>
303+ <td>AAC-LC</td>
304+ <td>AAC-LC</td>
305+ <td>AAC-LC</td>
260306 </tr>
261307 <tr>
262308 <th>Audio channels</th>
263- <td>1 (mono)</th>
264- <td>2 (stereo)</th>
309+ <td>1 (mono)</td>
310+ <td>2 (stereo)</td>
311+ <td>2 (stereo)</td>
265312 </tr>
266313 <tr>
267314 <th>Audio bitrate</th>
268- <td>24 Kbps</th>
269- <td>128 Kbps</th>
315+ <td>24 Kbps</td>
316+ <td>128 Kbps</td>
317+ <td>192 Kbps</td>
270318 </tr>
271319 </tbody>
272320</table>
273321
274322<p style="margin-top: 2em">For video content that is streamed over HTTP or RTSP, there are additional requirements:</p>
275323
276324<ul>
277- <li>For 3GPP and MPEG-4 containers, the <code>moov</code> atom must precede any <code>mdat</code> atoms.</li>
325+ <li>For 3GPP and MPEG-4 containers, the <code>moov</code> atom must precede any <code>mdat</code> atoms, but must succeed the
326+ <code>ftyp</code> atom.</li>
278327 <li>For 3GPP, MPEG-4, and WebM containers, audio and video samples corresponding to the same time offset may be no more than 500 KB apart.
279328 To minimize this audio/video drift, consider interleaving audio and video in smaller chunk sizes.</li>
280329</ul>
0 commit comments