code: public static Codec getEncoderById(CodecID codecId) throws JavaAVException {
  		if (codecId == null)
  			throw new NullPointerException("CodecID is null.");
  
  		AVCodec avCodec = avcodec_find_encoder(codecId.value());
  
  		if (avCodec == null || avCodec.isNull())
  			throw new JavaAVException("Encoder not found: " + codecId.toString());
  
  		Codec codec = new Codec();
  		codec.avCodec = avCodec;
  
  		return codec;
  	}
docs: Create a new encoder with specified codec id.
  
  @param codecId the codec id.
  
  @return a new encoder.
  
  @throws JavaAVException if encoder could not be created.