mp3

calculate mp3 average volume

好久不见. 提交于 2020-01-05 12:16:47
问题 I need to know the average volume of an mp3 file so that when I convert it to mp3 (at a different bitrate) I can scale the volume too, to normalize it... Therefore I need a command line tool / ruby library that gives me the average volume in dB. 回答1: You can use sox (an open source command line audio tool http://sox.sourceforge.net/sox.html) to normalize and transcode your files at the same time. EDIT Looks like it doesn't have options for bit-rate. Anyway, sox is probably overkill if LAME

Java Media Framework - MP3 Issues

独自空忆成欢 提交于 2020-01-05 10:27:37
问题 Im using Windows 7 and can "Java Platform SE Binary" in my sound mixer but yet still no sound seems to play. My code is: import javax.media.*; import java.io.File; import java.io.IOException; import java.net.URL; import java.net.MalformedURLExc; public class SimpleAudioPlayer { private Player audioPlayer = null; public SimpleAudioPlayer(URL url) throws IOException, NoPlayerException, CannotRealizeException { audioPlayer = Manager.createRealizedPlayer(url); } public SimpleAudioPlayer(File file

How to Play mp3 file from memory in delphi?

给你一囗甜甜゛ 提交于 2020-01-05 07:25:21
问题 I am downloading a mp3 file from the internet to memory using InternetReadFile. This works great, I can dump the file on disk and then play it, but I want to play the file without dumping it on disk. Is there a library i can use to achieve this functionality ? Some docs on how to use the library would be useful too. Thanks in advance. 回答1: You can use the BASS Delphi audio library On the other side, search for "MP3" on the 3D Buzz site. They have a very good series of video tutorials that

I have a few questions about the setup of an mp3 radio stream

℡╲_俬逩灬. 提交于 2020-01-05 05:55:29
问题 What's the difference between all of these? And what are their meanings? /;stream.mp3 [What exactly does the ; semicolon signify after the / slash?] Also, what's the difference if I take off the stream.mp3 , and just leave the semicolon after the slash /; or if I leave `stream.mp3 attached? /stream [How come this one has only stream , and that's it. [There's no ; semicolon after the / slash and there's no stream.mp3 ? Why would one stream be able to work without a semicolon, and why would one

ASP.NET MVC Not Serving MP3 Files

旧街凉风 提交于 2020-01-05 04:15:07
问题 I am trying to play an mp3 file as background music on a website. To serve it I created a folder called mp3 in Content and added the file to it. The html I use looks like <audio loop="loop" autoplay="autoplay"> <source src="/mp3/myfile.mp3" type="audio/mp3" /> </audio> The browser returns a 404 and yes.. I verified the name of the file is correct and even renamed it to "a.mp3" to make sure nothing funny was happening there. If I select Open in New Tab I also get 404. (i.e. mydomain.com/mp3/a

Play MP3 from stream

末鹿安然 提交于 2020-01-04 14:36:43
问题 Is there any way to play MP3 directly from a memory stream (without any temp. files) using VB.NET or C#? or play from SQLCe database? Thanks 回答1: I'll suggest you try Mp3Sharp. It is a port of JavaLayer and it is written in C#. I am currently using it and SlimDX to play ShoutCast Mp3 streams. So far it works very well. There is an Mp3Stream class which you use to read the stream and return a predetermined number of PCM bytes. You can write those bytes to a DirectSound buffer for playback if

SDL2 & SMPEG2 - Empty sound buffer trying to read a MP3

天涯浪子 提交于 2020-01-04 07:27:10
问题 I'm trying to load a MP3 in a buffer using the SMPEG2 library, which comes with the SDL2. Every SMPEG function calls returns without error, but when I'm done, the sound buffer is full of zeros. Here's the code : bool LoadMP3(char* filename) { bool success = false; const Uint32 Mp3ChunkLen = 4096; SMPEG* mp3; SMPEG_Info infoMP3; Uint8 * ChunkBuffer; Uint32 MP3Length = 0; // Allocate a chunk buffer ChunkBuffer = (Uint8*)malloc(Mp3ChunkLen); SDL_RWops *mp3File = SDL_RWFromFile(filename, "rb");

overwriting mp4/wmv video's audio content with a new audio in C#

女生的网名这么多〃 提交于 2020-01-04 05:37:53
问题 I have a video clip and an audio clip. I want to place the audio over a section of the video. The starting point of both match, but the video is slightly longer. I want to do this in C# preferably. Does anybody know how I can do this ? I want to batch up a huge bunch of short ( 10 -12 min clips), and so need this to be in code. Thnx for the help. -egon 回答1: Your requirements is a quite specific. And I can see only a one way how to solve it. In my opinion, you should follow in the way of using

MP3 in Audio Tag in Firefox

瘦欲@ 提交于 2020-01-04 05:25:12
问题 I have this code that I'm using to play an MP3: <p>Current Recording<br><br> <audio controls='controls'><source src='".$rec_url."' type='audio/mp3' /> <a href='".$rec_url."'>Click to Download the Current Recording</a> </audio></p> I can see the Audio player in Chrome, and I can download the link in IE8. My problem is I just see a black box with an X in it on Firefox. I don't need to play it in this player in Firefox, I am aware that Firefox doesn't support the playing of MP3s. But how do I

Playing mp3 files with mciSendString (MCIERR_CANNOT_LOAD_DRIVER)

空扰寡人 提交于 2020-01-04 03:41:05
问题 I am trying to write some code that can play an .mp3 file. I thought I could use the mciSendString call, but I am getting a strange error. So, when I have this code: int rc=mciSendString(L"open songname.mp3 alias song1", NULL, 0, 0); rc returns with the number 266, and the error string returned with GetErrorString was: "Unknown problem while loading the specified device driver." Error 266 is MCIERR_CANNOT_LOAD_DRIVER I have also tried: int rc=mciSendString(L"open songname.mp3 type mpegvideo