befovy / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support. Backend for https://github.com/befovy/fijkplayer, fijkplayer 的播放内核
GNU General Public License v2.0
155 stars 92 forks source link

[HELP] Enabling Mediacodec #88

Open mohannadjamal opened 1 year ago

mohannadjamal commented 1 year ago

Hello, I have been using Fijkplayer for flutter, and have been setting mediacodec option to 1 to solve an issue of video/audio being out of sync, but it causes some of the streams to not render correctly, displaying green screens with artifacts.

I wanted to try enabling Mediacodec in ffmpeg config by using flag --enable-mediacodec which requires enabling jni by using flag --enable-jni, but that gives me an error of "ERROR: jni not found". I have checked if it's present and it is in libavcodec directory.

Do I need some kind of include in the config to it's path?