• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Java media framework

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Greenhorn
Posts: 8
Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Please refer to this link for conversion to PCM.

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

Regards,
Mamatha
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic