[BB10] BlackBerry JavaからBlackBerry 10 Cascadesへのポーティング(その4)



BlackBerry Java to BlackBerry 10 Cascades Porting Series – Part 4: Multimedia (Inside BlackBerry Developer Blog)

BlackBerry Javaでは、JavaのMultiMedia JSR (135)を使います。

BLあckBerry 10のMultiMedia対応は以下のリンクで参照出来ます。

BlackBerry 10では、 以下のコーディックやプロトコルをサポートしています。

BlackBerry Z10
Feature Details
Screen size BlackBerry z10:1280 x 768
BlackBerry Dev Alpha C: 720 x 720
Pixel density 356 ppi
Supported media formats
Video formats 3GP, 3GP2, ASF, AVI, F4V, M4V, MKV, MOV, MP4, MPEG4, WMV
Audio formats AAC, AMR, AWB, FLAC, M4A, MKA, MP3, OGG, WAV, WMA
Image formats BMP, JPG, GIF, PNG, SGI, SVG, TSG, TIF, WBMP
Recommendations for optimal local playback
Container MP4
Video codec H.264 High Profile @ 720p (1280×720)
Audio codec AAC LC Stereo 5.1

Video codec support

All codecs support the following specifications:

  • Resolution: 1080p
  • Bit rate: Up to 20Mbps
Codec Details
H.263 Container format(s): 3GP, 3GP2, M4V, MOV, MP4, MPEG4
H.264 Baseline Profile, Constrained Baseline Profile, Main Profile, High Profile (up to Level 4.2)Container format(s): 3GP, 3GP2, M4V, MKV, MOV, MP4, MPEG4
MJPEG Container format(s): AVI, MOV
MPEG-2 Simple Profile (Main Level), Main Profile (High Level)Container format(s): 3GP, 3GP2, AVI, M4V, MKV, MOV, MP4, MPEG4
MPEG-4 SP, ASP (Levels 0, 1, 2, 3, 4A, 5, 6)Container format(s): 3GP, 3GP2, AVI, M4V, MKV, MOV, MP4, MPEG4
VP6 Software decodeContainer format(s): F4V
WMV 9 (VC-1) Simple, Main, Advance (up to Level 3)Container format(s): ASF, WMV

Audio codec support

Codec Details
  • AAC LC (96 Kbps or higher)
  • AAC+, eAAC+ (128 Kbps with stereo 5.1)
  • stereo

Container format(s): AAC, M4A, MKA

AC-3 stereo 5.1Container format(s): MKA
AMR AMR-NBAMR-WB (G722.2)Container format(s): AMR, AWB
FLAC FLACContainer format(s): FLAC, MKA, OGG
GSM GSM6.10Container format(s): WAV
MPEG MPEG 1 (Layer 3), MPEG 2 (Layer 3), MPEG 3 (Layer 3); Stereo, 128 KbpsContainer format(s): MKA, MP3
Ogg Vorbis VorbisContainer format(s): OGG
PCM PCM, LPCM, A-Law, U-Law, ADPCMContainer format(s): MKA, WAV
QCELP QCELP 13Container format(s): MP4
Sorenson Spark Software DecodeContainer format(s): F4V
  • WMA 9
  • WMA 10 (8 Kpbs or higher)
  • WMA 10 Professional (128 Kbps with stereo 5.1)
  • WMA Lossless (128 Kbps with stereo 5.1)

Container format(s): ASF, WMA, WMV

Supported video camera encoding

Container Component Codec Notes
MP4 Video H.264
  • 480p at 30fps produces a bit rate of 2.67 Mbps
  • 720p at 30fps produces a bit rate of 8 Mbps
  • 1080p at 30 fps produces a bit rate of 16 Mbps
Audio AAC AAC at 128 Kbps, stereo (2 channels), 48 kHz sampling.

Supported streaming protocols

Protocol Availability (BlackBerry 10) Availability (BlackBerry PlayBook OS)
HTTP  (1.0+)
HTTPs  (1.0+)
HTTP Live Streaming (v 3.0)  (2.1+)
HTTP Progressive Download  (2.0+)
RTMP (Supported by Adobe Flash)  (1.0+)
RTMPe (Supported by Adobe Flash)  (2.0+)