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
59
votes
6 answers

Playing a MP3 file in a WinForm application

I am developing a WinForm application. I want to play a MP3 file when the user clicks a button. The MP3 file is located in the file system of the computer where the application is executed. I have Googled for a while and I have found information…
user1139666
  • 1,687
  • 4
  • 24
  • 45
54
votes
6 answers

content type for mp3 download response

I have created a simple HTTP server which allows users to download files. But this does not seem to work for mp3 files. The content type currently is "application/misc". In order to make it work with mp3 files , I've tried "application/mp3" ,…
Vihaan Verma
  • 12,815
  • 19
  • 97
  • 126
52
votes
1 answer

ExoPlayer AudioTrack Stuttering

I have my own implementation of TrackRenderer for an mp3 decoder, that I integrated. When a lollipop device goes to standby and comes back, it's not always repeatable but the audio starts to stutter until I force stop the application. In the…
Daniel Nuriel
  • 521
  • 3
  • 3
50
votes
5 answers

How to convert MP3 to WAV in Python

If I have an MP3 file how can I convert it to a WAV file? (preferably, using a pure python approach)
yydl
  • 24,284
  • 16
  • 65
  • 104
50
votes
3 answers

How to convert any mp3 file to .wav 16khz mono 16bit

Please, help to choose solution for converting any mp3 file to special .wav - I'm a newbie with Linux command line tools, so It's hard for me right now. I need to get wav with 16khz mono 16bit sound properties from any mp3 file. I was trying ffmpeg…
Alve
  • 1,315
  • 2
  • 17
  • 16
46
votes
6 answers

Python library for playing fixed-frequency sound

I have a mosquito problem in my house. This wouldn't usually concern a programmers' community; However, I've seen some devices that claim to deter these nasty creatures by playing a 17Khz tone. I would like to do this using my laptop. One method…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
46
votes
1 answer

MAC's "say" command to MP3

I want to read a very long text with the SAY mac's command (say -f file.txt), and to record the output to file.mp3. I thought about using ffmpeg to record all of it, but then i'll need to wait for all the reading process to complete.. I don't really…
Oussama L.
  • 1,842
  • 6
  • 25
  • 31
44
votes
4 answers

Any good recommendations for MP3/Sound libraries for java?

I'm looking for libraries to: read and write meta data (for example ID3v2 tags in mp3 and all) convert compressed to to raw audio data and if possible raw audio data to mp3, ogg, aac, ... digitally process the audio data (energy, timbre, Mel…
roesslerj
42
votes
3 answers

How to encode a WAV to a mp3 on a Android device

I have simplified my question and offered a bounty: What options are there for compressing raw PCM audio data to a mp3 on a Android device. My original post: I'm creating a synthesiser on my Android phone, and I've been generating PCM data to send…
bramp
  • 9,581
  • 5
  • 40
  • 46
42
votes
4 answers

Right place for putting mp3 files in an android project

Is there any folder like res/drawable for mp3 or generally audio files? If yes, what is it and how can I get access to it from the app?
Mohammad Moghimi
  • 4,636
  • 14
  • 50
  • 76
41
votes
5 answers

Finding the length of an mp3 file

So i have the code: import glob,os import random path = 'C:\\Music\\' aw=[] for infile in glob.glob( os.path.join(path,'*.mp3') ): libr = infile.split('Downloaded',1) aw.append(infile) aww = -1 while 1: aww += 1 print…
P'sao
  • 2,946
  • 11
  • 39
  • 48
41
votes
6 answers

Android - Playing mp3 from byte[]

I have my mp3 file in byte[] (downloaded from an service) and I would like to play it on my device similar to how you can play files: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); But I can't seem to…
nikib3ro
  • 20,366
  • 24
  • 120
  • 181
41
votes
8 answers

How to play a mp3 using Javascript?

I have a directory on my website with several mp3's. I dynamically create a list of them in the website using php. I also have a drag and drop function associated to them and I can select a list of those mp3 to play. Now, giving that list, how can I…
aF.
  • 64,980
  • 43
  • 135
  • 198
40
votes
2 answers

Streaming MP3s from Amazon S3

Is there a way to stream MP3s stored on Amazon S3 via a Flash widget embedded in a website, or some other method?
netflux
  • 3,648
  • 6
  • 37
  • 40
39
votes
2 answers

S3 Bucket Policy to make a specific sub folder public and everything else private?

We currently have an S3 bucket policy which makes everything public. At the moment we a bucket "bucket1" and inside there are numbered sub folders for each entry numbers 01 upwards (e.g. 01, 02, 03) and inside that always a folder called "128". What…
realdannys
  • 1,383
  • 1
  • 12
  • 18