[FFmpeg-user] DrawText Not Drawing from top-left (0,0)
dinizthiagobr
dinizthiagobr at gmail.com
Thu Jan 19 03:23:06 EET 2017
Hey,
So I`m trying a pretty common task, draw a text on the *top-left* of my
video (0,0), but for some reason it draws on the *top-right*, and the text
is written vertically for some reason, I want it to be written horizontally.
Here`s the code I`m using (Xamarin Android):
List<string> cmd = new List<string>();
cmd.Add("-i");
cmd.Add(GetPathToImage(this.ApplicationContext, videoUri));
cmd.Add("-vcodec libx264 -acodec aac -strict -2 -ar 44100 -r
30");
cmd.Add("-vf");
cmd.Add("scale=720:368,pad=750:398:15:15:white,drawtext=fontfile="+fontFilePath+":text=AAAA:x=0:y=0:fontsize=30:box=1");
cmd.Add(croppedVideoPath);
Additionally, I`m using *pad* to create a white border on my video, but I
want the top border to be bigger than the rest, how can I achieve that?
Thank you,
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/DrawText-Not-Drawing-from-top-left-0-0-tp4678874.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list