Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert pcm wav file to mp3 file

 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible to convert an PCM file to an mp3 file? if yes, how?

thanks alot
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.

Do you mean purely withing Java? I'm sure the answer is yes, but I would not do that. Use 'lame', which is a cross platform program designed to do exactly that.

Do not reinvent the wheel, use someone else's wheel and do something creative.
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may be able to use LameOnJ for that.
 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, actually i would like to do it completely in java, so not using lameOnJ, but thanks for the advice.
is it possible with JMF? or can anyone help with an example..

thanks alot
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Google, search for "java encode mp3" for example. This looks useful: MP3 Encoding in Java.

One problem with this, is that MP3 is not a free format. You'd need to pay a license fee to the inventors if you'd want to publish an MP3 encoder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic