Configure the video encoder parameters
#include <camera/camera_encoder.h>
camera_set_videoencoder_parameter(camera_handle_t handle, args...)
Use this function to configure the video encoder before you start to encode or record video. To encode or record video, call the camera_start_video() or the camera_start_encode() function. The parameters that you can configure depend on the codec you selected using camera_set_video_property().
Multiple parameter-value pairs are delimited using a comma. The parameter that you choose depends on the video codec you want to use. For example, for the H.264/AVC codec, you use the parameter enumerations defined in camera_h264avc_parameters_t enumerated type and the correct type for the value, such as an int or double.
camera_set_videoencoder_parameter( camera_handle, CAMERA_H264AVC_BITRATE, 1000000, CAMERA_H264AVC_KEYFRAMEINTERVAL, 60, CAMERA_H264AVC_RATECONTROL, CAMERA_H264AVC_RATECONTROL_CBR, CAMERA_H264AVC_PROFILE, CAMERA_H264AVC_PROFILE_HIGH, CAMERA_H264AVC_LEVEL, CAMERA_H264AVC_LEVEL_4 );
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.