mp3

How can I add audio (mp3) to a flv (just video) with ffmpeg?

Hi :) How can I add sound from a mp3-file to a flv file that has no audio? (With ffmpeg) When I use ffmpeg -i video.flv -i audio.mp3 -acodec copy -vcodec copy -ab 128k -ar 44100 output.flv I get this output: FFmpeg version SVN-r12758, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-shared --prefix=/usr ...

How to get the uncompressed file size of an MP3 file using CoreAudio API

Using CoreAudio, I am able to get the sampleRate (frames per second) and the file size, but in order to get the "total" time of the song, I need to know the Real file size of that compressed mp3. AudioStreamBasicDescription asbd; UInt32 asbdSize = sizeof(asbd); // get the stream format. err = AudioFileStreamGetProperty(inAudioF...

SoundManager + FFMPEG causing loud popping sound when streaming MP3s?

Hi there, I built an application that plays both uploaded original mp3 files, and copies that have been converted with FFMPEG. I am finding that in some cases the FFMPEG files have a horrible popping/clicking/screeching sound for a split second at startup (hear below). But when I analyze the file in an audio editor there is nothing ther...

Linux: Library to write ID3v2 data and cover art

I need to locate a command line tool that would allow me to write (read is not required) ID3v2 and album art to an MP3 file. Command line is required as it will be executed from PHP, so no graphical interface. Searches of Google have proved fruitless, so perhaps there is a tool available that will enable me to do this? ...

Play/Pause/Rewind mp3 Audio on Web Page

I've been looking for a while for a good web page embed-able mp3 player. I've considered going with the Wimpy Player, but it appears to have problems with Flash 10, and their customer support is unresponsive. My requirements are pretty simple, I want to be able to play/pause/rewind audio. I'd also like to be able to embed the player m...

have an MP3\WAV in backgroung of HTML

i want to have an MP3 constantly playing and looping in an HTML page after a page has been loaded. I also want to control this sound with HTML interface for PLAY\STOP and if i can tune up down the volume as well then it would be great but that's an optional. Is there a way to first load the sound file first and play it in a loop or ever...

Flash streaming player: shoutcast (mp3/aacplus), windows media audio

Is there a flash player that could handle all of the formats mentioned above. Or different players that could handle it? ...

Get mp3 total track time using either javascript or ASP.NET

I am using the below jQuery plugin for playing mp3 www.happyworm.com/jquery/jplayer However, there is a bug in Flash that the total play (track) time won't show up correctly UNTIL AFTER the whole mp3 is completed downloaded. I wonder if there is a way to work around this to get the correct total time using either javascript / another...

Advantages of creating .ram, .wvx, .m3u files for hosting and streaming audio/video files?

We will be soon hosting a large number of audio and video files that have been historically saved in 3 various formats. (.rm, .wmv, .mp3) Should we create pointer files (.ram, .wvx, .m3u) for Web site visitors and search engines to consume them? If I create links to the actual media files directly, what are the implications? Are the p...

How to stream a remote mp3 without using a full screen player? e.g. shoutcast

Hi, how do I play a remote .mp3 in an iPhone app with full control over the playback controls and visuals shown? I know MPMoviePlayerController can stream .mp3s but it takes over the whole screen. If you could just point me in the direction of an appropriate guide or class reference that would be great. ...

Java: Fade out music

Hello, I'm making a game. Now if my player goes to another level the music is still playing. Now I want to let the music fade out to let start the new music of the next level. I use mp3 to play. With the packages: jl1.0, mp3spi1.9.4, tritonus_share-0.3.6. Oh yeah. Volume is not supported in the FloatControll class. Sorry for my bad En...

How to crop a mp3 in ASP.NET + C#?

I am in an ASP.NET project using C#. The users can upload their MP3 (I have no control over the encoding) and specify a sample size and a sample starting point. On save, the system needs to create a sample of this MP3 based on the information provided. So the question is: How can Icrop a mp3 in ASP.NET + C#?? ...

How to crop a mp3 from x to x+n using ffmpeg?

Following this question I decided to use ffmpeg to crop MP3s. On another question I found this way of doing it: ffmpeg -t 30 -acodec copy -i inputfile.mp3 outputfile.mp3 The problem is that I don't want to crop the first 30 seconds, I want to crop from x to x+n, like from 30s to 100s. How would I go and do this? I'm reading the man f...

xslt playing an mp3 via xml

I have an xml feed and I need to play an mp3 from the feed. I have set up the player <div class="musicplayer"> <div id="musicplayercontainer060251712481gbakw0201569t"></div> <script type="text/javascript"> var flashvars = {file:"music/betty.mp3",as:"0"}; var params = {wmode: "transparent"}; var attributes = {}; swfo...

Automatically trimming a mp3 in PHP

Are there any ways to automatically trim an MP3 uploaded to a website to 30 seconds (or some other length) in PHP? If not, is there any good 3rd party services that could be integrated (transparently to the user) to achieve the same effect? Thanks. ...

Universal MP3 and WMA tag reader for Delphi

I know similar subjects have appeared in SO, but there wasn’t answer I am looking for. I need a Delphi library for reading tag information from music files. Currently I am using TJvID3v1 from JEDI library, but as far as I see, JEDI does not work with WMA files. I have found some manuals on how to implement such tag reading, but most of ...

Creating a sample mp3 with fade

I need to know if it is possible to create a 30 second sample MP3 from a WAV file. The generated MP3 file must feature a fade at the start and end. Currently using ffmpeg, but can not find any documentation that would support being able to do such a thing. Could someone please provide me the name of software (CLI, *nix only) that could...

Play mp3 files in a webpage without gaps?

I have a web page that I would like to play several mp3's one after the other without gaps when the page is loaded. I have tried a couple of js mp3 player type things (niftyplayer, jsPlayer, flash-mp3-player-js) but all f them have have gaps between tracks. Is there any way to do this, with flash or otherwise? ...

C# : concatenate 2 MP3 files

I tried to concatenate 2 MP3 files using the code below. I got a new file which I can play the first half of (complete first file), but the second half is silent. The length of the new file was correct. What do I do wrong? List<Byte[]> files = new List<byte[]>(); var tempfile = File.ReadAllBytes(Path.Combine(path, "1.mp3")); files.Add(t...

How do I add RIFF header to MP3 files programatically?

More information about what I want to do here; http://www.studiodust.com/riffmp3.html I want a way so that my control panel (made with Perl and Webmin) can do this automatically. Right now I have to rely on system calls and have a binary for Linux. Is there a library that does it for Perl or some other language? What's the best way of ...