android Supported Media Formats

This document describes the media codec, container, and network protocol support provided by the Android platform.

The following network protocols are supported for audio and video playback:

  • RTSP (RTP, SDP)
  • HTTP/HTTPS progressive streaming
  • HTTP/HTTPS live streaming draft protocol:
    • MPEG-2 TS media files only
    • Protocol version 3 (Android 4.0 and above)
    • Protocol version 2 (Android 3.x)
    • Not supported before Android 3.0

Note: HTTPS is not supported before Android 3.1.

> Android platform versions for Core media format and codec support
Audio: AAC LC;HE-AACv1 (AAC+);HE-AACv2 (enhanced AAC+);AAC ELD (enhanced low delay AAC);AMR-NB;AMR-WB;FLAC;MP3;MIDI;Vorbis;PCM/WAVE;Opus
Image: JPEG;GIF;PNG;BMP;WebP
Video: H.263;H.264 AVC;H.265 HEVC;MPEG-4 SP;VP8:VP9

Table 2. Examples of supported video encoding parameters for the H.264 Baseline Profile codec.

  SD (Low quality) SD (High quality) HD 720p (N/A on all devices)
Video resolution 176 x 144 px 480 x 360 px 1280 x 720 px
Video frame rate 12 fps 30 fps 30 fps
Video bitrate 56 Kbps 500 Kbps 2 Mbps
Audio codec AAC-LC AAC-LC AAC-LC
Audio channels 1 (mono) 2 (stereo) 2 (stereo)
Audio bitrate 24 Kbps 128 Kbps 192 Kbps

Table 3. Examples of supported video encoding parameters for the VP8 codec.

  SD (Low quality) SD (High quality) HD 720p (N/A on all devices) HD 1080p (N/A on all devices)
Video resolution 320 x 180 px 640 x 360 px 1280 x 720 px 1920 x 1080 px
Video frame rate 30 fps 30 fps 30 fps 30 fps
Video bitrate 800 Kbps 2 Mbps 4 Mbps 10 Mbps

你可能感兴趣的:(Android,编程)