Skip to content

cf_video_encoder_set_quality

Category: video
GitHub: cute_video.h


Trades file size against picture quality.

void cf_video_encoder_set_quality(CF_VideoEncoder* encoder, int quality);
Parameters Description
encoder The encoder.
quality 0 to 100. 50 is the default and a sane middle; 100 is exactly lossless.

Remarks

Call this before the first frame -- changing it partway through applies from that point on, which is legal but rarely what anyone means. Lossless is not "very good", it is bit-for-bit perfect and enormous, tens of times the size of quality 99. It exists for intermediate files that will be re-encoded, not for shipping.

CF_VideoEncoder
cf_make_video_encoder
cf_video_encoder_add_frame