Questions tagged [mp3]

MPEG-1 or MPEG-2 Audio Layer III, more commonly referred to as MP3, is a patented digital audio encoding format using a form of lossy data compression. It is a common audio format for consumer audio storage, as well as a de facto standard of digital audio compression for the transfer and playback of music on digital audio players.

The use in MP3 of a lossy compression algorithm is designed to greatly reduce the amount of data required to represent the audio recording and still sound like a faithful reproduction of the original uncompressed audio for most listeners. For example: An MP3 file that is created using the setting of 128 kbit/s will result in a file that is about 11 times smaller than the CD file created from the original audio source. An MP3 file can also be constructed at higher or lower bit rates, with higher or lower resulting quality.

The compression works by reducing accuracy of certain parts of sound that are considered to be beyond the auditory resolution ability of most people. This method is commonly referred to as perceptual coding. It uses psychoacoustic models to discard or reduce precision of components less audible to human hearing, and then records the remaining information in an efficient manner.

Further information and deeper analysis: MP3 on wikipedia

4559 questions
2
votes
1 answer

lame - Overwrite existing files

I'm trying to convert a bunch of CBR 320 Kbps Mp3 to VBR 0 (max quality), using lame command in bash. However, it seems like lame can't overwrite existing files. It would be much faster that way, as I could use wildcards to do it on an unique, short…
Jeffrey Lebowski
  • 281
  • 1
  • 2
  • 12
2
votes
5 answers

What is one method I can use to play an mp3 when a button is pressed?

Let me clarify. I am creating a soundboard (android application) for a class of mine and I used this method 30 times, one for each button/mp3 import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import…
frosty
  • 307
  • 4
  • 15
2
votes
2 answers

Flash MP3 player with javascript controls

While the question may seem fairly basic I seem to be at a loss to actually find anything that fits my needs, which are: Skinnable (although not 100% required) Controllable through javascript (start, stop, change track) Event triggers for custom…
Meep3D
  • 3,803
  • 4
  • 36
  • 55
2
votes
3 answers

Convert PCM to MP3/OGG

I need to convert a continuous stream of PCM, or encoded audio (ADPCM, uLaw, Opus), into MP3/OGG format so that it can be streamed to a browser (using html's audio tag). I have the "stream-mp3/ogg-using-audio-tag" part working, now I need to…
Tony
  • 1,986
  • 2
  • 25
  • 36
2
votes
0 answers

Trying to serve mp3 with nodejs?

I am trying to serve a mp3 file using nodejs. The browser I am using is Google Chrome. Serving text worked but when I changed the content-heading to indicate that I want to serve mp3, it display a play button that does not play. Here is the…
caromimo
  • 91
  • 7
2
votes
1 answer

Cannot trigger "durationchange" of HTML5 audio

thanks for looking at my question. I am working on a HTML5 audio related project. And now I meet a question. What I want to do is assigning an audio.src to another audio.src. Actually, it works well in my beginning demo. But it does not work in my…
kmo
  • 21
  • 3
2
votes
1 answer

How to add JFXPanel to already existing swing app

I am very stuck in knowing what to do to integrate my JFXPanel (which is an mp3 player) into an existing Swing app that - which is a JFrame with several different JPanels added to it. I am a complete noob to JavaFX and it is very different from…
user3026552
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

lame mp3 encoder returns bad mp3 file

I tried lame mp3 encoder in android to convert a wav file to mp3, libmp3lame.so was generated and the app convert test.wav to test.mp3 successfully but the problem is that the mp3 file is like THIS, my wav file is a voice of speaking and when it…
2
votes
2 answers

JLayer always throws ArrayIndexOutOfBounds Exception

I'm using JLayer to decode an MP3, and store it as PCM Data. However, no matter what MP3 file I use, I always get an ArrayIndexOutOfBoudnsException with the index 443. I have heard that this only happens with certain MP3s, but it is happening on…
2
votes
2 answers

JAVA - Xuggler - combine an MP3 audio file and a MP4 movie

Using JAVA and Xuggler - the following code combines an MP3 audio file and a MP4 movie file and outputs a combined mp4 file. I want the duration of the output video to be equal to the time duration of the input video file If I set the loop condition…
gilad s
  • 475
  • 8
  • 16
2
votes
1 answer

Unable to read MP3 frame header bytes?

I'm working on an audio project in java that requires me to determine audio file types based on their data (as opposed to file extension) and I've hit a wall with MP3s. As far as I understand, MP3 files are broken into frames where each frame has a…
Chris
  • 1,465
  • 1
  • 18
  • 36
2
votes
1 answer

Is comparing two audio files using FFT the only way?

I am new to signal processing and trying to compare two audio files using FFT. Reading the file to bytes and then converting to complex numbers and then sending it to fft. Then calculated magnitude of the complex numbers(output from fft). Trying to…
user2913531
  • 29
  • 1
  • 2
2
votes
1 answer

can't play mp3 file via javafx 2.2 media player

I'm developing what I thought should ahve been a simple task with javafx- media player that will play mp3 files stored on the local hard drive, in users default music folder path (using fedora). I can play all the mp3 files fine from the command…
2
votes
2 answers

Capturing a live MP3 audio stream to file

I'm trying to work out a method of capturing a live MP3 audio stream, i.e. internet radio/Icecast or Shoutcast, and saving the captured audio in defined file lengths, so 1 hour audio file, or 2 hour audio file. I found something on this thread using…
mattauckland
  • 483
  • 1
  • 7
  • 17
2
votes
1 answer

Unable to merge two mp3 files

public class MainActivity extends Activity { FileInputStream fistream2,fistream1; File newFile=new File(Environment.getExternalStorageDirectory() +File.separator +"newfolder" //folder name …
onkar
  • 4,427
  • 10
  • 52
  • 89