Sometime last year I encountered a problem with playing mp3 flies online, The problem I had was the player which I had embedded on the page only worked for windows machines which was a problem because I work on a Linux machine all the time. I then decided to convert the mp3 files to a flv format and use a flv player on the site,this setup allowed for songs to be played on site via a flash player which worked on a Windows,Linux and Mac environments as long as the browser supported flash.

The code that did the trick:

ffmpeg -y -i myfile.mp3 -f flv -acodec libmp3 -ab 64 -ac 1 myfile.flv

This is useful if you are running a music site of some sort where you want to make sure that users can listen to the site music files online regard less of what operating system they are running.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Tags: , ,