bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
739 stars 175 forks source link

Is the library support drawtext? #50

Closed mwshubham closed 6 years ago

mwshubham commented 6 years ago

I was applying filter on image and got Option 'drawtext' not found everything else seems to be ok. Following is my current command.

Error initializing filter 'scale' with args '-1:480: drawtext="text=WedMojo: fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2":flags=bicubic'

mwshubham commented 6 years ago

Problem was in the writing the correct command.

 commandList.add("-filter_complex")
 commandList.add("drawtext=text=TEXT_SAMPLE:fontcolor=white:fontfile=${fontFile.path}:fontsize=30:x=w-tw-20:y=h-th-20")

This work for me i think the arguments are seprated by , (comma)