throws EncoderInitializationException {
super(out, source, videoSharingSession);
int errorNumber;
if (!isInstalled())
throw new EncoderInitializationException(
new XugglerNotInstalledException());
container = IContainer.make();
initializeContainer(preferences
.getString(PreferenceConstants.XUGGLER_CONTAINER_FORMAT),
preferences.getString(PreferenceConstants.XUGGLER_CODEC));
useVBV = preferences.getBoolean(PreferenceConstants.XUGGLER_USE_VBV);
if ((errorNumber = container.open(out, containerFormat)) < 0)
throw new EncoderInitializationException(IError.make(errorNumber)
.getDescription());
IStream stream = container.addNewStream(0);
coder = createCoder(stream, codec, height, width, framerate);