Actually, we need to convert a WMA audio file into FLAC. But there's a lack of ways to convert WMA into more convenient formats. Can you recommend us a library, that can help us, or something like that?
What you need is JAVE:
The JAVE (Java Audio Video Encoder) library is Java wrapper on the
ffmpeg project. Developers can take take advantage of JAVE to
transcode audio and video files from a format to another. In example
you can transcode an AVI file to a MPEG one, you can change a DivX
video stream into a (youtube like) Flash FLV one, you can convert a
WAV audio file to a MP3 or a Ogg Vorbis one, you can separate and
transcode audio and video tracks, you can resize videos, changing
their sizes and proportions and so on. Many other formats, containers
and operations are supported by JAVE.
MFSampledSP supports WMA.
It's suitable for Windows 7 or later.
Related
I wonder if there is a lib, like Apache Commons, or something of that sort to help convert media-files (e.g. avi, mkv, mp4 etc) any-to-any? For example an InputFile is in format .avi and an OutputFile is in mp4.
See either of the following to convert between a range of formats.
Jffmpeg is a plugin that allows the playback of a number of common audio and video formats. It is based around a Java port of parts of the FFMPEG project, supporting a number of codecs in pure Java code. Where codecs have not yet been ported, a JNI wrapper allows calls directly into the full FFMPEG code.
Xuggle - A free open-source library for Java developers to uncompress, manipulate, and compress recorded or live video in real time.
The only library I know for that is ffmpeg, but you will have to run it through JNI.
I would like to perform a FFT on frames of an MP3 file using Java (think spectrum analyzer). I found JLayer which seems to fit the requirement of MP3 Decoding, but I'm not sure how to use it (Most examples are simply players that use the higher level helper, but that's not what I am looking for). FFT seems easy compared to decoding MP3 files ;)
My question is basically this: How would I take an MP3 file in java, and decode it to raw audio data for analysis in Java using JLayer
I am on the same Boat - trying to decode and analyze MP3 files using Java. You may want to check out MP3 SPI from the same author. There is a good example of getting the raw decoded PCM data from an MP3 file in his page:
http://www.javazoom.net/mp3spi/documents.html
Good luck,
Uri
Which audio format would provide the least lossy conversion into mp3 and ogg through ffmpeg.
I am tending towards wav, but I would like to make sure.
Also, I am using the SDK java audio applet to allow users to upload. Does anyone know if there are any issues with this applet, or if there is a better option out there?
Obviously, uploading files already in MP3 and OGG format would provide the least lossy conversion since you don't need to convert at all.
About the SDK java audio applet: Is this really needed? You can also upload a file using just a HTML form and PHP.
FLAC is lossless, and so is WAV. FLAC is smaller than WAV. If you need something that you will be converting into multiple formats, opt for a lossless format.
I need to convert mp4/flv files info mp3 in my Android application, but I don't know C/C++ and Android NDK. Do you know libraries/methods for easy converting on Java? Thank you for anyway.
Your question is how to extract audio from MP4/ FLV files and save as mp3 file. Right ?
Then, very sorry, Android SDK does not provide any API for transformating or track extraction.
Also using available media framework to achieve the same is also not trivial (and even if you do, you will lose portability).
What I would suggest is to use your MP4 & FLV Parser to extract audio track, do transcoding (if audio track is non-mp3), and save the transcoded (if audio track extracted is mp3, then extracted data) data.
Or you can port FFMPEG code base and use the same. This again may be overkill for your small task.
Suppose you just want to extract mp3 track from MP4, then you understand the native mp4 parser and use the APIs for extraction. You may have to replicate some code from stagefright / opencore.
Shash
it's probably irrelevant for you anymore but if some one still need a mp4 to mp3 parser here's an api that can do the job
Is there AMR to WAV , WAV to AMR converter available written Java? I need to do conversion in realtime. Looking for open source, free or paid.
Thanks.
Your best bet would be to call ffmpeg from within Java. Sadly, I don't know of a good solution which is java-only, but using ffmpeg allows you to use the wide range of codecs available to this program (which includes AMR support).