Hello!!! How are you?
Thanks to answer!
When I introduce the following sentence in the terminal happens this:
sentence:
[root@st-urit-02 Desktop]# /bin/sh ./jmf-2_1_1e-linux-i586.bin
Unpacking...
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: JMF-2.1.1e/bin/jmfinit
inflating: JMF-2.1.1e/bin/jmfregistry
inflating: JMF-2.1.1e/bin/jmstudio
inflating: JMF-2.1.1e/doc/attributions.html
inflating: JMF-2.1.1e/doc/formats.html
inflating: JMF-2.1.1e/doc/readme.html
inflating: JMF-2.1.1e/lib/libjmcvid.so
inflating: JMF-2.1.1e/lib/libjmdaud.so
inflating: JMF-2.1.1e/lib/libjmfjawt.so
inflating: JMF-2.1.1e/lib/libjmg723.so
inflating: JMF-2.1.1e/lib/libjmgsm.so
inflating: JMF-2.1.1e/lib/libjmh261.so
inflating: JMF-2.1.1e/lib/libjmh263enc.so
inflating: JMF-2.1.1e/lib/libjmjpeg.so
inflating: JMF-2.1.1e/lib/libjmmpa.so
inflating: JMF-2.1.1e/lib/libjmmpegv.so
inflating: JMF-2.1.1e/lib/libjmmpx.so
inflating: JMF-2.1.1e/lib/libjmutil.so
inflating: JMF-2.1.1e/lib/libjmv4l.so
inflating: JMF-2.1.1e/lib/libjmxlib.so
inflating: JMF-2.1.1e/lib/jmf.properties
inflating: JMF-2.1.1e/lib/jmf.jar
inflating: JMF-2.1.1e/lib/mediaplayer.jar
inflating: JMF-2.1.1e/lib/multiplayer.jar
JavaSound Capture Supported = false
java.lang.Error: Can't open video card 0
java.lang.Error: Can't open video card 1
java.lang.Error: Can't open video card 2
java.lang.Error: Can't open video card 3
java.lang.Error: Can't open video card 4
java.lang.Error: Can't open video card 5
java.lang.Error: Can't open video card 6
java.lang.Error: Can't open video card 7
java.lang.Error: Can't open video card 8
java.lang.Error: Can't open video card 9
Done.
[root@st-urit-02 Desktop]#
Thank you very much! Any help is welcome.
Maria...
Hello!
When I run JMSTUDIO the errors that give are the following:
[root@st-urit-02 bin]# ./jmstudio
Exception in thread "main" java.lang.NullPointerException
at .get_state (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)
at .Java_gnu_java_awt_peer_gtk_GtkMenuPeer_addItem (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)
at gnu.java.awt.peer.gtk.GtkMenuPeer.addItem(java.awt.peer.MenuItemPeer, int, boolean) (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)
at gnu.java.awt.peer.gtk.GtkMenuPeer.addItem(java.awt.MenuItem) (/usr/lib/lib-gnu-java-awt-peer-gtk.so.6.0.0)
at java.awt.Menu.add(java.awt.MenuItem) (/usr/lib/libgcj.so.6.0.0)
at JMStudio.createMenu() (Unknown Source)
at JMStudio.initFrame() (Unknown Source)
at jmapps.ui.JMFrame.JMFrame(java.awt.Frame, java.lang.String) (Unknown Source)
at jmapps.ui.PlayerFrame.PlayerFrame(java.awt.Frame, java.lang.String) (Unknown Source)
at JMStudio.JMStudio() (Unknown Source)
at JMStudio.createNewFrame() (Unknown Source)
at JMStudio.main(java.lang.String[]) (Unknown Source)
at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
[root@st-urit-02 bin]#
[root@st-urit-02 bin]#
That it can be?
Thanks very much!!!
Maria...
Hi!!!
How are you?
I have not been able to uninstall Java in any case when I see that version I have what it leaves to me is this:
[root@st-urit-04 ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@st-urit-04 ~]#
When trying to run the following lines that you propose to me appears this:
[root@st-urit-04 ~]# set JAVA_HOME=/usr/java/jre***
[root@st-urit-04 ~]# ln -s $JAVA_HOME/bin/java /usr/bin/java
ln: ?usr/bin/java? El fichero existe
And when running JMSTUDIO they continue giving errors such.
If it is necessary to uninstall JAVA already, that this does not come to the case, but you want to me to indicate like doing this?
Another thing and I hope is not much annoyance, 1964mercury, Your speak Spanish?
Thanks very much!!!
Maria!!!
Hi!!!
How are you?
Thanks very much to answer , 1964mercury!!!!
I have not been able to uninstall Java in any case when I see that version I have what it leaves to me is this:
[root@st-urit-04 ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@st-urit-04 ~]#
When trying to run the following lines that you propose to me appears this:
[root@st-urit-04 ~]# set JAVA_HOME=/usr/java/jre***
[root@st-urit-04 ~]# ln -s $JAVA_HOME/bin/java /usr/bin/java
ln: ?usr/bin/java? El fichero existe
And when running JMSTUDIO they continue giving errors such.
If it is necessary to uninstall JAVA already, that this does not come to the case, but you want to me to indicate like doing this?
Another thing and I hope is not much annoyance, 1964mercury, Your speak Spanish?
Thanks very much!!!
Maria...
No, even no, I have left it by a time, but I urgently need to install it in LINUX.. I have tried to follow what it says mercury to me but continues giving errors such...
You have the same problem?... or that errors you obtain in the installation? ...
Thanks to you!
Maria...
Maria,
I have some nice working code for Windows, but when I change my MediaLocator to v4l://0, I start getting errors.
I have only had 1 thing work correctly, that's the actual JMStudio.class in the jmf.jar. When I run it with the following command from shell I get a capture window:
java -Dawt.toolkit=sun.awt.motif.MToolkit JMStudio
My guess is to reverse engineer the source to create my player. They use the JMFUtils class to create the DataSource and the Player, but it takes the source name and the video format. While I have tried these in some test classes, they have not worked. My next step is to actually clone the class, put in some System.out.println's, then find the solution via this method.
Cheers,
Scott
Message was edited by:
scottpreston1
Hello!!! How are you?
.... Even when the errors that I obtain myself in the installation, I observe that jmf.jar it was in the JMF folder and put it like Netbeans 5 's library, which is the interface that I use... I use one code that it works in WINDOWS and when I change the classes that in WINDOWS are VFW by V4L for LINUX, these changes give some errors like "these classes are not public and I wasn't allowed to access them even when I imported this package...I don't if is because some installation-problem in linux..
And It doesn't work to me either when I want to run the JMFSTUDIO in LINUX as I said it in previous messages... something that doesn't happen to you...
So, in order to find a solution for my problem, I was wondering if you could, please provides me the source code JMF that you have......or if you can tell me where can I obtain it?... because when I install it single they give me the .class
Thanks a lot!!!
Maria...
Hola mercuy!!! How are you?
I install java of sun, and now the version that I have is the following:
root@st-urit-02 ~]# java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
When I return to install JMF appears to me an error less :
Unpacking...
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
creating: JMF-2.1.1e/
creating: JMF-2.1.1e/bin/
inflating: JMF-2.1.1e/bin/jmfinit
inflating: JMF-2.1.1e/bin/jmfregistry
inflating: JMF-2.1.1e/bin/jmstudio
creating: JMF-2.1.1e/doc/
inflating: JMF-2.1.1e/doc/attributions.html
inflating: JMF-2.1.1e/doc/formats.html
inflating: JMF-2.1.1e/doc/readme.html
creating: JMF-2.1.1e/lib/
inflating: JMF-2.1.1e/lib/libjmcvid.so
inflating: JMF-2.1.1e/lib/libjmdaud.so
inflating: JMF-2.1.1e/lib/libjmfjawt.so
inflating: JMF-2.1.1e/lib/libjmg723.so
inflating: JMF-2.1.1e/lib/libjmgsm.so
inflating: JMF-2.1.1e/lib/libjmh261.so
inflating: JMF-2.1.1e/lib/libjmh263enc.so
inflating: JMF-2.1.1e/lib/libjmjpeg.so
inflating: JMF-2.1.1e/lib/libjmmpa.so
inflating: JMF-2.1.1e/lib/libjmmpegv.so
inflating: JMF-2.1.1e/lib/libjmmpx.so
inflating: JMF-2.1.1e/lib/libjmutil.so
inflating: JMF-2.1.1e/lib/libjmv4l.so
inflating: JMF-2.1.1e/lib/libjmxlib.so
inflating: JMF-2.1.1e/lib/jmf.properties
inflating: JMF-2.1.1e/lib/jmf.jar
inflating: JMF-2.1.1e/lib/mediaplayer.jar
inflating: JMF-2.1.1e/lib/multiplayer.jar
JavaSound Capture Supported = true
JavaSoundAuto: Committed ok
java.lang.Error: Can't open video card 0
java.lang.Error: Can't open video card 1
java.lang.Error: Can't open video card 2
java.lang.Error: Can't open video card 3
java.lang.Error: Can't open video card 4
java.lang.Error: Can't open video card 5
java.lang.Error: Can't open video card 6
java.lang.Error: Can't open video card 7
java.lang.Error: Can't open video card 8
java.lang.Error: Can't open video card 9
Done.
[root@st-urit-02 Desktop]#
When attempt to run JMFSTUDIO appears these errors :
[root@st-urit-02 bin]# ./jmstudio
Exception in thread "main" java.lang.NullPointerException
at sun.awt.X11.XMenuPeer.repaintMenuItem(XMenuPeer.java:363)
at sun.awt.X11.XMenuItemPeer.setEnabled(XMenuItemPeer.java:71)
at sun.awt.X11.XMenuItemPeer.disable(XMenuItemPeer.java:93)
at java.awt.MenuItem.disable(MenuItem.java:280)
at java.awt.MenuItem.enable(MenuItem.java:267)
at java.awt.MenuItem.setEnabled(MenuItem.java:242)
at JMStudio.updateMenu(JMStudio.java:1274)
at JMStudio.<init>(JMStudio.java:119)
at JMStudio.createNewFrame(JMStudio.java:1412)
at JMStudio.main(JMStudio.java:1401)
[root@st-urit-02 bin]#
What I must do now?
Thank a lot!!!!
Maria...
I think I have seen that before.
It is possible when you run ./jstudio, from a terminal window, you do not have access to an X session window.
There are commands to export the display to the current display, you will have to google that.
It is also possible there is a bug in 1.5 java and it is not compatible with JMF.
You may need to install the latest 1.4 version of java.
I run Sun's JDSR3, linux 2.6 kernel with JMF2.1.2.
In JDSR2 JMF did not work with 1.5 java, JMF version 2.1.1F
It is now fixed in 2.1.2