tags:

views:

60

answers:

1

Hello Guys...

I need help in converting mp3 files to Apples Http Live Streaming protocol files. I am working on a music application and wants to use Live streaming in this app.

I got this link http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/ from google but it contains how to live stream video files.

Can anybody help me with mp3 files.

Thanks

+1  A: 

With ffmpeg you're also able to convert mp3-files only (no video). Just use:

ffmpeg -i yourmp3.mp3 ...your arguments... output.mp3
Tim van Elsloo
Thanks.. I'll check this out and will let you know if this works..
Saurabh
can you please give me some example command.. will be much appreciated ..
Saurabh
ffmpeg -i <in file> -acodec libmp3lame -ar 48000 -ab 64k <output file>But, why is your mp3 not already supporting Apple's protocol? I've never seen a mp3 on my iPhone (in Safari) that doesn't fit the protocol...?
Tim van Elsloo
My mp3 is working fine on iPhone but the problem is the app have to be HIG compatible. iPhone and iPad apps that send large amounts of audio or video data over cellular networks are required to use HTTP Live Streaming.http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008332-CH1-DontLinkElementID_29
Saurabh
Why don't you use the mediastreamsegmenter-command Apple explains and provides there? (by adding the -audio-only param)
Tim van Elsloo
I can't because the app is for a website(songs get added dynamically, I have to convert each song after upload) and that site is hosted on linux server...
Saurabh