Friday, January 1, 2010
Java Media Framework (JMF) and ubuntu 9.10
Download and installing JMF
Down load the JMF installation from here
The install instructions don't work! But you can extract like this.
unzip jmf-2_1_1e-linux-i586.bin
Testing
To use initialise go into bin and
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so ./jmfinit
All the commands need this prefix because JMF uses an older version of vl4. To test
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so ./jmstudio
If you get this error
Exception in thread "JavaSound PushThread" java.lang.IllegalArgumentException: amount of data to read does not represent an integral number of frames
at org.classpath.icedtea.pulseaudio.PulseAudioTargetDataLine.read(PulseAudioTargetDataLine.java:152)
at com.sun.media.protocol.javasound.PushThread.process(JavaSoundSourceStream.java:790)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)
You are probably using openjdk
update-java-alternatives -l
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
Switch to the sun java
sudo update-java-alternatives -s java-6-sun
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment