<div dir="ltr"><div>Hi ,</div><div><br></div><div><span style="color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px">What is the best way to add a diagonal text to a video using ffmpeg ?</span><br></div><div><span style="color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px">With the following command i am able to add a horizontal text to the video.</span><br></div><div><br></div>ffmpeg -re -i ./input.mp4 -vf "drawtext="fontsize=15:fontfile=FreeSerif.ttf:text="WATERMARK TEXT":y=h/2:x=50:fontcolor=green:fontsize=40"" -f mp4 ./output.mp4<br><div><br></div><div>I can overlay with an image containing diagonal watermark text to a video but i dont want to use an image but use just a text. </div><div><br></div><div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px">Will it be possible for me to add the text diagonally to a video using drawtext filter ? </p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px">-Ram</p></div></div>