Not responding web camera
Im using the built-in web camera. Whenever i try to connect, i get an error message saying that im not responding. What does that mean and how do i get rid of it?
trying to connect to what? Can you provide any more specifics? For the most part, the iSight camera is integrated into the applications so there is no need "to connect" to anything. Have you verified that the iSight is working properly? Try opening Photobooth and see how that goes.
MacBook,G5 iMac,15PB,G4 iMac, G4 QS, AX, 3G iPod, Shffl, nano,shffl Mac OS X (10.4.7)
Similar Messages
-
Skype not recognising web camera
I have tried everything to get skype to recognise my web cam again. It used to work fine in a previous version of skype but now nothing seems to work. I have tried reverting back to an earlier version and only get the message "page not found". Skype does recognise the microphone in my camera so I am able to do NO VIDEO calls, but I have seen sooooooo many complaints about this problem with sooooo many ideas from people trying to help and NOTHING works. The suggestion that going back to an earlier version is STUPID. You tell me I have to go back in time to fix YOUR **bleep**up. All I want to do is use Skype free to call video like I used to be able to do. Why does this program recognise the mic in my camera and NOT the camera.......... My suggestion is that Skype should be promoting OTHER free to call programs from other companies, as they dont seem to care about what caused this problem to happen to so many people, and seem uninterested in fixing the problem.. I am running Windows 7 on a desktop and laptop. If anyone can help please email me at [Mod edit: Please do not include personal/private information when making a public post. Thanks!] and I live in New Zealand.
Lennia wrote:
Hey,
I have an identical problem and nothing seems to work. All the settings are fine. Did they ever get back to you? Did it get fixed?
Thanks a lot,
Lennia
Please, run the DirectX diagnostics tool.
Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
Be aware that you will have to zip this file before attaching it here. -
Why JMF can not detect web cam in my net beans IDE?
Hi All,
I am newbie to JMF.
Install JMF in my window 7 system.
JMF can not detact webcam in netbeans IDE 6.8.
But JMStudio is detact available my camera.
CaptureDeviceManager.getDeviceList(null) is return null value.
how to over come this issue...You probably didn't add JMF.jar to your project library folder.
-
LT29i/ GX - Camera not responding/ 'error' camera not available.
Hello there. My Xperia's camera has stopped working all of a sudden, i think after an update. I cannot explain how frustrating this is, since ive tried many things to fix it.I have tried restoring my phone. Deleteing everything and starting again. I have gone into 'apps' and cleared the data and restarted my phone. Does anyone have anymore suggestions please please please!!! thank you muchly in advance
Update Service (SUS) PC Companion (PCC) Bridge (for Mac) Alternatives on How to backup Xperias http://talk.sonymobile.com/thread/36355
-
Updated : No question, just example web cam capture code
Hi,
I posted this example a while back, but it had some cosmetic bugs in it.
Here's an updated version.
Quick Start
1. Install JMF 2.1.1e (performance pack version)
( see imports list in source code if you really want to run it using the older version 2.1.1c )
2. You have to set the JMF_HOME or JMFHOME environment variable. Can't remember which one.
"Nearly sure" it's JMF_HOME.
3. Connect your camera
4. run jmfinit ( may need to do a few times until it detects your camera )
When it does, you're in business, and you can try to run the code
5. Run java -cp .;%JMF_HOME%\lib\jmf.jar JWebCam
known issue
Under Java 1.5 / 5 - When capturing a frame, and then resizing that snapshots JFrame, the image did not always scale up and display.
That does work under Java 1.3.1_06 .
Tested on Win98 2nd edition, Java 1.3.1_06, and Creative Web Cam Pro.
Legal stuff in plain english : This code is available for use by everyone, personal or commercial, no need to mention me in licenses or anything. It's just a demo I knocked up for myself. So I am under no obligation to support this. Use it at your own risk.... that implies you can't blame or sue me for anything that goes wrong.
If you like the code, I'd be happy to hear whereabouts you are in the world :-)
Also note : this is the limits of my JMF experience at present.
If you've a separate question, post it to a new topic!
regards,
Owen ( Dublin, Ireland )
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import javax.media.*;
import javax.media.datasink.*;
import javax.media.format.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.control.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
// import com.sun.media.vfw.VFWCapture; // JMF 2.1.1c version
import com.sun.media.protocol.vfw.VFWCapture; // JMF 2.1.1e version
public class JWebCam extends JFrame
implements WindowListener, ComponentListener
protected final static int MIN_WIDTH = 100; // 320;
protected final static int MIN_HEIGHT = 100; // 240;
protected static int shotCounter = 1;
protected JLabel statusBar = null;
protected JPanel visualContainer = null;
protected Component visualComponent = null;
protected JToolBar toolbar = null;
protected MyToolBarAction formatButton = null;
protected MyToolBarAction captureButton = null;
protected Player player = null;
protected CaptureDeviceInfo webCamDeviceInfo = null;
protected MediaLocator ml = null;
protected Dimension imageSize = null;
protected FormatControl formatControl = null;
protected VideoFormat currentFormat = null;
protected Format[] videoFormats = null;
protected MyVideoFormat[] myFormatList = null;
protected MyCaptureDeviceInfo[] myCaptureDevices = null;
protected boolean initialised = false;
* Constructor
public JWebCam ( String frameTitle )
super ( frameTitle );
try
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
catch ( Exception cnfe )
System.out.println ("Note : Cannot load look and feel settings");
setSize ( 320, 260 ); // default size...
addWindowListener ( this );
addComponentListener ( this );
getContentPane().setLayout ( new BorderLayout() );
visualContainer = new JPanel();
visualContainer.setLayout ( new BorderLayout() );
getContentPane().add ( visualContainer, BorderLayout.CENTER );
statusBar = new JLabel ("")
// Nasty bug workaround
// The minimum JLabel size was determined by the text in the status bar
// So the layoutmanager wouldn't shrink the window for the video image
public Dimension getPreferredSize ( )
// get the JLabel to "allow" a minimum of 10 pixels width
// not to work out the minimum size from the text length
return ( new Dimension ( 10, super.getPreferredSize().height ) );
statusBar.setBorder ( new EtchedBorder() );
getContentPane().add ( statusBar, BorderLayout.SOUTH );
* Initialise
* @returns true if web cam is detected
public boolean initialise ( )
throws Exception
MyCaptureDeviceInfo[] cams = autoDetect();
if ( cams.length > 0 )
if ( cams.length == 1 )
System.out.println ("Note : 1 web cam detected");
return ( initialise ( cams[0].capDevInfo ) );
else
System.out.println ("Note : " + cams.length + " web cams detected");
Object selected = JOptionPane.showInputDialog (this,
"Select Video format",
"Capture format selection",
JOptionPane.INFORMATION_MESSAGE,
null, // Icon icon,
cams, // videoFormats,
cams[0] );
if ( selected != null )
return ( initialise ( ((MyCaptureDeviceInfo)selected).capDevInfo ) );
else
return ( initialise ( null ) );
else
return ( initialise ( null ) );
* Initialise
* @params _deviceInfo, specific web cam device if not autodetected
* @returns true if web cam is detected
public boolean initialise ( CaptureDeviceInfo _deviceInfo )
throws Exception
statusBar.setText ( "Initialising...");
webCamDeviceInfo = _deviceInfo;
if ( webCamDeviceInfo != null )
statusBar.setText ( "Connecting to : " + webCamDeviceInfo.getName() );
try
setUpToolBar();
getContentPane().add ( toolbar, BorderLayout.NORTH );
ml = webCamDeviceInfo.getLocator();
if ( ml != null )
player = Manager.createRealizedPlayer ( ml );
if ( player != null )
player.start();
formatControl = (FormatControl)player.getControl ( "javax.media.control.FormatControl" );
videoFormats = webCamDeviceInfo.getFormats();
myFormatList = new MyVideoFormat[videoFormats.length];
for ( int i=0; i<videoFormats.length; i++ )
myFormatList[i] = new MyVideoFormat ( (VideoFormat)videoFormats[i] );
Format currFormat = formatControl.getFormat();
visualComponent = player.getVisualComponent();
if ( visualComponent != null )
visualContainer.add ( visualComponent, BorderLayout.CENTER );
if ( currFormat instanceof VideoFormat )
currentFormat = (VideoFormat)currFormat;
imageSize = currentFormat.getSize();
visualContainer.setPreferredSize ( imageSize );
setSize ( imageSize.width, imageSize.height + statusBar.getHeight() + toolbar.getHeight() );
else
System.err.println ("Error : Cannot get current video format");
invalidate();
pack();
return ( true );
else
System.err.println ("Error : Could not get visual component");
return ( false );
else
System.err.println ("Error : Cannot create player");
statusBar.setText ( "Cannot create player" );
return ( false );
else
System.err.println ("Error : No MediaLocator for " + webCamDeviceInfo.getName() );
statusBar.setText ( "No Media Locator for : " + webCamDeviceInfo.getName() );
return ( false );
catch ( IOException ioEx )
System.err.println ("Error connecting to [" + webCamDeviceInfo.getName() + "] : " + ioEx.getMessage() );
statusBar.setText ( "Connecting to : " + webCamDeviceInfo.getName() );
return ( false );
catch ( NoPlayerException npex )
statusBar.setText ("Cannot create player");
return ( false );
catch ( CannotRealizeException nre )
statusBar.setText ( "Cannot realize player");
return ( false );
else
return ( false );
* Dynamically create menu items
* @returns the device info object if found, null otherwise
public void setFormat ( VideoFormat selectedFormat )
if ( formatControl != null )
// player.stop(); // not needed and big performance hit
currentFormat = selectedFormat;
if ( visualComponent != null )
visualContainer.remove ( visualComponent );
imageSize = currentFormat.getSize();
visualContainer.setPreferredSize ( imageSize );
statusBar.setText ( "Format : " + currentFormat );
System.out.println ("Format : " + currentFormat );
formatControl.setFormat ( currentFormat );
// player.start(); // not needed and big performance hit
visualComponent = player.getVisualComponent();
if ( visualComponent != null )
visualContainer.add ( visualComponent, BorderLayout.CENTER );
invalidate(); // let the layout manager work out the sizes
pack();
else
System.out.println ("Visual component not an instance of FormatControl");
statusBar.setText ( "Visual component cannot change format" );
public VideoFormat getFormat ( )
return ( currentFormat );
protected void setUpToolBar ( )
toolbar = new JToolBar();
// Note : due to cosmetic glitches when undocking and docking the toolbar,
// I've set this to false.
toolbar.setFloatable(false);
// Note : If you supply the 16 x 16 bitmaps then you can replace
// the commented line in the MyToolBarAction constructor
formatButton = new MyToolBarAction ( "Resolution", "BtnFormat.jpg" );
captureButton = new MyToolBarAction ( "Capture", "BtnCapture.jpg" );
toolbar.add ( formatButton );
toolbar.add ( captureButton );
getContentPane().add ( toolbar, BorderLayout.NORTH );
protected void toolbarHandler ( MyToolBarAction actionBtn )
if ( actionBtn == formatButton )
Object selected = JOptionPane.showInputDialog (this,
"Select Video format",
"Capture format selection",
JOptionPane.INFORMATION_MESSAGE,
null, // Icon icon,
myFormatList, // videoFormats,
currentFormat );
if ( selected != null )
setFormat ( ((MyVideoFormat)selected).format );
else if ( actionBtn == captureButton )
Image photo = grabFrameImage ( );
if ( photo != null )
MySnapshot snapshot = new MySnapshot ( photo, new Dimension ( imageSize ) );
else
System.err.println ("Error : Could not grab frame");
* autoDetects the first web camera in the system
* searches for video for windows ( vfw ) capture devices
* @returns the device info object if found, null otherwise
public MyCaptureDeviceInfo[] autoDetect ( )
Vector list = CaptureDeviceManager.getDeviceList ( null );
CaptureDeviceInfo devInfo = null;
String name;
Vector capDevices = new Vector();
if ( list != null )
for ( int i=0; i<list.size(); i++ )
devInfo = (CaptureDeviceInfo)list.elementAt ( i );
name = devInfo.getName();
if ( name.startsWith ("vfw:") )
System.out.println ("DeviceManager List : " + name );
capDevices.addElement ( new MyCaptureDeviceInfo ( devInfo ) );
else
for ( int i = 0; i < 10; i++ )
try
name = VFWCapture.capGetDriverDescriptionName ( i );
if (name != null && name.length() > 1)
devInfo = com.sun.media.protocol.vfw.VFWSourceStream.autoDetect ( i );
if ( devInfo != null )
System.out.println ("VFW Autodetect List : " + name );
capDevices.addElement ( new MyCaptureDeviceInfo ( devInfo ) );
catch ( Exception ioEx )
System.err.println ("Error connecting to [" + webCamDeviceInfo.getName() + "] : " + ioEx.getMessage() );
// ignore errors detecting device
statusBar.setText ( "AutoDetect failed : " + ioEx.getMessage() );
MyCaptureDeviceInfo[] detected = new MyCaptureDeviceInfo[ capDevices.size() ];
for ( int i=0; i<capDevices.size(); i++ )
detected[i] = (MyCaptureDeviceInfo)capDevices.elementAt ( i );
return ( detected );
* deviceInfo
* @note outputs text information
public void deviceInfo ( )
if ( webCamDeviceInfo != null )
Format[] formats = webCamDeviceInfo.getFormats();
if ( ( formats != null ) && ( formats.length > 0 ) )
for ( int i=0; i<formats.length; i++ )
Format aFormat = formats;
if ( aFormat instanceof VideoFormat )
Dimension dim = ((VideoFormat)aFormat).getSize();
// System.out.println ("Video Format " + i + " : " + formats[i].getEncoding() + ", " + dim.width + " x " + dim.height );
else
System.out.println ("Error : No web cam detected");
* grabs a frame's buffer from the web cam / device
* @returns A frames buffer
public Buffer grabFrameBuffer ( )
if ( player != null )
FrameGrabbingControl fgc = (FrameGrabbingControl)player.getControl ( "javax.media.control.FrameGrabbingControl" );
if ( fgc != null )
return ( fgc.grabFrame() );
else
System.err.println ("Error : FrameGrabbingControl is null");
return ( null );
else
System.err.println ("Error : Player is null");
return ( null );
* grabs a frame's buffer, as an image, from the web cam / device
* @returns A frames buffer as an image
public Image grabFrameImage ( )
Buffer buffer = grabFrameBuffer();
if ( buffer != null )
// Convert it to an image
BufferToImage btoi = new BufferToImage ( (VideoFormat)buffer.getFormat() );
if ( btoi != null )
Image image = btoi.createImage ( buffer );
if ( image != null )
return ( image );
else
System.err.println ("Error : BufferToImage cannot convert buffer");
return ( null );
else
System.err.println ("Error : cannot create BufferToImage instance");
return ( null );
else
System.out.println ("Error : Buffer grabbed is null");
return ( null );
* Closes and cleans up the player
public void playerClose ( )
if ( player != null )
player.close();
player.deallocate();
player = null;
public void windowClosing ( WindowEvent e )
playerClose();
System.exit ( 1 );
public void componentResized ( ComponentEvent e )
Dimension dim = getSize();
boolean mustResize = false;
if ( dim.width < MIN_WIDTH )
dim.width = MIN_WIDTH;
mustResize = true;
if ( dim.height < MIN_HEIGHT )
dim.height = MIN_HEIGHT;
mustResize = true;
if ( mustResize )
setSize ( dim );
public void windowActivated ( WindowEvent e ) { }
public void windowClosed ( WindowEvent e ) { }
public void windowDeactivated ( WindowEvent e ) { }
public void windowDeiconified ( WindowEvent e ) { }
public void windowIconified ( WindowEvent e ) { }
public void windowOpened ( WindowEvent e ) { }
public void componentHidden(ComponentEvent e) { }
public void componentMoved(ComponentEvent e) { }
public void componentShown(ComponentEvent e) { }
protected void finalize ( ) throws Throwable
playerClose();
super.finalize();
class MyToolBarAction extends AbstractAction
public MyToolBarAction ( String name, String imagefile )
// Note : Use version this if you supply your own toolbar icons
// super ( name, new ImageIcon ( imagefile ) );
super ( name );
public void actionPerformed ( ActionEvent event )
toolbarHandler ( this );
class MyVideoFormat
public VideoFormat format;
public MyVideoFormat ( VideoFormat format )
this.format = format;
public String toString ( )
Dimension dim = format.getSize();
return ( format.getEncoding() + " [ " + dim.width + " x " + dim.height + " ]" );
class MyCaptureDeviceInfo
public CaptureDeviceInfo capDevInfo;
public MyCaptureDeviceInfo ( CaptureDeviceInfo devInfo )
capDevInfo = devInfo;
public String toString ( )
return ( capDevInfo.getName() );
class MySnapshot extends JFrame implements ImageObserver
protected Image photo = null;
protected int shotNumber;
public MySnapshot ( Image grabbedFrame, Dimension imageSize )
super ( );
shotNumber = shotCounter++;
setTitle ( "Photo" + shotNumber );
photo = grabbedFrame;
setDefaultCloseOperation ( WindowConstants.DISPOSE_ON_CLOSE );
int imageHeight = photo.getWidth ( this );
int imageWidth = photo.getHeight ( this );
setSize ( imageSize.width, imageSize.height );
final FileDialog saveDialog = new FileDialog ( this, "Save JPEG", FileDialog.SAVE );
final JFrame thisCopy = this;
saveDialog.setFile ( "Photo" + shotNumber );
addWindowListener ( new WindowAdapter()
public void windowClosing ( WindowEvent e )
saveDialog.show();
String filename = saveDialog.getFile();
if ( filename != null )
if ( saveJPEG ( filename ) )
JOptionPane.showMessageDialog ( thisCopy, "Saved " + filename );
setVisible ( false );
dispose();
else
JOptionPane.showMessageDialog ( thisCopy, "Error saving " + filename );
else
setVisible ( false );
dispose();
setVisible ( true );
public void paint ( Graphics g )
super.paint ( g );
g.drawImage ( photo, 0, 0, getWidth(), getHeight(), Color.black, this );
* Saves an image as a JPEG
* @params the image to save
* @params the filename to save the image as
public boolean saveJPEG ( String filename )
boolean saved = false;
BufferedImage bi = new BufferedImage ( photo.getWidth(null),
photo.getHeight(null),
BufferedImage.TYPE_INT_RGB );
Graphics2D g2 = bi.createGraphics();
g2.drawImage ( photo, null, null );
FileOutputStream out = null;
try
out = new FileOutputStream ( filename );
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder ( out );
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam ( bi );
param.setQuality ( 1.0f, false ); // 100% high quality setting, no compression
encoder.setJPEGEncodeParam ( param );
encoder.encode ( bi );
out.close();
saved = true;
catch ( Exception ex )
System.out.println ("Error saving JPEG : " + ex.getMessage() );
return ( saved );
} // of MySnapshot
public static void main (String[] args )
try
JWebCam myWebCam = new JWebCam ( "Web Cam Capture" );
myWebCam.setVisible ( true );
if ( !myWebCam.initialise() )
System.out.println ("Web Cam not detected / initialised");
catch ( Exception ex )
ex.printStackTrace();Hi,
Here's a working version.
If there are no spaces after the "<" symbol, it thinks it's a HTML tag.
Putting spaces in, stops this.
cheers,
Owen
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import javax.media.*;
import javax.media.datasink.*;
import javax.media.format.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.control.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
// import com.sun.media.vfw.VFWCapture; // JMF 2.1.1c version
import com.sun.media.protocol.vfw.VFWCapture; // JMF 2.1.1e version
public class JWebCam extends JFrame
implements WindowListener, ComponentListener
protected final static int MIN_WIDTH = 100; // 320;
protected final static int MIN_HEIGHT = 100; // 240;
protected static int shotCounter = 1;
protected JLabel statusBar = null;
protected JPanel visualContainer = null;
protected Component visualComponent = null;
protected JToolBar toolbar = null;
protected MyToolBarAction formatButton = null;
protected MyToolBarAction captureButton = null;
protected Player player = null;
protected CaptureDeviceInfo webCamDeviceInfo = null;
protected MediaLocator ml = null;
protected Dimension imageSize = null;
protected FormatControl formatControl = null;
protected VideoFormat currentFormat = null;
protected Format[] videoFormats = null;
protected MyVideoFormat[] myFormatList = null;
protected MyCaptureDeviceInfo[] myCaptureDevices = null;
protected boolean initialised = false;
* Constructor
public JWebCam ( String frameTitle )
super ( frameTitle );
try
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
catch ( Exception cnfe )
System.out.println ("Note : Cannot load look and feel settings");
setSize ( 320, 260 ); // default size...
addWindowListener ( this );
addComponentListener ( this );
getContentPane().setLayout ( new BorderLayout() );
visualContainer = new JPanel();
visualContainer.setLayout ( new BorderLayout() );
getContentPane().add ( visualContainer, BorderLayout.CENTER );
statusBar = new JLabel ("")
// Nasty bug workaround
// The minimum JLabel size was determined by the text in the status bar
// So the layoutmanager wouldn't shrink the window for the video image
public Dimension getPreferredSize ( )
// get the JLabel to "allow" a minimum of 10 pixels width
// not to work out the minimum size from the text length
return ( new Dimension ( 10, super.getPreferredSize().height ) );
statusBar.setBorder ( new EtchedBorder() );
getContentPane().add ( statusBar, BorderLayout.SOUTH );
* Initialise
* @returns true if web cam is detected
public boolean initialise ( )
throws Exception
MyCaptureDeviceInfo[] cams = autoDetect();
if ( cams.length > 0 )
if ( cams.length == 1 )
System.out.println ("Note : 1 web cam detected");
return ( initialise ( cams[0].capDevInfo ) );
else
System.out.println ("Note : " + cams.length + " web cams detected");
Object selected = JOptionPane.showInputDialog (this,
"Select Video format",
"Capture format selection",
JOptionPane.INFORMATION_MESSAGE,
null, // Icon icon,
cams, // videoFormats,
cams[0] );
if ( selected != null )
return ( initialise ( ((MyCaptureDeviceInfo)selected).capDevInfo ) );
else
return ( initialise ( null ) );
else
return ( initialise ( null ) );
* Initialise
* @params _deviceInfo, specific web cam device if not autodetected
* @returns true if web cam is detected
public boolean initialise ( CaptureDeviceInfo _deviceInfo )
throws Exception
statusBar.setText ( "Initialising...");
webCamDeviceInfo = _deviceInfo;
if ( webCamDeviceInfo != null )
statusBar.setText ( "Connecting to : " + webCamDeviceInfo.getName() );
try
setUpToolBar();
getContentPane().add ( toolbar, BorderLayout.NORTH );
ml = webCamDeviceInfo.getLocator();
if ( ml != null )
player = Manager.createRealizedPlayer ( ml );
if ( player != null )
player.start();
formatControl = (FormatControl)player.getControl ( "javax.media.control.FormatControl" );
videoFormats = webCamDeviceInfo.getFormats();
myFormatList = new MyVideoFormat[videoFormats.length];
for ( int i=0; i < videoFormats.length; i++ )
myFormatList[i] = new MyVideoFormat ( (VideoFormat)videoFormats[i] );
Format currFormat = formatControl.getFormat();
visualComponent = player.getVisualComponent();
if ( visualComponent != null )
visualContainer.add ( visualComponent, BorderLayout.CENTER );
if ( currFormat instanceof VideoFormat )
currentFormat = (VideoFormat)currFormat;
imageSize = currentFormat.getSize();
visualContainer.setPreferredSize ( imageSize );
setSize ( imageSize.width, imageSize.height + statusBar.getHeight() + toolbar.getHeight() );
else
System.err.println ("Error : Cannot get current video format");
invalidate();
pack();
return ( true );
else
System.err.println ("Error : Could not get visual component");
return ( false );
else
System.err.println ("Error : Cannot create player");
statusBar.setText ( "Cannot create player" );
return ( false );
else
System.err.println ("Error : No MediaLocator for " + webCamDeviceInfo.getName() );
statusBar.setText ( "No Media Locator for : " + webCamDeviceInfo.getName() );
return ( false );
catch ( IOException ioEx )
System.err.println ("Error connecting to [" + webCamDeviceInfo.getName() + "] : " + ioEx.getMessage() );
statusBar.setText ( "Connecting to : " + webCamDeviceInfo.getName() );
return ( false );
catch ( NoPlayerException npex )
statusBar.setText ("Cannot create player");
return ( false );
catch ( CannotRealizeException nre )
statusBar.setText ( "Cannot realize player");
return ( false );
else
return ( false );
* Dynamically create menu items
* @returns the device info object if found, null otherwise
public void setFormat ( VideoFormat selectedFormat )
if ( formatControl != null )
player.stop();
currentFormat = selectedFormat;
if ( visualComponent != null )
visualContainer.remove ( visualComponent );
imageSize = currentFormat.getSize();
visualContainer.setPreferredSize ( imageSize );
statusBar.setText ( "Format : " + currentFormat );
System.out.println ("Format : " + currentFormat );
formatControl.setFormat ( currentFormat );
player.start();
visualComponent = player.getVisualComponent();
if ( visualComponent != null )
visualContainer.add ( visualComponent, BorderLayout.CENTER );
invalidate(); // let the layout manager work out the sizes
pack();
else
System.out.println ("Visual component not an instance of FormatControl");
statusBar.setText ( "Visual component cannot change format" );
public VideoFormat getFormat ( )
return ( currentFormat );
protected void setUpToolBar ( )
toolbar = new JToolBar();
// Note : due to cosmetic glitches when undocking and docking the toolbar,
// I've set this to false.
toolbar.setFloatable(false);
// Note : If you supply the 16 x 16 bitmaps then you can replace
// the commented line in the MyToolBarAction constructor
formatButton = new MyToolBarAction ( "Resolution", "BtnFormat.jpg" );
captureButton = new MyToolBarAction ( "Capture", "BtnCapture.jpg" );
toolbar.add ( formatButton );
toolbar.add ( captureButton );
getContentPane().add ( toolbar, BorderLayout.NORTH );
protected void toolbarHandler ( MyToolBarAction actionBtn )
if ( actionBtn == formatButton )
Object selected = JOptionPane.showInputDialog (this,
"Select Video format",
"Capture format selection",
JOptionPane.INFORMATION_MESSAGE,
null, // Icon icon,
myFormatList, // videoFormats,
currentFormat );
if ( selected != null )
setFormat ( ((MyVideoFormat)selected).format );
else if ( actionBtn == captureButton )
Image photo = grabFrameImage ( );
if ( photo != null )
MySnapshot snapshot = new MySnapshot ( photo, new Dimension ( imageSize ) );
else
System.err.println ("Error : Could not grab frame");
* autoDetects the first web camera in the system
* searches for video for windows ( vfw ) capture devices
* @returns the device info object if found, null otherwise
public MyCaptureDeviceInfo[] autoDetect ( )
Vector list = CaptureDeviceManager.getDeviceList ( null );
CaptureDeviceInfo devInfo = null;
String name;
Vector capDevices = new Vector();
if ( list != null )
for ( int i=0; i < list.size(); i++ )
devInfo = (CaptureDeviceInfo)list.elementAt ( i );
name = devInfo.getName();
if ( name.startsWith ("vfw:") )
System.out.println ("DeviceManager List : " + name );
capDevices.addElement ( new MyCaptureDeviceInfo ( devInfo ) );
else
for ( int i = 0; i < 10; i++ )
try
name = VFWCapture.capGetDriverDescriptionName ( i );
if (name != null && name.length() > 1)
devInfo = com.sun.media.protocol.vfw.VFWSourceStream.autoDetect ( i );
if ( devInfo != null )
System.out.println ("VFW Autodetect List : " + name );
capDevices.addElement ( new MyCaptureDeviceInfo ( devInfo ) );
catch ( Exception ioEx )
System.err.println ("Error connecting to [" + webCamDeviceInfo.getName() + "] : " + ioEx.getMessage() );
// ignore errors detecting device
statusBar.setText ( "AutoDetect failed : " + ioEx.getMessage() );
MyCaptureDeviceInfo[] detected = new MyCaptureDeviceInfo[ capDevices.size() ];
for ( int i=0; i < capDevices.size(); i++ )
detected[i] = (MyCaptureDeviceInfo)capDevices.elementAt ( i );
return ( detected );
* deviceInfo
* @note outputs text information
public void deviceInfo ( )
if ( webCamDeviceInfo != null )
Format[] formats = webCamDeviceInfo.getFormats();
if ( ( formats != null ) && ( formats.length > 0 ) )
for ( int i=0; i < formats.length; i++ )
Format aFormat = formats;
if ( aFormat instanceof VideoFormat )
Dimension dim = ((VideoFormat)aFormat).getSize();
// System.out.println ("Video Format " + i + " : " + formats[i].getEncoding() + ", " + dim.width + " x " + dim.height );
else
System.out.println ("Error : No web cam detected");
* grabs a frame's buffer from the web cam / device
* @returns A frames buffer
public Buffer grabFrameBuffer ( )
if ( player != null )
FrameGrabbingControl fgc = (FrameGrabbingControl)player.getControl ( "javax.media.control.FrameGrabbingControl" );
if ( fgc != null )
return ( fgc.grabFrame() );
else
System.err.println ("Error : FrameGrabbingControl is null");
return ( null );
else
System.err.println ("Error : Player is null");
return ( null );
* grabs a frame's buffer, as an image, from the web cam / device
* @returns A frames buffer as an image
public Image grabFrameImage ( )
Buffer buffer = grabFrameBuffer();
if ( buffer != null )
// Convert it to an image
BufferToImage btoi = new BufferToImage ( (VideoFormat)buffer.getFormat() );
if ( btoi != null )
Image image = btoi.createImage ( buffer );
if ( image != null )
return ( image );
else
System.err.println ("Error : BufferToImage cannot convert buffer");
return ( null );
else
System.err.println ("Error : cannot create BufferToImage instance");
return ( null );
else
System.out.println ("Error : Buffer grabbed is null");
return ( null );
* Closes and cleans up the player
public void playerClose ( )
if ( player != null )
player.close();
player.deallocate();
player = null;
public void windowClosing ( WindowEvent e )
playerClose();
System.exit ( 1 );
public void componentResized ( ComponentEvent e )
Dimension dim = getSize();
boolean mustResize = false;
if ( dim.width < MIN_WIDTH )
dim.width = MIN_WIDTH;
mustResize = true;
if ( dim.height < MIN_HEIGHT )
dim.height = MIN_HEIGHT;
mustResize = true;
if ( mustResize )
setSize ( dim );
public void windowActivated ( WindowEvent e ) { }
public void windowClosed ( WindowEvent e ) { }
public void windowDeactivated ( WindowEvent e ) { }
public void windowDeiconified ( WindowEvent e ) { }
public void windowIconified ( WindowEvent e ) { }
public void windowOpened ( WindowEvent e ) { }
public void componentHidden(ComponentEvent e) { }
public void componentMoved(ComponentEvent e) { }
public void componentShown(ComponentEvent e) { }
protected void finalize ( ) throws Throwable
playerClose();
super.finalize();
class MyToolBarAction extends AbstractAction
public MyToolBarAction ( String name, String imagefile )
// Note : Use version this if you supply your own toolbar icons
// super ( name, new ImageIcon ( imagefile ) );
super ( name );
public void actionPerformed ( ActionEvent event )
toolbarHandler ( this );
class MyVideoFormat
public VideoFormat format;
public MyVideoFormat ( VideoFormat format )
this.format = format;
public String toString ( )
Dimension dim = format.getSize();
return ( format.getEncoding() + " [ " + dim.width + " x " + dim.height + " ]" );
class MyCaptureDeviceInfo
public CaptureDeviceInfo capDevInfo;
public MyCaptureDeviceInfo ( CaptureDeviceInfo devInfo )
capDevInfo = devInfo;
public String toString ( )
return ( capDevInfo.getName() );
class MySnapshot extends JFrame implements ImageObserver
protected Image photo = null;
protected int shotNumber;
public MySnapshot ( Image grabbedFrame, Dimension imageSize )
super ( );
shotNumber = shotCounter++;
setTitle ( "Photo" + shotNumber );
photo = grabbedFrame;
setDefaultCloseOperation ( WindowConstants.DISPOSE_ON_CLOSE );
int imageHeight = photo.getWidth ( this );
int imageWidth = photo.getHeight ( this );
setSize ( imageSize.width, imageSize.height );
final FileDialog saveDialog = new FileDialog ( this, "Save JPEG", FileDialog.SAVE );
final JFrame thisCopy = this;
saveDialog.setFile ( "Photo" + shotNumber );
addWindowListener ( new WindowAdapter()
public void windowClosing ( WindowEvent e )
saveDialog.show();
String filename = saveDialog.getFile();
if ( filename != null )
if ( saveJPEG ( filename ) )
JOptionPane.showMessageDialog ( thisCopy, "Saved " + filename );
setVisible ( false );
dispose();
else
JOptionPane.showMessageDialog ( thisCopy, "Error saving " + filename );
else
setVisible ( false );
dispose();
setVisible ( true );
public void paint ( Graphics g )
super.paint ( g );
g.drawImage ( photo, 0, 0, getWidth(), getHeight(), Color.black, this );
* Saves an image as a JPEG
* @params the image to save
* @params the filename to save the image as
public boolean saveJPEG ( String filename )
boolean saved = false;
BufferedImage bi = new BufferedImage ( photo.getWidth(null),
photo.getHeight(null),
BufferedImage.TYPE_INT_RGB );
Graphics2D g2 = bi.createGraphics();
g2.drawImage ( photo, null, null );
FileOutputStream out = null;
try
out = new FileOutputStream ( filename );
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder ( out );
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam ( bi );
param.setQuality ( 1.0f, false ); // 100% high quality setting, no compression
encoder.setJPEGEncodeParam ( param );
encoder.encode ( bi );
out.close();
saved = true;
catch ( Exception ex )
System.out.println ("Error saving JPEG : " + ex.getMessage() );
return ( saved );
} // of MySnapshot
public static void main (String[] args )
try
JWebCam myWebCam = new JWebCam ( "Web Cam Capture" );
myWebCam.setVisible ( true );
if ( !myWebCam.initialise() )
System.out.println ("Web Cam not detected / initialised");
catch ( Exception ex )
ex.printStackTrace(); -
Lumia 920 seldom does not respond while in sleep m...
Hi,
I encountered the same issue along with another abnormal condition too. Phone turns into locked state and the screen stops glowing (blank black screen), indicating idle state. It doesn't respond when I press unlock button. Also it does not respond for Camera, and Volume buttons too. But, when I connect it to a PC in that state I am able to browse the phone normally via PC only. Phone still remains buggy. As a work around pressing volume-keys + power key + camera key simultaneously restarts the device and resumes to normal state. However, previous state of phone isn't restored i.e., device starts as it were normally restarted.
Regards,
K Chandrasekhar Omkar
Moderator's Note: E-mail address was removed. Please don't publish your personal contact information on a public forum.
Sorry, couldn't find any place to post this. It seems that there is, at least on my phone, a semi-reproducible bug that stops the volume control from working.
Steps to reproduce (from clean phone, ie. just freshly booted, no remnant IE tabs):
1. Turn on phone.
2. Open music+videos (Xbox music) app. Play a song that is locally stored on the phone.
3. While the music is still playing, open up an Internet Explorer tab and navigate to youtube (m.youtube.com).
4. Play an HD movie file. I played Peter Jackson's "The Hobbit" preview #9. Your previously playing music will stop playing.
5. After a few seconds, stop the youtube video playback by hitting the Windows button.
6. Go back to the music+videos app. Play a song that is locally stored on the phone.
On times that the bug shows up, the music plays at a fixed volume. Using the volume rocker will cause the volume display to increase and decrease, but the actual volume will not change unless you change the volume to 00/30, at which point the sound will mute. If the bug doesn't show up, repeat steps 3 through 6 until the issue shows up. You don't need to reboot in between attempts.
Interestingly, volume control still works if you go back to the youtube video. The issue shows up when using the loudspeaker as well as when using headphones. If nobody else can reproduce it, we can start trying to figure out if it's certain music file types or something that cause it. Diagnostic information below:
Model: NOKIA Lumia 920 Carrier: AT&T
OS Version: 8.0.9903.10 Firmware revision number: 1232.2109.1242.1001 Hardware revision number: 1.0.0.0 Radio software version: 1.0.202041.3 Chip SOC version: 8960
Thank you,
Omkar KandarpaI've had the same problem. The screen won't blank during a call (like the proximity sensor isn't detecting my face/finger/hand). I keep hanging up on people with my ear. I've taken to locking my screen before putting it to my ear but anytime I get another call / text / voicemail / calendar notification / alarm while i'm on the phone (which happens a lot still) it lights the screen up again and makes it where i'm able to hang up with my ear.
I've factory reset, and had the phone replaced TWICE already. I'm on my 3rd Lumia 920 (and they all have the same issue!) This didn't happen until the most recent firmware update...so I think it was a problem created when they were trying to fix the other proximity sensor issue where the screen stayed on black all the time during a call.
Rebooting does fix the problem temporarily, but it always comes back. I'm tired of hanging up on people and hoping for a new model device from AT&T but they're giving me **bleep** at the moment.
TLDR: Factory reset, replacement devices don't fix the problem. It's a firmware bug. I'm on my 3rd 920 with the same issue. Extraordinarily frustrating. -
hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine. now though the pages just load very very slowly or load leaving out certain pictures and video content. i've tried clearing my cache's and cookies, resetting my browser etc, but it seems like its a system issue as both safari and firefox are having issues. i've run Avast to screen for malware and it came up empty. any suggestions?
10.4.8's been a pain for Networking... not sure of all the reasons though, or whether all the complaints might not be MS working around Bugs/Non-compliance, but at this point I think you should get Applejack...
http://www.versiontracker.com/dyn/moreinfo/macosx/19596
After installing, boot holding down CMD+s, then when the prompt shows, type in...
applejack AUTO
Then let it do all 5 of it's things.
Fixes a lot of problems, and besides, if your Mac ever gets to the point it won't Boot... this is a life saver!
After you run that... let's see where we are.
BTW, several ISPs seem to have trouble with their DNS Servers lately, might try these insead...
208.67.222.222
208.67.220.220 -
Hi,
I HAVE A SATELLITE L505D-G6000 RUNNING WINDOWS HOME PREMIUM 6.1.7600. WEBCAM IS BUILT IN USB2.0 UVC WEBCAM MANUFACTURED BY MICROSOFT IN 2006 SO APPEARS TO BE A BASELINE PRODUCT. BOUGHT 8 MAY OF THIS YEAR. WEBCAM WORKED PERFECTLY. NOW WEBCAM DOESN'T WORK. I'VE DONE ALL THE STANDARD UNINSTAL/RE-INSTALL OF THE DRIVER OR MORELESS THE "TOSHIBA WEBCAM APPLICATION". I'VE ELECTED UPDATE DRIVER AND ITS GONE TO THE MICROSOFT SITE AND STATED IT WAS THE MOST UPDATED. I'VE COME TO THIS SITE AND DOWNLOADED THE WEBCAM UPDATE POSTED AUGUST OF LAST YEAR, TO NO AVAIL, NOTHING.
I HAVE VERIFIED THROUGH THE DEVICE MANAGER IT'S INSTALLED AND ACCORDING TO IT THE DEVICE IS WORKING PROPERLY. SKYPE NOR FACEBOOK CAN FIND IT. WHEN I OPEN THE TOSHIBA APPLICATION, THE PRETTY BLUE LIGHT ON TOP OF THE SCREEN COMES ON, THE VIEW BOX OPENS AND ITS PITCH BLACK.
ANY HELP WOULD BE GREATLY APPRECIATED AS THIS IS THE 3RD TOSHIBA IN A ROW I'VE BOUGHT DONE BASIC OPS ON AND THEY STOP OPERATING DEVICES I'M NOT USING. THIS ONE IS IN FACT A FREE REPLACEMENT OF THE LAST ONE THAT BURNT UP AS THE FAN COULDN'T KEEP IT COOL ENOUGH. LIL FRUSTRATED SORRY. THANKS AND HOPE SOMEONE CAN HELP ME FROM HAVING TO GO 2 MONTHS WITHOUT MY COMPUTER AGAIN WHILE THEY SEND IT AWAY TO BE WORKED ON.
CHUCK YAGERSatellite L505D-GS6000
Perhaps you mean you have the Satellite L505D-GS6000? Let's try a reinstall of the main base drivers, then the webcam driver/app, one more time. Download and install these drivers in this order:
AMD/ATI Display Driver for Windows 7 (32/64) v8.634.1
Realtek Audio Driver for Windows 7 (32/64)(v6.0.1.5904)
Toshiba Web Camera Application for Windows XP/7 (32/64)(v1.1.1.6)
Then try the webcam again. Please let us know if it works, or if you get any error messages trying the above reinstalls. Good luck
Mike -
sir i have problem related to web cam .after clicking on web cam icon there is no process ,so that is not working
OK...here is doc, what will help you will basic t/s for the issue....http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=en&cc=us&docname=c02452221
If the above does not help, What I would like to know is if the issue is with multiple application? What happens when you try and use the webcam using those applications....
Although I am an HP employee, I am speaking for myself and not for HP.
Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
Click on the BLUE KUDOS button on the left to say "Thanks" -
My web cam is not working no video
Hi ,
My web cam on my hp laptop G72_257CL is not working.Please help me.just pry (pull) up the frame around the top and sides. You do not need to pry out the bottom of the frame. Use your
fingernails under the inside edge of the frame, they have some double sided tape, so it might be a little tough to pry. Pry it
slowly so the tape can separate on its own. Don't force it quickly or you might damage it. Make sure you're not prying the
silver metal frame of the lcd screen, only the black plastic frame. There are some plastic hooks that will make a snap
sound when you pry the frame out, it'll take some force, so don't be afraid if you hear the snap sounds, it should be able
to snap back together if you did it correctly, otherwise you might have to use some tape to tape the frame back,
Once you've pryed out the top of the frame and have access to the webcam module, you
should see the cable going into it from the bottom, push the cable into the webcam, then see if the problem is solved,
the cable most likely just came loose. If that solved the problem, I suggest using something you can remove, like hot
glue to hold it together, just in case the webcam really needs to be replaced, you can melt the glue off and swap it out.
webcam itself somehow got damaged?, which is very unlikely
THANKS
REGARDS: PROFESSORTOM
(NOTE)
PLEASE DO THIS AT YOUR OWN RISK -
I downloaded a updated version of the web cam installed on my laptop, it was a version 5, this is what I was told that would come with the laptop, is was a 15 day trial, I decided I didn't want to purchase it, and now my web cam is not working
Hi,
You may have a virus on your PC. Review this NBC Nightly news article.
HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
HP Photosmart Premium C309G, HP Photosmart 6520
HP Touchpad, HP Chromebook 11
Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
Windows 7/8 UEFI/Legacy mode, MBR/GPT -
Help, web cam is not working properly with win vista
Hii.. my web cam is not working properly with win vista..even if the icon appears bt it does nt start.. its
lenovo easy capture 2.5...so if u cud suggest me anything...
Moderator note; subject editedre-install drivers and try again. ( also easy capture )
-
Satellite L500 - Web Cam is not working
Hi.
My notebook have a built in camera, and this camera thos not inicialize,
I ave done a HDD recovery, and after that the web camera software was not installed. I downloaded de this software an the camera drivers and instaled it in the laptop, but the camera, but the camera doesn't work any way.
There are some way to fix it?
Thank you.The question is: is cam hardware recognized and detected by the system or not?
Can you see it in device manager? -
My integrated web cam is not working
I Am using hp pavilion p001tx laptop. My web cam is not working
It shows a warning
No web cam detected. Try to plugging in a webcam into your computer now. If you are using an integrated camera, Make sure that it is turned on.
Help me please.
My laptop serial number is [Personal Information Removed]Check if the drivers are installed or not.
Try to update the camera drivers and restart the system.
You can also go to device manager setting and see if the webcam is disabled or not.
If everything fails try system resore or run OS recovery. -
Satellite T210 - web camera is not working - cloud image appears
Hi,
My web camera (it is incorporated on my computer) is not working.
When I turn it on it appears a blue light (informing that it is connected) but it is not taking pictures or videos regardless I am using skype or I am just using the webcam without being on a specific program. Only appears a image with clouds!
Any suggestions?
RegardsUse please option effect in Web camera applications and click on tab called screen cover.
Be sure there is enabled option ON.
Please check it and post some feedback.
Maybe you are looking for
-
Can I activate the Cloud software on more than one computer? [was:Gerry]
I purchased a single user PS CC license last year. During the interim the nature of my work has neccesitated that I have to work at two sepearte offices (one at home and one at my formal offices). Is it possible to "switch" the license to the differe
-
Error when publishing web templates in the portal
hi Gurus, I am getting this error when I try to publish my web report on the portal, Field E_SX_META_DATA not a member of OUTPUT. Can anyone please let me know how to go about fixing this error ? Thanks in advance, Nip
-
My ipad2 was stolen a week ago? Can you help me what to do to blocked my ipad and not be used by anyone? I used different address and i even not put any password lock ang Find my iphone is on? also the location area is not on? please help? Thanks a l
-
New logic board and now i-tunes music store and i-disk not able to connect
Hi, My poor MBP died a few weeks ago - the Logic board went and took the Apple RAM with it (the Crucial one stayed fine!). As it's only six months old it has been fixed under warranty. However.... I've just tried to play some purchased music from i-t
-
Opening balance for Trial balance report
Hello Experts, I have requirment to develop a Trial Balance report with the colum like Opening Balance, Transaction Debit,Transactoin Credit and closing balance. I am trying to get opening balance from the Table FAGLFLEXT. how can I get the opening