cropsly / ffmpeg-android

FFmpeg for Android compiled with x264, libass, fontconfig, freetype, fribidi and lame (Supports Android 4.1+)
http://writingminds.github.io/ffmpeg-android/
Other
1.63k stars 415 forks source link

Fail to load font and add subtitle #73

Closed tzutalin closed 7 years ago

tzutalin commented 7 years ago

Hi, Thanks for building the prebuilt binaries. The basic sample commands can work on my arm device. However, I tried to add subtitles to my video, then it fails. Do you have any idea?

OS: Anroid L CPU arch: Arm I push fonts.conf to /sdcard/ and assign it to FONTCONFIG_FILE, then run it using below commands:


$ FONTCONFIG_FILE=/sdcard/fonts.conf ./ffmpeg -i /sdcard/test.mp4 -vf subtitles=/sdcard/sample.srt /sdcard/output.mp4

Error logs:

[Parsed_subtitles_0 @ 0xb836e8d0] No valid fontconfig configuration found!
[Parsed_subtitles_0 @ 0xb836e8d0] can't find selected font provider
tzutalin commented 7 years ago

Fixed. The fonts.conf I download is invalid.

uscmsr commented 7 years ago

What fonts.conf file did you end up using?

uscmsr commented 7 years ago

nvm. see issue #18