Solved

How do i convert audio (mp3 to wav, au, etc.) in java using JMF to create an audio media player?

Posted on 2009-04-03
2
1,484 Views
Last Modified: 2013-12-15
HI, the aim  is to convert MP3 format to wav and other file format. project using java media framework API with functionality to load, save and playback audio on a stand alone player if its ever possible. thanks
0
Comment
Question by:z0l0x
2 Comments
 
LVL 17

Assisted Solution

by:Thomas4019
Thomas4019 earned 240 total points
ID: 24066082
You might also want to look into QTJ (Quick Time for Java). I also java to open practically anything that quicktime can open. Not sure how good it is at wrting files though.

http://en.wikipedia.org/wiki/QuickTime_for_Java
http://developer.apple.com/quicktime/qtjava/

JMF is good too, but if that wont work, i am just posting an alternative.
0
 
LVL 16

Accepted Solution

by:
warturtle earned 260 total points
ID: 24073279
Hello,

What operating system are you using? JMF 2.1.1 on Windows with a Windows Performance Pack will be able to deal with capturing music as mp3.

http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html

If you have a look in the first table, the last entry ACM points to mp3.

I also suggest that you have a look at an exising application called JMStudio to get an idea of how an existing application does it:

http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/samples/samplecode.html#JMStudio

Hope it helps.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
stackato and cloud 4 85
Embarcadero C++ Builder XE10.1 Berlin red arrow Indicator 2 36
tomcat administrtor 12 47
null output 3 25
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question