I have a problem with MP2 audio files and JAVA. Audio seems to be a pain in JAVA anyway. I tried using JavaLayer and Xuggler to decode and transcode the MP2 file to WAV. Both of which failed. And development of those seems to be not active. Although many are still using these. JMF or FMJ I haven't tried yet. I was wishing for more native approach.
I ended up forking JavaLayer to my project. And with a small code change I managed to seemingly get it to read all the frames from the MP2. But trying to convert it to WAV resulted in a file playable only in VLC and well, it was recognizable but distorted.
Anyway, a broad question, I apologize. I guess I'm asking that is there any JAVA + JavaLayer + MP2 gurus out there who can help me?
Original MP2: https://dl.dropboxusercontent.com/u/90134918/horng014.mp2 Failed WAV conversion: https://dl.dropboxusercontent.com/u/90134918/horng014_fail.wav
I have a public GitHub account for this project, but I haven't posted this broken code there yet.
Meanwhile theres's a new Java Media Framework here:
https://sourceforge.net/projects/doppio/
with a high level API for players and a low level API for using only decoders.
This player here https://sourceforge.net/projects/xamp2/ based on this media framework and can play mentioned file. Also the stuff is open source.