I need to parse mp4 file (which I get from URL), to raw audio file (FLAC) using JAVA, and I want to do that without actually download the file to my server.
I checked sannies/mp4parser library but the file need to be downloaded.
Is there any way to parse the mp4 to flac without download it?
Thanks
Related
I want to find a way to create a new MP4 container and add an MP3 file into it. Whether the MP3 file is to be encoded or not does not matter to me. Is there any easy way to do this without using ffmpeg? I have found the following example for muxing:
android - How to mux audio file and video file?
Though, it has issues and also it is supposed to mux the audio file into an existing video.
Can someone point me to a guide or at least in the right direction to accomplish what I need?
U can do this using MediaCodec and MediaMuxer but right now i think mp3 is not supported u should first decode mp3 to wav and encode to supported format like aac using MediaExtractor and MediaCodec and then u can add to mp4 container using Muxer. U might find this link helpful https://www.sisik.eu/blog/android/media/mix-audio-into-video
I want to try the sphinx api for the conversion of the .mp3 file to the text format. But I've read it somewhere that it only supports .wav file and since I've changed .mp3 file to .wav file it is giving me proper output. what if i want to do the processing directly on .mp3 file.
I want to convert a given flac file to a wav file. Most of the questions on StackOverflow are the opposite of my question. Have anyone an idea how to solve this problem ? I heard something about JavaFlacEncoder link but I could not find a method to convert flac to wave.
Use flac -d to (from the man page)
Decode (the default behavior is to encode)
Another option would be the JustFLAC library, again you need to decode from FLAC. WAV is uncompressed audio.
Is there a way to convert a mp3 audio file into a wav audio file in java without using external libraries?
If you want to tell java "hey, convert an mp3 file", it won't do that, because it isn't made for mp3.
If, however, you are comfortable with using a purely java library, then check out JLayer. I have used it myself and it worked wonderfully.
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.