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 play mp3 at specific point over waveform?

I have generated waveform using How to render audio waveform? answer from Illaya and displayed on picturebox, now i want to play sound at specific point (mark on waveform), i have used NAudio for waveform. Screenshot can explain all things:
Sunil Dabhi
  • 99
  • 2
  • 13
2
votes
1 answer

Way to extract mp3 sample in .NET and C#

How can I extract some MP3 sample from an MP3 file? I want to extract some sample of about 10 seconds from these files. Is there any way or some documentation that I can study in order to do that by myself? Thanks to everyone!
Leo
  • 150
  • 1
  • 9
2
votes
0 answers

What is the maxium ogg file length MediaPlayer can play in android?

I had 4mb, around 4min long ogg file to play as background music. When i launch it , the music stops at 20sec I cut it down to 50 sec and it occasionally stops at 35-40 sec play time. generic = MediaPlayer.create(this, R.raw.rep2); …
ERJAN
  • 23,696
  • 23
  • 72
  • 146
2
votes
0 answers

how to convert .m4a to .mp3 using swift2?

How do I convert a .m4a (it's a voice memo) to .mp3? I've researced around and I've seen people mention Lame, AudioConverter, but can't figure out how I make it work? if anybody has a samplecode, I would love to see something!
MrKale
  • 43
  • 1
  • 11
2
votes
2 answers

I want to play mp3 files on my server with AVAudioPlayer

I want to play mp3 files on my server with AVAudioPlayer I've tried this code, but it does not work. -(IBAction)playSound { NSString *path = [[NSBundle mainBundle] pathForResource:@"http://www.domain.com/audio/test.mp3"]; AVAudioPlayer*…
aldebasi
  • 21
  • 3
2
votes
1 answer

C# play embedded mp3 file

I know there are a dozen questions like this and I looked at the more popular ones, but I have had no luck in figuring out anything. I want to make a C# *.exe that would play a sound when opened, I decided it would be OK to start with a Console…
mathgenius
  • 503
  • 1
  • 6
  • 21
2
votes
2 answers

JavaFX MediaPlayer highly inaccurate seeking

I'm using 320 kbps roughly 1 hour long MP3 files. The project I'm working on would seek in a collection of music inside an MP3 file so that it can shuffle the songs. I would give the timestamps to the program and it would seek to the song. It would…
Daniel Sharp
  • 169
  • 1
  • 2
  • 12
2
votes
1 answer

Android app Mp3 file mimetype resolving to null

I am attempting to get the mimetype of an mp3 stored in Downloads. The problem is that mimetype always comes back null. I am unsure why. Note, making the extension lowercase (.mp3) doesn't make a difference. String filePath =…
heisenb0rg
  • 168
  • 13
2
votes
0 answers

LibGDX - Gwt - Sounds Don't Play On Mobile Browsers

I developed a game in LibGDX. I added some sound effects in mp3 format into my project. When I deploy my project to HTML, browsers on PC play those sounds, but browsers on mobile phones don't play them. How can I solve this problem?
ahgulum
  • 71
  • 4
2
votes
1 answer

Playing 15 audio tracks at once with <50ms latency?

To summarise, my question is: is it possible to decode and play 15 lossily-compressed audio tracks on-the-fly at the same time with under 50ms latency and with no stuttering? Background I'm writing a sound library in plain C for a game I'm creating.…
Alan
  • 120
  • 5
2
votes
2 answers

How to Read MP3

Using this post I was able to find out how to read mp3 files, but I'm still confused as to how to actually use this. File file = new File(filename); AudioInputStream in= AudioSystem.getAudioInputStream(file); AudioInputStream din = null; AudioFormat…
Michael
  • 2,673
  • 1
  • 16
  • 27
2
votes
2 answers

How can I launch the default media player from a .NET application?

I need to launch a media file from a URL from within my c# .NET application. Is there any way to do this natively in .NET? I don't need an embedded player, I just need the default player to launch. I have tried…
Martin Doms
  • 8,598
  • 11
  • 43
  • 60
2
votes
2 answers

How to play mp3 in iOS with Obj-C

I've a question in Objective-C, I'm working on an iOS application that should play a specific mp3 set of files -242 mp3 files exactly-, So could someone tell me what is the best way to play them all, I mean should I put them in a server, making them…
2
votes
1 answer

Javascript Binary String to MP3

I'm working on a project in browser that receives a multipart response from a server. The first part of the response is a bit of JSON metadata The second part of the response is a binary MP3 file. I need a way to extract that MP3 file from the…
Cuban Pete
  • 111
  • 1
  • 8
2
votes
3 answers

Help with PHP preg_replace() REGEX for MP3 URLs

Ive looked around quite a bit for a regex to help me find a anchor tag with an mp3 as the href. I would like first to get a regex which will locate this pattern so i can replace those links with a player and next i need to extract the link out of…
Jesse
  • 21
  • 1