Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you support rubberband filter? #2130

Open
Code-Lonely opened this issue Nov 20, 2023 · 7 comments
Open

Do you support rubberband filter? #2130

Code-Lonely opened this issue Nov 20, 2023 · 7 comments

Comments

@Code-Lonely
Copy link

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

@saudet
Copy link
Member

saudet commented Nov 20, 2023

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

@Code-Lonely
Copy link
Author

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

@saudet
Copy link
Member

saudet commented Nov 20, 2023

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

@Code-Lonely
Copy link
Author

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

@saudet
Copy link
Member

saudet commented Nov 20, 2023

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

@Code-Lonely
Copy link
Author

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

@saudet
Copy link
Member

saudet commented Nov 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants