Eskhan

Member
  • Content count

    612
  • Joined

  • Last visited

Community Reputation

122 Neutral

About Eskhan

  • Rank
    Advanced Member
  1. Hi In my program I transmit h.263 video from a computer to another, I would like to get the best quality possible for this so I would like to set my bitrate to a value that is as large as possible. How can I determine how large bitrate I can transmit at between these two computers programatically?
  2. Son of Cain - Thank you for taking your time to help me! I ran the JMF diagnostics tool in http://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.html and it said it couldn't find the jmf class files, so I reinstalled jmf and this time put it in c:\java\jmf (it used to be c:\program files\jmf2.1.1.e), because I suspect that spaces and dots screws up the classpath variables, now I am able to see video in a browser applet.
  3. Well, that is the not so amusing part, the only exception being thrown is my own that I throw because I can't find any device, the jmf api methods that I use simply state that no camera device exists and returns. Anyways, this is the stack trace. number of devices 0 Searching for [vfw:Creative WebCam NX (VFW):0] webcam.VideoTransmitException: No device found [ vfw:Creative WebCam NX (VFW):0] at webcam.VideoTransmitNew.<init>(VideoTransmitNew.java:108) at webtvclient.WebTVClient.getVideoTransmitNew(WebTVClient.java:377) at webtvclient.ChildWindow$ChildWindowMessageHandler.actionPerformed(ChildWindow.java:244) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException at webtvclient.ChildWindow$ChildWindowMessageHandler.actionPerformed(ChildWindow.java:245) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) the 0 in "number of devices 0" is the number returned by calling cameraDevices.size() where cameraDevices is the Vector that was assigned by this call: cameraDevices = CaptureDeviceManager.getDeviceList( new VideoFormat(VideoFormat.RGB, new Dimension(viewSize), VideoFormat.NOT_SPECIFIED, byte[].class, VideoFormat.NOT_SPECIFIED)); When I run the applet in eclipse cameraDevices contains two CaptureDeviceInfo objects after this call.
  4. I'm developing an applet that uses the webcam to transmit video. It runs fine when I run it in eclipse, but when I try to run it with java plug-in (in either IE or Firefox) It can't find any camera devices. My applet is signed and I have full permissions. I enumerate the webcam devices using CaptureDeviceManager.getDeviceList( new VideoFormat(VideoFormat.RGB, new Dimension(viewSize), VideoFormat.NOT_SPECIFIED, byte[].class, VideoFormat.NOT_SPECIFIED)); I also tried getting the device directly by using the cameras name like this CaptureDeviceInfo device = CaptureDeviceManager.getDevice("vfw:Creative WebCam NX (VFW):0");
  5. Thank you very much for your help!
  6. I get this error when I try to start my webcam in an applet I wrote packaged in a jar. So i guess I have to add the needed "Java Media Framework" library to my applet jar somehow so it can be loaded? How do I do this? It would relly be preferable if the end user who will eventually use my applet does not have to download JMF to get started.