Just a test for using [FFmpeg Android Java]
The link is ffmpeg-android-java, and the gradle dependency is on [writingminds.github.io/ffmpeg-android-java] (http://writingminds.github.io/ffmpeg-android-java/)
test日志完成情况
- 选择视频返回视频路径到剪切板
- 权限判断,参考了PermissionDispatcher库。
Caption
The test will not updated at all,the use of ffmpeg can be found in ffmpeg-android-java. The key is as follows:
- According to the cpu arch ,copy the executable file which is compiled ffmpeg from assert to app-file which called F.
- Enter param and Add the F's absolutely path to string[] param,the api is :
String[] ffmpegBinary = new String[] { FileUtils.getFFmpeg(context, environvenmentVars) };
String[] command = concatenate(ffmpegBinary, cmd);
- Finally, run
Process process = Runtime.getRuntime().exec(commandString)