mp3

TagLib-sharp: Reading metadata from HttpPostedFile object

谁都会走 提交于 2019-12-05 06:16:55
User post their MP3s to my site and I would like to read the metadata from the files before they are stored in the CDN. TagLib-Sharp seems to be library to go for this, but I can't see any way to open a HttPostedFile, which I don't not want to save to disk, and retrieve the metadata. Anybody have an example on how to do this with taglib-sharp? Edit: It seems that IFileAbstraction can solve this. Anybody know how to use IFileAbstraction? You would want to do something as follows. The caveat is that the steam has to be seekable an I do not know if HttpPostedFile.InputStream is. TagLib.File

How to read metadata from mp3?

谁说胖子不能爱 提交于 2019-12-05 06:14:55
I am trying to read the tags from mp3 files. I was wondering if anyone had any suggestions as to how to do this? I don't want to use a 3rd party library to handle the reading/organizing for me. The purpose of this is just for me to figure out how to read the encoded data? I know that there are primarily 2 different formats, ID3v1 and ID3v2. Really, my issue is just being able to obtain the information in a format that I can handle it. I have a couple ideas for actually storing the data I need and parsing the information once I get it. I mainly just need some guidance for how to collect the

Playing audio with HTML5 in Android browser

你。 提交于 2019-12-05 04:22:00
I want to play audio in the Android browser, using the html5 <audio> tag. It works fine in the iPhone browser, but not in Android. I'm using Android Virtual Device 4.0.3 . Does anyone know why? The Android source: webView.loadUrl("file:///android_asset/www/test.html"); The HTML file: <audio controls="controls" format="mp3"> <source src="achievement.mp3" /> </audio> (i couldn't hear the audio with <embed> and <object> tags either) Asyraf Azmin I found the solution here Embed Background Audio in Android >= 2.3 Browser <audio id="audio1" controls="controls" loop="loop" autoplay="autoplay" >

c++ mp3 library [closed]

戏子无情 提交于 2019-12-05 04:12:59
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 5 years ago . I am exhausted searching for a c++ mp3 decoding library, preferably free (like lgpl) and cross-platform or for windows and mac. Can anyone suggest such library and post some tutorial for using it? ffmpeg and sdl (sdl_sound, sdl_mixer) aren't compiling. I am unable to get mpg123 working - is it for linux world only or what? Is there some tutorial on using mpg123 on windows? mpg123 is unable to find some symbols

Java detecting an audio file (mp3)

不问归期 提交于 2019-12-05 03:24:19
问题 I have this code that reads an mp3 file import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.UnsupportedAudioFileException; public class Sound { public static void main(String[] args) { File sampleFile = new File("test.mp3"); try { AudioSystem.getAudioFileFormat(sampleFile); } catch (UnsupportedAudioFileException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch

Chrome won't play mp3 files?

时光怂恿深爱的人放手 提交于 2019-12-05 02:51:31
There's something very weird on my server- chrome won't play mp3 files on it. for example, when chrome is pointed to an mp3 file on first server: http://tinyurl.com/czqfw5a - it won't play. When I place the same file on my second server: http://tinyurl.com/cju4yg4 - it works fine. I checked http response headers, on both servers it looks fine- mime type is set correctly. The problem happens only with chrome. ff / ie work fine. Anyone have an idea? Short story , it's this bug: http://code.google.com/p/chromium/issues/detail?id=110309 Long story is in the way it works, Chrome asks for the MP3

How to get the duration of an MP3 file in Android [duplicate]

微笑、不失礼 提交于 2019-12-05 02:30:40
问题 This question already has answers here : Get mp3 duration in android (6 answers) Closed 6 months ago . I am working on a media player project and I want to rotate an image according to the length of the MP3 file that I am playing, i.e. the image should stop rotating when the song is ended. I want to get the duration of the selected MP3 file so I can time the rotation. I read this question Get PCM data from an MP3 file in Android but I couldn't see how to read the song duration. How can I do

How to convert .caf to .mp3 file programmatically on the iPhone or iPad?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 02:08:38
问题 is there a way to programmatically convert .caf audio files to .mp3 audio files on the iPad platform? 回答1: There is NO way to encode TO mp3 on the iPhone. Apple does not provide the encoders for mp3, presumably due to licensing. 回答2: OSStatus AudioConverterFillComplexBuffer( AudioConverterRef inAudioConverter, AudioConverterComplexInputDataProc inInputDataProc, void *inInputDataProcUserData, UInt32 *ioOutputDataPacketSize, AudioBufferList *outOutputData, AudioStreamPacketDescription

Safari doesn't show duration of mp3 served from php correctly

…衆ロ難τιáo~ 提交于 2019-12-04 23:57:31
Original question I'm serving an mp3 file from a ZF2 controller action. This works fine in all browsers except for Safari on OS X and iPhone/iPad. The audio plays, but the duration is just displayed as NaN:NaN, whereas in every other browser the correct duration is being displayed. I went over all the threads on SO talking about the same problem and it seems like it has something to do with the response headers and the Content-Range and Accept-Ranges headers in particular. I've tried all the different combinations but still to no avail - Safari still refuses to display the duration correctly.

mp3 audio merging with -itsoffset using ffmpeg: no effect

℡╲_俬逩灬. 提交于 2019-12-04 23:55:20
问题 I use ffmpeg to merge mp3's in my node server. It works but the offset doesn't have any effect.. I can't see what is wrong then i'd like to get your help :) var command = "ffmpeg -i "+ input1+ " -itsoffset 40 -i " + input2 +" -filter_complex amerge -c:a libmp3lame -q:a 4 "+ output; exec(command, function (error, stdout, stderr) { if (stdout) console.log(stdout); if (stderr) console.log(stderr); if (error) { console.log('exec error: ' + error); response.statusCode = 404; response.end(); } else