R
Roedy Green
I have written a simple little program based on Knute's Webcam
that just takes a snap from a video camera and saves it to disk.
grabber = (FrameGrabbingControl)player.getControl(
"javax.media.control.FrameGrabbingControl");
System.out.println( "grabber:" + grabber );
grabber:com.sun.media.renderer.video.GDIRenderer@7109c4
It works fine with RGB formats, but with YUV, I just get an empty
buffer on
javax.media.Buffer buf = grabber.grabFrame();
System.out.println("raw:" + buf.getLength() );
The problem is cheap webcams don't support RGB formats.
that just takes a snap from a video camera and saves it to disk.
grabber = (FrameGrabbingControl)player.getControl(
"javax.media.control.FrameGrabbingControl");
System.out.println( "grabber:" + grabber );
grabber:com.sun.media.renderer.video.GDIRenderer@7109c4
It works fine with RGB formats, but with YUV, I just get an empty
buffer on
javax.media.Buffer buf = grabber.grabFrame();
System.out.println("raw:" + buf.getLength() );
The problem is cheap webcams don't support RGB formats.