I use the FFmpeg library and I have an object of AVFrame
which uses the format AV_PIX_FMT_YUV420P
. I'd like to put a text on such frame in a given location, font size etc.
I cannot find a proper API in FFmpeg library to do it, there is a function drawtext
, but it's a static function inside a .c file (not a header).
How to do it with FFmpeg and if it's not possible, what other library I should use instead?