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
159
votes
7 answers

View/edit ID3 data for MP3 files

What's a quick and easy way to view and edit ID3 tags (artist, album, etc.) using C#?
Mag Roader
  • 6,850
  • 8
  • 32
  • 27
150
votes
16 answers

Accessing MP3 metadata with Python

Is there a maintained package I can use to retrieve and set MP3 ID3 metadata using Python?
akdom
  • 32,264
  • 27
  • 73
  • 79
129
votes
6 answers

Which mime type should I use for mp3

I'm trying to decide which mime type to choose for returning mp3 data (served up by php) according to this listing of mime types: http://www.webmaster-toolkit.com/mime-types.shtml .mp3 audio/mpeg3 .mp3 audio/x-mpeg-3 .mp3 video/mpeg .mp3 …
Kristian
  • 21,204
  • 19
  • 101
  • 176
123
votes
15 answers

Playing .mp3 and .wav in Java?

How can I play an .mp3 and a .wav file in my Java application? I am using Swing. I tried looking on the internet, for something like this example: public void playSound() { try { AudioInputStream audioInputStream =…
Stan
  • 3,659
  • 14
  • 35
  • 42
117
votes
8 answers

Crop MP3 to first 30 seconds

Original Question I want to be able to generate a new (fully valid) MP3 file from an existing MP3 file to be used as a preview -- try-before-you-buy style. The new file should only contain the first n seconds of the track. Now, I know I could just…
Cheekysoft
  • 35,194
  • 20
  • 73
  • 86
103
votes
10 answers

Play audio from a stream using C#

Is there a way in C# to play audio (for example, MP3) direcly from a System.IO.Stream that for instance was returend from a WebRequest without saving the data temporarily to the disk? Solution with NAudio With the help of NAudio 1.3 it is possible…
Martin
  • 10,738
  • 14
  • 59
  • 67
95
votes
7 answers

How to overlay/downmix two audio files using ffmpeg

Can I overlay/downmix two audio mp3 files into one mp3 output file using ffmpeg?
Faisal
  • 1,307
  • 1
  • 10
  • 16
92
votes
9 answers

Why doesn't Firefox support the MP3 file format in

Is there a particular reason why Firefox does not support playback of MP3 files in
Mark
  • 39,169
  • 11
  • 42
  • 48
88
votes
7 answers

Streaming Audio from A URL in Android using MediaPlayer?

I've been trying to stream mp3's over http using Android's built in MediaPlayer class. The documentation would suggest to me that this should be as easy as : MediaPlayer mp = new…
Pandalover
  • 2,388
  • 3
  • 21
  • 19
85
votes
17 answers

Playing mp3 song on python

I want to play my song (mp3) from python, can you give me a simplest command to do that? This is not correct: import wave w = wave.open("e:/LOCAL/Betrayer/Metalik Klinik1-Anak Sekolah.mp3","r")
The Mr. Totardo
  • 1,119
  • 2
  • 10
  • 11
81
votes
6 answers

Using ffmpeg to cut audio from/to position

I need to cut parts from an audio file from position to position. When I tried this command ffmpeg -ss 132 -t 139 -i original.mp3 new.mp3 it started at the second 132, and added the next 139 seconds to the new file. What I need is from second 132…
Mike
  • 2,051
  • 4
  • 28
  • 46
79
votes
2 answers

How to crop a mp3 from x to x+n using ffmpeg?

Following this question I decided to use ffmpeg to crop MP3s. On another question I found this way of doing it: ffmpeg -t 30 -acodec copy -i inputfile.mp3 outputfile.mp3 The problem is that I don't want to crop the first 30 seconds, I want to crop…
marcgg
  • 65,020
  • 52
  • 178
  • 231
68
votes
12 answers

What is the best way to merge mp3 files?

I've got many, many mp3 files that I would like to merge into a single file. I've used the command line method copy /b 1.mp3+2.mp3 3.mp3 but it's a pain when there's a lot of them and their namings are inconsistent. The time never seems to come…
Dan Williams
  • 4,910
  • 11
  • 37
  • 46
67
votes
3 answers

ffmpeg clip audio interval with starting and end time

I am trying to clip an MP3 between two starting points, like starting at 10 seconds and ending at 16 seconds (time interval of 6 seconds). I am using this command: ffmpeg -ss 10 -i input.mp3 -t 6 output.mp3 The resulting output.mp3 contains the 6…
gruuuvy
  • 2,028
  • 4
  • 31
  • 52
66
votes
5 answers

Python library to split and join mp3 files

There are a lot of libs to work with mp3 tags, but I need just 2 functions - split mp3 file in 2 parts and the second one to merge 5 mp3. Can you suggest anything? Thanks!
user355745
  • 661
  • 1
  • 5
  • 4
1
2 3
99 100