This is my sample code.
private fun addTextProcess(imagePath: String) {
val outputPath = Common.getFilePath(this, Common.IMAGE)
val dateString = Date().dateToString("yyyy-MM-dd HH:mm:ss.SSS")
val fontPath = Common.getFileFromAssets(this, "roboto_regular.ttf").absolutePath
val query = ffmpegQueryExtension.addTextOnVideo(imagePath, dateString,
0.0f,
0.0f,
fontPath = fontPath,
isTextBackgroundDisplay = false,
fontSize = 30,
fontcolor = "red",
output = outputPath
)
CallBackOfQuery().callQuery(query, object : FFmpegCallBack {
override fun process(logMessage: LogMessage) {
Log.d("Dalibor", logMessage.text)
}
override fun success() {
Log.d("Dalibor", "Sucess")
}
override fun cancel() {
addTimeStampToPhotos()
}
override fun failed() {
addTimeStampToPhotos()
}
})
}
Describe the bug

I changed
AddTextOnVideofeature to add text on Image.Here are queries. but when I run this command, I can see error
ffmpeg error initializing filter 'drawtext' with argsPlease help me
This is my sample code.