Skip to content

cf_video_encoder_data

Category: video
GitHub: cute_video.h


The .mp4 bytes, without writing a file.

const void* cf_video_encoder_data(CF_VideoEncoder* encoder, int* size);
Parameters Description
encoder The encoder.
size Out parameter for how many bytes.

Return Value

Returns bytes owned by the encoder, or NULL on failure.

Remarks

Invalidated by the next call to cf_video_encoder_add_frame or cf_video_encoder_data. Useful for uploading a replay rather than saving it.

CF_VideoEncoder
cf_video_encoder_save
cf_make_video_from_memory