android-gpuimage-plus
android-gpuimage-plus copied to clipboard
FFmpeg
How can i use ffmpeg in the library. For example, I want to join the file
It's open source now.
How to use it? I want to execute some ffmpeg commands @wysaid
@Sp4Rx @iigacon You can compile the jni module with ffmpeg, and add the ffmpeg-command feature: https://github.com/wysaid/android-gpuimage-plus/issues/269
I can do that later, but you can do it yourself if you really need it for now.
What I want is to execute ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 this.
ffmpeg.so is already there in your library. For the filter you are calling the native c++ method from java in CGEFFmpegNativeLibrary class
private static native boolean nativeGenerateVideoWithFilter(String outputFilename, String inputFilename, String filterConfig, float filterIntensity, Bitmap blendImage, int blendMode, float blendIntensity, boolean mute);
So to execute the command I guess I need to call some native method in ffmpeg.so and I don't know which method to call. Correct me If I'm wrong.
I know how to execute that command using a ffmpeg binary. I'm no familiar with .so files. Please help me @wysaid
Any updates on this yet?
I was finally able to achieve this but then realized, there are not many codecs in the ffmpeg version used. as a result you can't transcode many videos.
Please elaborate your method @assassinshadow0