cf_make_video_encoder¶
Category: video
GitHub: cute_video.h
Creates an encoder that turns images into an H.264 video.
| Parameters | Description |
|---|---|
w |
Width in pixels. Must be even -- 4:2:0 video cannot express an odd dimension. |
| Sizes that are not multiples of 16 are fine; they are padded internally and | |
| cropped back by the stream itself. | |
h |
Height in pixels. Must be even. |
fps |
Frames per second the result should play at. |
Return Value¶
Returns the encoder, or NULL on failure -- call cf_video_error for the reason.
Remarks¶
Every frame handed over must be exactly w by h. Free it with
cf_destroy_video_encoder.
Related Pages¶
CF_VideoEncoder
cf_video_encoder_update
cf_video_encoder_add_frame
cf_video_encoder_save
cf_video_encoder_set_quality