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 base64 wav to base64 mp3 in JavaScript

I have a trouble in my app. I want to record a sound and store it in iOS using Cordova. I have already a base64/wav file, but it's very heavy so I want to convert it into a base64/mp3. Which is the algorithm that allows me to do…
mryuso92
  • 267
  • 4
  • 21
2
votes
3 answers

Read out Time/Length/Duration of an Mp3 song in Java

I wonder how I can read out the duration of an mp3 song. If I'm right it's not an ID3 Tag so I guess I have to calculate it somehow ? For the rest of the ID3 Tags I'm using this libary: http://javamusictag.sourceforge.net/index.html Cheers
Timothy
  • 608
  • 3
  • 10
  • 24
2
votes
1 answer

Malformed encryption mp3 to m3u8

I have a python function encoding a mp3 to m3u8. This function allows me to generate a m3u8 file along with its ts chunks. I can read this "playlist" using the native player on iOs. Unfortunately I can't achieve to do the using the…
Alexandre Nucera
  • 2,183
  • 2
  • 21
  • 34
2
votes
1 answer

"MPEG audio header not found" error when opening with TagLib after converting with ffmpeg

I converted a wma file simply by doing something like this... ffmpeg -i song.wma -f mp3 song.mp3 I can then play the mp3 file in Windows Media player, so it looks like the conversion worked. However, if I try to open the file in TagLib, I get an…
Avrohom Yisroel
  • 8,555
  • 8
  • 50
  • 106
2
votes
1 answer

PHP - MP3 proxy for streaming

I am working on an mp3 streaming web application. I am using an external API to get the mp3 url, the problem is that all mp3's are bounded to the IP requesting the file (in this case my server) and it can be streamed/downloaded only by the server,…
user3119384
  • 329
  • 4
  • 23
2
votes
2 answers

Adding tags to mp3 with eyed3 results in no change

I am trying to add tags (title, genre, etc.) to a mp3 file downloaded created with urllib in Python. Using eye3d and the example from their website, the program runs without any errors, but doesn't seem to do anything. When checking the details of…
Hi Hi
  • 366
  • 4
  • 20
2
votes
1 answer

how to make a button that share my res/raw/xxx.mp3 file

My app use MP3 files with MediaPlayer, i want to make a button than will share an MP3 file to whatsapp. my code is this: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); String audioClipFileName="bell.mp3"; …
Adam
  • 299
  • 1
  • 4
  • 19
2
votes
1 answer

How to make an MP3 file wait to play until after another MP3

I am working on a program that will play playlists consisting of MP3s. I am using the following MP3 Class import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import…
user4305589
  • 43
  • 1
  • 7
2
votes
2 answers

Joining mp3 files without delay at the end of each piece

I am writing a program which needs to join some guitar chords (in mp3 format), but without having that end of sound feeling for each part of it.. Using cat or mp3wrap still gives that kind of feeling... Basically I don't know how to come up with the…
israkir
  • 2,111
  • 7
  • 30
  • 39
2
votes
1 answer

JaudioTagger doesn't acually change tag fields

I'm building an application that edits tags on mp3 files using JAudioTagger. The only problem is that the mp3 file's fileds don't change when i open the file in Google Music app. TagOptionSingleton.getInstance().setAndroid(true); …
ben
  • 1,064
  • 3
  • 15
  • 29
2
votes
0 answers

write id3 tags using id3.net tagging library C#

I am using id3.net tagging library for reading and modifying tags,although with the help of this api i can read all id3 tags but i am facing problem in modifying tags.http://id3.codeplex.com/ Id3.Mp3File fs = new…
Ali
  • 557
  • 1
  • 9
  • 30
2
votes
1 answer

getting file duration Google App Cloud storage Server

I am storaging mp3 files in google cloud stoarge and I want to get the durations of the files. I've tried to do this but it is not working somehow: ListResult lr = gcsService.list(mybucketname, ListOptions.DEFAULT); while (lr.hasNext() &&…
2
votes
1 answer

MediaPlayer isn't working

How do I use MediaPlayer to play m4a files? This is my code: public void audioPlayerButtons(ActionEvent actionEvent) { String bip = "Songs/01 Clarity.m4a"; Media hit = new Media(bip); MediaPlayer mediaPlayer = new…
xox
  • 23
  • 2
2
votes
0 answers

why media player getCurrentPosition() is updated only once a second for .ogg format but once a 20 ms for mp3

I'm using media player and I need to query current position once a 50ms interval, however, getCurrentPosition seems to be updated only once a second or so if I play .ogg format. Here is extract from the log: 05-16 13:29:28.551 …
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488
2
votes
2 answers

Check if mp3 is playable in swift

I'm trying to download & play remote mp3s. Basically: User clicks the mp3, Download starts on background and then, when it's possible, the playback starts. Everything works almost fine - the download is performed by AFHTTPRequestOperation which…
animal_chin
  • 6,610
  • 9
  • 37
  • 41