How to convert mp4 to mp3 in java?

The most simple way is to use ffmpeg via a ProcessBuilder using this command ffmpeg -i input. Mp4 -vn -s 00:00:10 -acodec libmp3lame output. Mp3 This translates to: read mp4 file, ignore video, output 10 seconds in mp3 format.

I assume you're going to strip out the audio from your mp4 file and save it as mp3. I haven't tried to do anything with audio encodings, but I've used Xuggler ( xuggle.com/xuggler/ ) pretty successfully as a library to access video, and their documentation claims to support audio as well.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions