cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.32k stars 831 forks source link

How to remove X86 #348

Open Wudelin opened 4 years ago

MriDx commented 4 years ago

i removed x86

  1. add return "return CpuArch.NONE;" in "CpuArchHelper.java" if (Build.CPU_ABI.equals(getx86CpuAbi()) || Build.CPU_ABI.equals(getx86_64CpuAbi())) { //return CpuArch.x86; return CpuArch.NONE; }

  2. comment down x86 in "CpuArch.java" //x86("0dd4dbad305ff197a1ea9e6158bd2081d229e70e"), ARMv7("871888959ba2f063e18f56272d0d98ae01938ceb"), NONE(null);

  3. comment down case 86 in "FFmpeg.java" switch (CpuArchHelper.getCpuArch()) { /*case x86: Log.i("Loading FFmpeg for x86 CPU"); cpuArchNameFromAssets = "x86"; break;*/ case ARMv7: Log.i("Loading FFmpeg for armv7 CPU"); cpuArchNameFromAssets = "armeabi-v7a"; break; case NONE: throw new FFmpegNotSupportedException("Device not supported"); }

  4. and finally delete 'ffmpeg' from 'assets/x86' directory

now run build. it worked for me