Updated: October 28, 2024 |
Instruct the video encoder to generate a keyframe on demand when encoding video
#include <camera/camera_api.h>
camera_error_t camera_force_video_keyframe(camera_handle_t handle)
Typically, you would request a new keyframe when an error occurs while encoding video, such as a network or system error. The new keyframe allows you to recover from the error as quickly as possible.
Call this function only after the video encoder has been started with a call to camera_start_video() or camera_start_encode().
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.