These are chat archives for WritingMinds/ffmpeg-android-java

24th
Nov 2016
Suresh Kumar Sivasankaran
@Sureshkumars
Nov 24 2016 13:47
How can I add multiple text overlays with drawtext filter
Currently it's working fine with one text but in case if I add one more its not processing
String[] command = new String[]{
"-i",
"/storage/emulated/0/videokit/abcdd.mp4",
"-vf",
"drawtext=enable=\'between(t,2,5)\': fontfile=/storage/emulated/0/videokit/XrayTed.ttf: text=\'Suresh\': fontcolor=white: fontsize=24: box=1: boxcolor=black: x=(w-text_w)/2: y=(h-text_h-line_h)/2",
"-acodec:",
"copy",
"/storage/emulated/0/videokit/out1.mp4"};
The above command works fine for single text how can I use it for multiple texts
String[] command = new String[]{
"-i",
"/storage/emulated/0/videokit/abcdd.mp4",
"-vf",
"drawtext=enable=\'between(t,2,5)\': fontfile=/storage/emulated/0/videokit/XrayTed.ttf: text=\'Suresh\': fontcolor=white: fontsize=24: box=1: boxcolor=black: x=(w-text_w)/2: y=(h-text_h-line_h)/2",
"-acodec:",
"copy",
"/storage/emulated/0/videokit/out1.mp4"};
@hiteshsondhi88
@pjjaddy_twitter
Suresh Kumar Sivasankaran
@Sureshkumars
Nov 24 2016 14:25
I got it working using [in] and [out] !