Updated: October 28, 2024 |
The video compression formats used by the video encoder
#include <camera/camera_api.h>
typedef enum { CAMERA_VIDEOCODEC_NONE = 0, CAMERA_VIDEOCODEC_AVC1, CAMERA_VIDEOCODEC_H264 } camera_videocodec_t;
This consists of an H.264 elementary stream preceded with a 32-bit length. This is the value you need to use if using CAMERA_ROLL_VIDEO_FMT_MP4 for recording H264 content to a file.
This consists of an H.264 elementary stream preceded with a 32-bit 0x1 start code. This is typically the preferred format when streaming H.264 video over a network.