[Icecast-dev] audio/x-mpeg

Nicholas Humfrey njh at ecs.soton.ac.uk
Thu Sep 9 07:45:54 PDT 2004


Hi,

I have been relaying a stream from the dabusb stream server 
(http://www.baycom.de/products/dabusb/) using icecast2.

DAB-USB uses the MIME type audio/x-mpeg for its audio streams, which 
icecast 2 doesn't support.

Fix is very easy - add the following couple of lines to format.c:

     else if(strcmp(contenttype, "audio/x-mpeg") == 0)
         return FORMAT_TYPE_MP3;


On a pedantic note - shouldn't FORMAT_TYPE_MP3 be 
FORMAT_TYPE_MPEG_AUDIO ? I am in fact streaming MPEG Audio Layer 2.


Cheers,

nick.


More information about the Icecast-dev mailing list