javacv icon indicating copy to clipboard operation
javacv copied to clipboard

Do you support rubberband filter?

Open Code-Lonely opened this issue 9 months ago • 7 comments

I want to execute the ffmpeg command in Android. I have introduced the Javacv ffmpeg library in the project, and I used the following method to call the ffmpeg command

String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
ProcessBuilder processBuilder = new ProcessBuilder(ffmpeg, "-i", "1.mp3");

but, I have found that this ffmpeg does not support rubberband filters. May I know what to do

I need to use this filter to change the pitch of the audio

https://ffmpeg.org/ffmpeg-filters.html#rubberband

Code-Lonely avatar Nov 20 '23 13:11 Code-Lonely

Please update the cppbuild.sh file: https://github.com/bytedeco/javacpp-presets/blob/master/ffmpeg/cppbuild.sh

saudet avatar Nov 20 '23 13:11 saudet

I'm not very clear about what you mean. Do I need to modify the parameters and compile them myself? Could you please provide me with detailed instructions

Code-Lonely avatar Nov 20 '23 13:11 Code-Lonely

You can check this pull https://github.com/bytedeco/javacpp-presets/pull/1427 for an example of that, do something like that.

saudet avatar Nov 20 '23 13:11 saudet

bytedeco/javacpp-presets/pull/1439 I have made the necessary changes. If I need it urgently, what should I do

Code-Lonely avatar Nov 20 '23 13:11 Code-Lonely

You can build it locally on your machine: https://github.com/bytedeco/javacpp-presets#build-instructions

saudet avatar Nov 20 '23 13:11 saudet

I am not very familiar with the compilation of C++. Can you help me compile one that supports ruberband? Thank you very much

Code-Lonely avatar Nov 20 '23 13:11 Code-Lonely

If you have a version of FFmpeg installed on your system that does what you want, you should be able to use it by compiling the presets with a command like mvn install -Djavacpp.cppbuild.skip

saudet avatar Nov 20 '23 23:11 saudet