Closed NikitaFilipchuk closed 8 months ago
This is possible by setting the video filter.
new FFmpegBuilder()
.addInput("input.mp4")
.addOutput("output.mp4")
.setVideoFilter("drawtext=\"fontfile=/path/to/font.ttf: text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2\"")
.setAudioCodec("copy")
.done()
.build();
I need to add text on video in random time. Something like this example (click)
Can I do something like this with your library?