JMF (Java Media Framework). The current release is 2.1.1e Last revised: 2003-05-23 Verified: 2011-02-15. It is stagnant, scheduled to be replaced by JMC (Java Media Components) in Java 1.7. JMF is the main way Java handles streaming video and audio. It is implemented as a set of native classes. It has been abandoned. The was supposed to be a replacement API (Application Programming Interface) coming, but I still have not seen it.
It will play video on your screen and sound on your speakers, headset or audio out and capture sound from your microphone or sound card input. It will capture sound or video files in
javax.media.CaptureDeviceManager.getDeviceList CaptureDeviceManager.getDeviceList will give you a list of capture (input) devices available on your particular machine. javax.media.control.FormatControl.getSupportedFormats will tell you the available input formats.javax.media.Codec.getSupportedOutputFormats Codec.getSupportedOutputFormats will tell you the available output formats. If you need more information than that, you will have to use JNI.
JMF supports MIDI, MP1, MP2, RTP (Real-time Transport Protocol) streaming JPEG (Joint Photographic Experts Group), RTP H.261, RTP H.263 among other formats. New versions support MP3. Both Sun and Intel developed packages. Intel called their package Intel Media Framework, Java Edition, though they seem to have erased all trace of it from their website. There is no sign of MP4 yet, presumably because the licence fees are too steep.
It is quite an elaborate scheme, capable of simultaneously controlling many channels of audio and video, and synchronising them. I imagine was designed for professional digital movie making. The hard part comes using it for something simple since there are so many bells and whistles.
The JMF classes live in the javax.media package. Unfortunately it is not part of the standard JDK/JRE. You have to
separately. This means any of your clients must also download and install JMF separately from your application. You also have to
Beware installing JMF. It will destroy your classpath. You will have to manually repair the classpath after it has installed.
To use JMF you have to decide on a
You want to avoid having to translate formats if you can. Don’t just assume everything will be able to plug seamlessly into everything else. There are many fine variations to the various protocols.
Simpler options include :
Video takes up even more space and bandwidth. Low quality, (small size, fuzzy picture, jumpy) takes about 64Kbps. This means one minute of video takes about .5 MB per minute. A better quality 512Kbps stream, that requires a high speed connection for live feeds, requires about 4 MB per minute, four times as much as audio.
So the key is to keep your audio and video clips short. Eventually, the Internet will be converted to fibre optics and there should be no more problem with bandwidth.
![]() |
recommend book⇒Essential JMF - Java Media Framework | |||
| by: | Rob Gordon, Stephen Talley | 978-0-13-080104-3 | paperback | |
|---|---|---|---|---|
| publisher: | Prentice Hall | |||
| published: | 1998-11-12 | |||
| Greyed out stores probably do not have the item in stock | ||||
![]() |
recommend book⇒Programming With the Java Media Framework | |||
| by: | Sean Sullivan [Editor], Loren Winzeler, Jeannie Deagen, Deanna Brown | 978-0-471-25169-9 | paperback | |
|---|---|---|---|---|
| publisher: | John Wiley & Sons | |||
| published: | 1998-04-06 | |||
| Covers JMF 1.0. | ||||
| Greyed out stores probably do not have the item in stock | ||||
![]() |
recommend book⇒Core Java Media Framework | |||
| by: | Linden deCarmo | 978-0-13-011519-5 | paperback | |
|---|---|---|---|---|
| publisher: | Prentice Hall | |||
| published: | 1999-06-24 | |||
| Covers JMF 1.0. | ||||
| Greyed out stores probably do not have the item in stock | ||||
![]() |
recommend book⇒Java How To Program: Object-Oriented Design with the UML and Design Patterns. | |||
| by: | Paul J. Deitel, Harvey M. Deitel | 978-0-13-034151-8 | paperback | |
|---|---|---|---|---|
| publisher: | Prentice Hall | |||
| published: | 2001-08-08 | |||
| covers JMF 2 and sound. | ||||
| Greyed out stores probably do not have the item in stock | ||||
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/jmf.html | J:\mindprod\jgloss\jmf.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.210] | |
| Feedback | You are visitor number 52,748. | |