Sayed M. Idrees
Sayed M. Idrees

Reputation: 1408

Flutter ffmpeg_kit_flutter not able to DrawText over video

I am Trying to overlay text over the Video using ffmpeg dependency. i have tried many options, but my most recent commands are as follows,

await FFmpegKit.execute(
        '-i $path -vf "drawtext="fontfile=TiktokFont.ttf:text=\'Stack Overflow\':fontcolor=white:fontsize=24:box=1:[email protected]:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2"" -codec:a copy  "$outputPath"')

My pubspec Dependency:

ffmpeg_kit_flutter: ^4.5.1

But the result is always like this.

Error : No such filter: 'drawtext'

Solutions Tried:

All of them give me same result as follows screenshot. [Logs]

enter image description here

Upvotes: 1

Views: 1625

Answers (2)

Dan Harms
Dan Harms

Reputation: 4840

ffmpeg_kit_flutter installs the https package by default. Try using the full package instead.

dependencies:
  ffmpeg_kit_flutter_full: ^4.5.1

You can see all the available packages here and detailed installation instructions here.

Upvotes: 1

HPanda
HPanda

Reputation: 33

ffmpeg_kit_flutter_video is enough for using drawtext filter. I just found it out with try and error. All available sub packages are listed here.

Upvotes: 0

Related Questions