ffmpeg subtitles alignment and position

后端 未结 3 1831
一向
一向 2021-02-09 05:02

I am adding subtitles to a video using:

ffmpeg -i \"imput.mp4\" -lavfi \"subtitles=subtitles.srt:force_style=\'OutlineColour=&H100000000,BorderStyle=3,Outlin         


        
3条回答
  •  时光说笑
    2021-02-09 05:48

    Turns out the trick for doing this is to add Alignment=0. Then you can use MarginV and MarginL freely:

    ffmpeg -i "imput.mp4" -lavfi "subtitles=subtitles.srt:force_style='Alignment=0,OutlineColour=&H100000000,BorderStyle=3,Outline=1,Shadow=0,Fontsize=18,MarginL=5,MarginV=25'" -crf 1 -c:a copy "output.mp4"
    

提交回复
热议问题