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

How to convert any audio format to mp3 using NAudio

public void AudioConvert() { FileStream fs = new FileStream(InputFileName, FileMode.Open, FileAccess.Read); NAudio.Wave.WaveFormat format = new NAudio.Wave.WaveFormat(); NAudio.Wave.WaveStream rawStream = new…
sainath sagar
  • 499
  • 2
  • 10
  • 28
2
votes
1 answer

Using Web Audio API decodeAudioData with external binary data

I've searched related questions but wasn't able to find any relevant info. I'm trying to get the Web Audio API to play an mp3 file which is encoded in another file container, so what I'm doing so far is parsing said container, and feeding the result…
poeschl
  • 25
  • 1
  • 4
2
votes
2 answers

wrong duration after converting from flv to mp3 using avconv and youtube-dl

I used youtube-dl to download and convert youtube video into mp3. youtube-dl http://www.youtube.com/watch?v=4f51DhJR0zo -o "Alesso - Think It's Time.flv" -x -f 43 --audio-format mp3 Now it looks like all the mp3 files have an unusual long duration,…
Mattis Asp
  • 993
  • 3
  • 14
  • 29
2
votes
0 answers

CaptureSessionController.mm in AVCaptureToAudioUnit won't record wav, aac or mp3 files

I'm using sample code of AVCaptureToAudioUnit to record voice using iPhone as a microphone. I used this example as a starting point because I had more success with this sample project than with other sample projects. When the file is .aif or .caf…
Greg
  • 1,750
  • 2
  • 29
  • 56
2
votes
2 answers

how to compress my mp3 files to reduce apk file size?

I'm developing an android application that has over 111MB of mp3 files. I need to compress these files and put them in my package (like raw folder) and after my app was installed on a device, it decompresses files to use them. How could I do this?…
LMCompany
  • 111
  • 3
  • 8
2
votes
2 answers

How to write mp3 frames from PCM data (C/C++)?

How to write mp3 frames (not full mp3 files with ID3 etc) from PCM data? I have something like PCM data (for ex 100mb) I want to create an array of mp3 frames from that data. How to perform such operation? (for ex with lame or any other opensource…
Rella
  • 65,003
  • 109
  • 363
  • 636
2
votes
1 answer

I can't play .mp3 files on localhost

Im making a music player using HTML, jQuery and XML. The XML file contains the names of all the songs with their paths. I can't access the XML file locally because Chrome doesn't allow that, so I tried running it on localhost, but localhost doesn't…
Yash
  • 29
  • 7
2
votes
2 answers

C++ & MP3 equalizer question

I want a library or some sort of a command that takes an MP3 file location as an input (only MP3 I don't need WAV, OGG, or any other type) and plays the file to the end of it and make some sort of an equalizer output but only in frequencies as…
Mohammed
  • 119
  • 1
  • 3
  • 4
2
votes
0 answers

Convert recorded WAV to MP3

Is there a way to convert WAV to MP3 in android. My application records audio as WAV and I want to convert it to MP3 but without using NDK. Most answers I found is that I have to resort to using Android NDK. But I still don't know much about NDK.…
sftdev
  • 1,701
  • 3
  • 16
  • 18
2
votes
1 answer

ALSA dmix plugin and sample rate problems

I'm using the ALSA dmix plugin on an embedded project, and mixing mp3 files by playing them with mpg321-alsa. In my asound.conf I've set my dmix sample rate to 44100Hz. If I try to play any mp3 file sampled at a rate other than 44100Hz (or a rate…
Simon Elliott
  • 2,087
  • 4
  • 30
  • 39
2
votes
7 answers

Accessing binary MP3 Header in C via fopen

I am trying to extract the mp3 header from a file. This is different then the ID3 tags -- the mp3 header is where information about the MPEG version, bit rate, frequency, etc is held. You can see an overview of the mp3 header structure here:…
BSchlinker
  • 3,401
  • 11
  • 51
  • 82
2
votes
2 answers

Problems decoding streamed mp3 data using JLayer

Im trying to use the JLayer java lib to decode an mp3 data stream. I have a callback which is called asynchronously when the next chunk of mp3 data has arrived from the network. Each chunk that arrives contains 4 mp3 frames in byte[] format. This…
Sabobin
  • 4,256
  • 4
  • 27
  • 33
2
votes
1 answer

Python: Check mp3 file is fully downloaded

I wrote a small python script that's monitor user music library and add new files info (mp3, aac, flac) to sqllite db. If user download music from torrents, how can i check that it is fully downloaded and is not corrupted?
ste1inbeck
  • 315
  • 4
  • 13
2
votes
2 answers

How to embed images and sounds in an iPhone app?

I am having a real hard time understanding how to embed many images and sounds in an iPhone app. When I say embed, I mean I want the images and sounds to be downloaded with the app, and some of those images will appear when the app is run. Other…
jake9115
  • 3,964
  • 12
  • 49
  • 78
2
votes
4 answers

HTML5

I have a page where I display some audio .ogg/.mp3-files for listening in the browser (it is purchased products that are being displayed on a "receipt"-page). The files are super in Chrome, Opera, Safari and Firefox and I can play them, pause,…