JAVA 因简洁而美丽,因有效而动人 善待JAVA这颗种子的人,必将得到她的福荫

JMF媒体格式(1)

上一篇 / 下一篇  2010-08-29 22:57:06 / 个人分类:java

JMF介绍

JMF的全称是Java Media Framework API,她可以帮助开发者把音频、视频和其他一些基于时间的媒体放到Java应用程序或applet小程序中去,为多媒体开发者提供了捕捉、回放、编解码等工具,是一个弹性的、跨平台的多媒体解决方案。

http://java.sun.com/javase/technologies/desktop/media/jmf/reference/docs/index.html

JMF 2.1.1 - Supported Formats

http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html

JMF 2.1.1支持的媒体格式

JMF支持音频采样率从8KHz48KHz,而跨平台的版本只支持以下几种采样率:

8,11.025,11.127,16,22.05,22.254,32,44.148KHz.

JMF 2.1.1各个实现版本中对媒体类型的支持:

下表中

  • D表示媒体可以被解码和呈现.

  • E表示媒体流可以被编码

  • read表示媒体类型可以作为输入

  • write表示媒体类型可以作为输出 (写入文件)

媒体类型

JMF 2.1.1
跨平台版本

JMF 2.1.1
Solaris/Linux Performance Pack

JMF 2.1.1
Windows Performance Pack

AIFF (.aiff)

read/write

read/write

read/write

8-bit mono/stereo linear

D,E

D,E

D,E

16-bit mono/stereo linear

D,E

D,E

D,E

G.711 (U-law)

D,E

D,E

D,E

A-law

D

D

D

IMA4 ADPCM

D,E

D,E

D,E

AVI (.avi)

read/write

read/write

read/write

Audio: 8-bit mono/stereo linear

D,E

D,E

D,E

Audio: 16-bit mono/stereo linear

D,E

D,E

D,E

Audio: DVI ADPCM compressed

D,E

D,E

D,E

Audio: G.711 (U-law)

D,E

D,E

D,E

Audio: A-law

D

D

D

Audio: GSM mono

D,E

D,E

D,E

Audio: ACM**

-

-

D,E

Video: Cinepak

D

D,E

D

Video: MJPEG (422)

D

D,E

D,E

Video: RGB

D,E

D,E

D,E

Video: YUV

D,E

D,E

D,E

Video: VCM**

-

-

D,E

GSM (.gsm)

read/write

read/write

read/write

GSM mono audio

D,E

D,E

D,E

HotMedia (.mvr)

read only

read only

read only

IBM HotMedia

D

D

D

MIDI (.mid)

read only

read only

read only

Type 1 & 2 MIDI

-

D

D

MPEG-1 Video (.mpg)

-

read only

read only

Multiplexed System stream

-

D

D

Video-only stream

-

D

D

MPEG Layer II Audio (.mp2)

read only

read/write

read/write

MPEG layer 1, 2 audio

D

D,E

D,E

QuickTime (.mov)

read/write

read/write

read/write

Audio: 8 bits mono/stereo linear

D,E

D,E

D,E

Audio: 16 bits mono/stereo linear

D,E

D,E

D,E

Audio: G.711 (U-law)

D,E

D,E

D,E

Audio: A-law

D

D

D

Audio: GSM mono

D,E

D,E

D,E

Audio: IMA4 ADPCM

D,E

D,E

D,E

Video: Cinepak

D

D,E

D

Video: H.261

-

D

D

Video: H.263

D

D,E

D,E

Video: JPEG (420, 422, 444)

D

D,E

D,E

Video: RGB

D,E

D,E

D,E

Sun Audio (.au)

read/write

read/write

read/write

8 bits mono/stereo linear

D,E

D,E

D,E

16 bits mono/stereo linear

D,E

D,E

D,E

G.711 (U-law)

D,E

D,E

D,E

A-law

D

D

D

Wave (.wav)

read/write

read/write

read/write

8-bit mono/stereo linear

D,E

D,E

D,E

16-bit mono/stereo linear

D,E

D,E

D,E

G.711 (U-law)

D,E

D,E

D,E

A-law

D

D

D

GSM mono

D,E

D,E

D,E

DVI ADPCM

D,E

D,E

D,E

MS ADPCM

D

D

D

ACM**

-

-

D,E

Notes:

  • ACM** - Window's Audio Compression Manager support. Tested for these formats: A-law, GSM610, MSNAudio, MSADPCM, Truespeech, mp3, PCM, Voxware AC8, Voxware AC10.

  • VCM** - Window's Video Compression Manager support. Tested for these formats: IV41, IV51, VGPX, WINX, YV12, I263, CRAM, MPG4.


TAG: JMF

 

评分:0

我来说两句

Open Toolbar