[Icecast-dev] libshout: Streaming MPEG Audio Layer 2
Nicholas J Humfrey
njh at ecs.soton.ac.uk
Thu Jul 20 09:18:59 PDT 2006
Hi,
I have been trying to stream MPEG Audio Layer 2 using libshout in my
dvbshout program:
http://www.ecs.soton.ac.uk/~njh/dvbshout/
However I have been using the shout_send_raw() API call because the
MPEG audio header parser rejects audio that isn't Layer 3. Streaming
layer 2 works in exactly the same way as Layer 3 and without any
problems.
Would it be possible to get src/mp3.c changed so that it accepts
other layers?
From (line 299):
/* check for the right layer */
if (mh->layer != 2)
return 0;
To:
/* check that layer is valid */
if (mh->layer == 0)
return 0;
http://www.mp3-tech.org/programmer/frame_header.html
Thanks,
nick.
More information about the Icecast-dev
mailing list