permaculture playing cards*
The moose likes Java in General and the fly likes Java media framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java media framework" Watch "Java media framework" New topic
Author

Java media framework

Adalberto Toledo
Greenhorn

Joined: Mar 10, 2011
Posts: 14
Hi, I'm new in JAVA MEDIA FRAMEWORK (JMF), I need to run a video in java and I choosed JMF to run one.

I'm using ubuntu 10.04 version LTS and I'm programming in Eclipse IDE.

I downloaded JMF from the oracle page and I installed it. In the linux console I write this command "java JMStudio" and I can run only mpg videos but only I can hear the sound without the video.

In eclipse, I dowloaded some samples that run videos with JMF and when I run the video the console send me these messages error: "Unable to handle format: MPEG, 320x240, FrameRate=29.9, Length=115200" and "Unable to handle format: mpegaudio, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed, 8000.0 frame rate, FrameSize=16384 bits"

I have these JMF jars in Eclipse:

* customizer.jar
* jmf.jar
* mediaplayer.jar
* multiplayer.jar
* mp3plugin.jar
* jffmpeg-1.1.0.jar


Please, anyone helpme, I don't know what to do to run a video in java with JMF, I need to do a program that executes videos in java, thanks a lot...
Mamatha Achuthan
Greenhorn

Joined: Oct 09, 2011
Posts: 8

Hi,

The format mono is not supported. JMF can be used to convert it to a supported format.
Please refer to the link and see the conversion used.

http://edenti.deis.unibo.it/utils/Java-tips/Playing%20Audio%20and%20Video%20with%20Java%20Media%20Framework.txt

Regards,
Mamatha
Mamatha Achuthan
Greenhorn

Joined: Oct 09, 2011
Posts: 8

Hi,

Please refer to this link for conversion to PCM.

http://www.cs.unc.edu/~luv/teaching/COMP110/programs/AudioPlayer.java

Regards,
Mamatha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java media framework