keep audio pitch constant in javafx video player on changing speed Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of keep audio pitch constant in javafx video player on changing speed without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I have developed a video player using javafx but when I increase the rate of the player i.e the speed of the player using mediaPlayer.setRate(1.5) method, the speed of the video is increased, but the audio sounds like a chipmunk.

I need to implement functionality like with youtube where if we increase the speed, it doesn’t sound like a chipmunk.

Please help me – what can I do to achieve this?
What java api, class or 3rd party library should I use in my program in order to modify the audio pitch whilst running the video.

Answer

Got solution
Use VLCJ : http://capricasoftware.co.uk/projects/vlcj
VLCJ is a java wrapper framework that uses native vlc libraries.
They have very nice documentation and examples on Github.
It also supports JavaFx.
Github link :
VlcJ : https://github.com/caprica
VlcJ – JavaFx : https://github.com/caprica/vlcj-javafx

We are here to answer your question about keep audio pitch constant in javafx video player on changing speed - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji