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
38
votes
4 answers

How to read and write ID3 tags to an MP3 in C#?

Is there a library for reading and writing ID3 tags to an MP3 in C#? I've actually seen a couple when searching, anybody using any that can be recommended?
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
38
votes
4 answers

How do I concatenate files in Python?

I have multiple (between 40 and 50) MP3 files that I'd like to concatenate into one file. What's the best way to do this in Python? Use fileinput module to loop through each line of each file and write it to an output file? Outsource to windows…
Owen
  • 22,247
  • 13
  • 42
  • 47
37
votes
7 answers

Read MP3 in Python 3

What I want to do is simply mp3 = read_mp3(mp3_filename) audio_left = mp3.audio_channels[0] where audio_left will contain raw PCM audio data. I was looking at Play a Sound with Python, but most of the suggested modules are not ported to Python 3…
Andreas Jansson
  • 3,137
  • 2
  • 30
  • 40
37
votes
12 answers

PHP Function to get MP3 duration

Is there any PHP function that will give me the MP3 duration. I looked at ID 3 function but i don't see any thing there for duration and apart from this,id3 is some kind of tag,which will not be there in all MP3 so using this will not make any…
ram
  • 1,111
  • 6
  • 15
  • 24
36
votes
9 answers

How to play MP3 files in C?

I'm looking for the easiest way to play a MP3 file in C. I am looking for either a library, in which I could just call the function on the filename, or an executable that will just run and quit. Please suggest.
Sam
  • 361
  • 1
  • 3
  • 3
36
votes
6 answers

sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer"

I compiled libmad for sox. When I try to read an mp3 I get this message: sox FAIL util: Unable to load MAD decoder library (libmad) function "mad_stream_buffer". Did I compile the project incorrectly?
Anderson
  • 361
  • 1
  • 3
  • 4
35
votes
2 answers

ExoPlayer and start / pause / seekTo commands

I am trying to use ExoPlayer, as opposed to MediaPlayer and I can't seem to figure it out... MediaPlayer has .start() / .pause() commands... and I can just seekTo(1287) and it automatically starts playing... How do I do this with ExoPlayer? I have…
DeNitE Appz
  • 1,003
  • 2
  • 12
  • 18
32
votes
3 answers

ffmpeg mp3 conversion failed

using ffmpeg to convert from flv to mp3 gives the following result ] ffmpeg-0.6.1 >> ffmpeg -i name.flv name.mp3 FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Feb 14 2011 12:33:38 with gcc 4.1.2 20080704 (Red Hat…
user444757
  • 665
  • 1
  • 7
  • 18
32
votes
5 answers

How do you embed album art into an MP3 using Python?

I've been using mutagen for reading and writing MP3 tags, but I want to be able to embed album art directly into the file.
Connor
32
votes
8 answers

How to Register New File Type Association with MP3

I am beginner with Android Studio. I have an MP3 file in my res\raw folder. When I sync project with Gradle files. I get the following dialog box: How do I allow for MP3 files in my project? I read this: Register new file type in Android, but I'm…
nu everest
  • 9,589
  • 12
  • 71
  • 90
32
votes
5 answers

using FFMPEG with silencedetect to remove audio silence

I am trying to use the following command with the latest ffmpeg build to remove silence from my .mp3 files: ffmpeg -i SILENCE.mp3 -af silencedetect=n=-50dB:d=1 -y -ab 192k SILENCE_OUT.mp3 However, the following output is produced: ffmpeg version…
Zahlii
  • 818
  • 1
  • 7
  • 17
31
votes
4 answers

Recommended Android music format - mp3, ogg or other?

I've been asked which format I need the music for my project in and, looking through the documentation, it seems that the Android platform offers a good choice. Audio is certainly not my forte so I'm wondering if there's a specific format that is…
Rok
  • 2,568
  • 4
  • 26
  • 28
31
votes
4 answers

Create a silent mp3 from the command line

I am trying to create a silent / empty mp3 file of (x) seconds using the command line. Quite a simple task I thought! It seems LAME is able to do something like this, but I am unable to find anything that leads to achieving this. Has anyone been…
Stephen
  • 3,607
  • 1
  • 27
  • 30
31
votes
8 answers

Serving mp3 files using the webpack file loader

I have a problem with getting my mp3 files to work using the webpack file loader. This is the issue: I have a mp3 file on my harddisk, that if I open using chrome by for example "c:\somefolder\somemp3file.mp3" opens up in a tab in the browser and…
Øyvind Bråthen
  • 59,338
  • 27
  • 124
  • 151
31
votes
4 answers

Python convert wav to mp3

I've looked at pymedia (discontinued), pyglet(great but no converter in there) and audiotools(command line cd ripping), and none seem suitable. In Python 2.7 , how do you do convert(wavFileLocation, 'mp3') If there is no python way, how would you…
xxjjnn
  • 14,591
  • 19
  • 61
  • 94