android-ffmpeg-cmdline icon indicating copy to clipboard operation
android-ffmpeg-cmdline copied to clipboard

Could not exec "drawtext" command

Open nguyenkhanhhoa87 opened this issue 11 years ago • 1 comments

I tried to execute command "drawtext" by hard code in function create() of class FfmpegJob.java but the output file always is 0.0bytes.

cmd.add(mFfmpegPath); cmd.add("-y");
cmd.add("-i"); cmd.add(inputPath); cmd.add("-vf"); cmd.add("drawtext="fontfile=/storage/emulated/0/videokit/AndroidClock.ttf:text=’All Rights Reserv'""); cmd.add(outputPath);

nguyenkhanhhoa87 avatar Feb 25 '14 04:02 nguyenkhanhhoa87

Typically, ffmpeg is compiled with FreeType in order to support subtitles. This build script does not build that library and I think that is probably your problem.

Unfortunately, I don't really have time to work on this project at the moment so for now you will have to find a fix yourself.

JayH5 avatar Mar 02 '14 20:03 JayH5