IContainer container = IContainer.make();
// Devices, unlike most files, need to have parameters set in order
// for Xuggler to know how to configure them. For a webcam, these
// parameters make sense
IContainerParameters params = IContainerParameters.make();
// The timebase here is used as the camera frame rate
params.setTimeBase(IRational.make(30,1));
// we need to tell the driver what video with and height to use
params.setVideoWidth(320);
params.setVideoHeight(240);
// and finally, we set these parameters on the container before opening
container.setParameters(params);
// Tell Xuggler about the device format