I'm trying to use the drawtext filter in ffmpeg to add text to a video, but depending on the frame size, the text can either be too large (parts of it not even in the video frame) or too small (barely readable). Is there a way I can make the text automatically resize itself to perfectly fit the frame?
Here I am using to just put text in the top middle right now:
ffmpeg -i input.jpg -vf "drawtext=font='Impact': text='Test Text': fontcolor=white: borderw=3: fontsize-75: x=(w-tw)/2:y=h/12-th/2" output.jpg
Thanks in advance for anyone who helps.