Build FFMPEG with x264 for Android

后端 未结 6 2063
长发绾君心
长发绾君心 2020-12-29 09:48

I am trying to build FFMPEG with libx264 for Android.

I can successfully build and use FFMPEG for Android but I realized that I need the ability to encode, therefore

6条回答
  •  清酒与你
    2020-12-29 10:00

    I had the same problem. But after downgrading NDK to version 5c it works as described by halfninja. (ubuntu 64bit). there seem to be some changes in the toolchain from 5 to 7.

    timo@serverplusplus:/tmp/android-ffmpeg-x264/Project/jni$ ndk-build 
    Compile thumb  : ffmpeg <= ffmpeg.c
    Compile thumb  : ffmpeg <= cmdutils.c
    Executable     : ffmpeg
    Install        : ffmpeg => libs/armeabi/ffmpeg
    Compile thumb  : videokit <= uk_co_halfninja_videokit_Videokit.c
    Compile thumb  : videokit <= ffmpeg.c
    Compile thumb  : videokit <= cmdutils.c
    SharedLibrary  : libvideokit.so
    Install        : libvideokit.so => libs/armeabi/libvideokit.so
    

提交回复
热议问题