tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.87k stars 791 forks source link

Unknown encoder 'libx265' - Android Test App #523

Closed deepattwoiq closed 4 years ago

deepattwoiq commented 4 years ago

Description

I tried running test android app on my nokia 3.1 Android 10 Device. My goal is to compress Video with HEVC H,265.

Expected behavior It should encode video to provided options

Current behavior But it only works for mpeg4 not for x264 or x265. It says Encode failed. Please check logs for detail.

Logs attaching debuglog from android studio https://ghostbin.co/paste/s2f3d

Environment

tanersener commented 4 years ago

Try to install one of the GPL licensed mobile-ffmpeg packages. x264 and x265 is enabled only in them.

deepattwoiq commented 4 years ago

Thank you very much for prompt reply.

Could you please tell me which are GPL licensed packages? And what will be the procedure to add them into my project. Or any document reference where I can get that information.

Thanks in advance.

tanersener commented 4 years ago

Please read the README. 2.1 Packages sections lists all the packages and 2.2 Android section explains how a package can be installed.

deepattwoiq commented 4 years ago

Yes Its done. Now it sounds naive question but I am glad I asked. Thanks a lot.

For future reference It requires Minimum SDK Version 24 - Android-7

tanersener commented 4 years ago

You have two options there. See 4. LTS Releases

deepattwoiq commented 4 years ago

That seems the exact thing I wanted. Thanks @tanersener Now Only thing I wish for is to reduce apk size !!