ffmpeg-android-java icon indicating copy to clipboard operation
ffmpeg-android-java copied to clipboard

How to remove X86

Open Wudelin opened this issue 5 years ago • 1 comments

Wudelin avatar Dec 18 '19 06:12 Wudelin

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

MriDx avatar Apr 06 '20 12:04 MriDx