Configure the output properties for video recording and encoding
#include <camera/camera_api.h>
camera_error_t camera_set_video_property(camera_handle_t handle, args...)
Ensure that you call this function before you start a video encoding or recording.
CAMERA_IMGPROP_STABILIZATION may impact the field-of-view of the viewfinder. You may want to apply this setting prior to starting the viewfinder.
camera_set_video_property( camera_handle, CAMERA_IMGPROP_WIDTH, 720, CAMERA_IMGPROP_HEIGHT, 1280, CAMERA_IMGPROP_ROTATION, 270, CAMERA_IMGPROP_FRAMERATE, (double)30.0 );
You should determine whether the CAMERA_FEATURE_PREVIEWISVIDEO property is available using the camera_has_feature() function before configuring the video output properties. If this feature is available, then the camera does not provide independent video and viewfinder image streams.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.