mp3

How to get meta data out of mp3 files

天大地大妈咪最大 提交于 2019-12-17 19:44:35
问题 Can anyone recommend a good standalone class (not part of PEAR) or another method for me to grab some basic meta data from about 1,400 MP3 files? 回答1: http://getid3.sourceforge.net/ Works with both ID3 v1 and V2. Reads more than just id3 but should fit the bill. You can also play with the following taken from http://www.htmlhelpcentral.com/messageboard/showthread.php?t=12006 <? class CMP3File { var $title;var $artist;var $album;var $year;var $comment;var $genre; function getid3 ($file) { if

How to play mp3 files in C#?

走远了吗. 提交于 2019-12-17 18:28:43
问题 I'm trying to play an MP3 file in C# using this guide: http://www.crowsprogramming.com/archives/58 And I'm doing everything listed, but I still can't play any music in my C# program. Can anyone tell me what I'm doing wrong? static void Main(string[] args) { WMPLib.WindowsMediaPlayer a = new WMPLib.WindowsMediaPlayer(); a.URL = "song.mp3"; a.controls.play(); } The music file "Song" is in the bin folder. 回答1: I haven't used the Windows Media Player COM object, but here's a link to an

How to convert MP3 to WAV in Python

混江龙づ霸主 提交于 2019-12-17 18:04:43
问题 If I have an MP3 file how can I convert it to a WAV file? (preferably, using a pure python approach) 回答1: In a comment on sbery2A's answer, you said you want to put an MP3 decoding feature into Google App Engine. Your only possible hope is to use Python to send the MP3 data to another server, and do the MP3 decode on that server, and then send the decoded data back to the App Engine server. Google isn't going to let you put heavy load on the CPUs of the App Engine servers by doing the MP3

LineUnavailableException for playing mp3 with java

笑着哭i 提交于 2019-12-17 16:52:09
问题 My goal is to play an mp3 file from Java. With every approach that I took, it always fails with a LineUnavailableException . AudioInputStream inputStream = AudioSystem.getAudioInputStream(new URL("http://localhost:8080/agriserver/facebook/sound/test6.mp3")); Clip clip = AudioSystem.getClip(info); clip.open(inputStream); clip.start(); Failed attempts to fix it: Use Sun's mp3 plugin. Use Jlayer 3rd party library Use Tritonus 3rd party library Re-encode the mp3 with Sony Sound Forge, Adobe Sound

MP3 Encoding in Java

谁都会走 提交于 2019-12-17 16:28:45
问题 I need an OpenSource API in Java, which can encode *.wav and *.au formats to MP3 and vice-versa. I have evaluated Java Sound API and LameOnJ, but they do not meet my requirements and are not stable, respectively. Please suggest one that is free and platform independent. 回答1: There may not be an adequate answer for you, yet, as the MP3 format requires the authors of decoder/encoders to obtain a license from the Fraunhofer Institute. I think the the LAME library is distributed from a country

Define 'valid mp3 chunk' for decodeAudioData (WebAudio API)

送分小仙女□ 提交于 2019-12-17 15:35:49
问题 I'm trying to use decodeAudioData to decode and play back an initial portion of a larger mp3 file, in javascript. My first, crude, approach was slicing a number of bytes off the beginning of the mp3 and feeding them to decodeAudioData. Not surprisingly this fails. After some digging it seems that decodeAudioData is only able to work with 'valid mp3 chunks' as documented by Fair Dinkum Thinkum, here. However there is no clarification about the structure of a valid mp3 chunk (the author of the

How can I compile lame as static library(.a) for armv6 and armv7 of iPhone?

时光怂恿深爱的人放手 提交于 2019-12-17 15:32:36
问题 LAME(http://lame.sourceforge.net/) is a library written in c language. It can convert PCM sound files to MP3 files. I use it to convert sound files to MP3 files on iPhone. The source PCM sound files is recorded by microphone. In order to include the LAME into my XCode Project, I need to compile the LAME to 3 static libraries(.a), for i386(IOS Simulator), armv6 and armv7. After a lot of search, I have complied a static library for i368 version(iOS Simulator) successfully. Here is commands: .

How to stream mp3 using pure Java

自作多情 提交于 2019-12-17 13:55:21
问题 Is it possible to stream mp3s using pure Java? If so, what are the best resources to implement this. If not, are any other music formats streamable using Java only? 回答1: As Mario says, JMF - Java Media Framework is a good starting point. What Mario does not say is that Sun killed MP3 support since 2.1.1b as detailed in the "My Lost Streaming MP3 Article" blog entry. So you need to add a plugin to support MP3: the JMF Formats list does mention MP3 (under the ACM -- Window's Audio Compression

How to play audio file from raw/assets folder on the native/default media player?

六眼飞鱼酱① 提交于 2019-12-17 13:49:08
问题 I know i can play an mp3 file in the media player like that: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(YOUR_SONG_URI); intent.setDataAndType(Uri.fromFile(file), "audio/*"); startActivity(intent); Following this link I tried to get the URI like: Uri audio = Uri.parse("android.resource://com.audio.test/"+R.raw.audio1); Log.d(TAG,"uri:"+audio.toString()); and Uri audio = Uri.parse("android.resource://com.audio.test/raw/audio"); Log.d

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

ⅰ亾dé卋堺 提交于 2019-12-17 06:31:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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? 回答1: Taglib# is the best. It's direct port of the TagLib C library to C#. To install TagLib#, run the following command in the Package Manager Console in