Skip to content

cf_video_encoder_save

Category: video
GitHub: cute_video.h


Writes everything compressed so far as an .mp4 file.

CF_Result cf_video_encoder_save(CF_VideoEncoder* encoder, const char* virtual_path);
Parameters Description
encoder The encoder.
virtual_path Where to write it. See Virtual File System.

Return Value

Returns any error that stopped the file being written.

Remarks

The encoder is still usable afterwards; adding more frames and saving again writes a longer file. A path ending in .h264 or .264 writes the raw stream instead of an MP4, which is what a command line tool expects to be piped.

CF_VideoEncoder
cf_video_encoder_add_frame
cf_video_encoder_data
cf_make_video