I need to paint an image with text in the center via command-line to further put into the video. A simple yellow text on black background.
I tried FFmpeg
way:
ffmpeg -loop 1 -r 1 -i b.png -b:v 1M -vf "scale=320:240, drawtext=fontfile=/usr/share/fonts/truetype/DejaVuSans.ttf: text='Test Text'" -vcodec mpeg4 -acodec aac preroll.mp4
Which gave me the following error:
[AVFilterGraph @ 0xf56020] No such filter: 'drawtext'
I tried to install ivtools and tried drawtool
and idraw
which are obviously for desktop environments.
How to create a simple image with text in Ubuntu programatically?