[FFmpeg-user] DrawText Not Drawing from top-left (0,0)

dinizthiagobr dinizthiagobr at gmail.com
Fri Jan 20 00:31:30 EET 2017


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

int rotationMetaData =
System.Convert.ToInt32(m.ExtractMetadata(Android.Media.MetadataKey.VideoRotation));

if (rotationMetaData == 0)
                   
cmd.Add("scale=640:640,pad=670:670:15:15:white,drawtext=fontfile=" +
fontFilePath + ":text=" + _caption + ":x=15:y=15:fontsize=30:box=1");

if (rotationMetaData == 90)
                   
cmd.Add("scale=640:640,transpose=1,pad=670:670:15:15:white,drawtext=fontfile="
+ 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. :)



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/DrawText-Not-Drawing-from-top-left-0-0-tp4678874p4678887.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list