How to use ffmpeg to add a text to avi video?

前端 未结 1 1541
花落未央
花落未央 2021-02-06 17:16

I am trying to put a simple text on the bottom of video using ffmpeg on Ubuntu 12.04 . I tried this which is suggested in several places:

ffmpeg -i input.avi -vf         


        
相关标签:
1条回答
  • 2021-02-06 17:42

    The documentation shows that you can use other parameters with x or y such as input video height and width and text width and height. To place the text on the bottom one method is y=main_h-text_h. If you want a little padding on the bottom you can use y=main_h-(text_h*2) To center it horizontally use x=(main_w/2-text_w/2).

    0 讨论(0)
提交回复
热议问题