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):
On Thu, Jan 19, 2017 at 14:31:30 -0800, dinizthiagobr wrote:
> I figured out the first issue, android's rotation metadata was screwing
> everything up, so I cleared all metadata then rotated accordingly to
> original rotation metadata
We might have figured it out, had you shown us the console output from
your command. There's so much useful information in it, honestly!
> + fontFilePath + ":text=" + _caption + ":x=15:y=15:fontsize=30:box=1");
> Now looking to solve the second issue, *I want the top border/pad to be
> bigger than the rest*, couldn`t figure this one yet. :)
Well, what you're doing is padding something originally 640x640, and putting it on
a 670x670 canvas, with an offset of 15, which is exactly in the middle
((670-640)/2 = 15). If you want the top border to be larger, increase
the canvas and the offset, e.g.:
or just put the overlay lower:
It really depends on what you're trying to achieve (exactly).