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

10th
Apr 2016
Eugene
@es-andreev
Apr 10 2016 08:47

@hiteshsondhi88 Hi! I have compiled ffmpeg with FONTCONFIG_FILE provided, and I successfully run with adb run-as my_package
/data/data/my_package/files/ffmpeg -i /data/data/my_package/files/file.mp4 -vf drawtext="fontfile=/data/data/my_package/file=/data/data/my_package/files/my_font.ttf:text=test" /data/data/my_package/files/tmp.gif
but when I try to exec command
"/data/data/my_package/files/ffmpeg"
"-i"
"/data/data/my_package/files/file.mp4"
"-vf"
"drawtext="fontfile=/data/data/my_package/files/my_font.ttf:text=test""
"/data/data/my_package/files/tmp.gif"
I get
[Parsed_drawtext_0 @ 0xb81c3380] Could not load font ""fontfile=/data/data/tv.gifka/files/assets/fonts/RobotoRouble-Medium.otf": cannot open resource
Fontconfig error: Cannot load default config file
[Parsed_drawtext_0 @ 0xb81c3380] Cannot find a valid font for the family Sans
[AVFilterGraph @ 0xb81bcd30] Error initializing filter 'drawtext' with args '"fontfile=/data/data/tv.gifka/files/assets/fonts/RobotoRouble-Medium.otf:text=fewgfwegf"'
Error opening filters!

Have any suggestions?