[Red5] 16K sampling rate in mp3

Tyler Kocheran rfkrocktk at gmail.com
Fri Feb 20 13:28:01 PST 2009


I suppose that Flash Player simply doesn't allow for playing 16k mp3's. My
recommendation would be to use a technology like Xuggle to upcast the stream
to 22KHz or downcast it to 11KHz.

On Fri, Feb 20, 2009 at 12:57 PM, Ritu Raj Tiwari
<rituraj.tiwari at gmail.com>wrote:

> Dear streaming Gurus,
> I was attempting to play an mp3 file with Red5 that had sample rate of
> 16000. I was getting a RuntimeException from MP3Reader. Digging around in
> the code, I see the comment:"/**
>
>      * Check if the file can be played back with Flash. Supported sample
> rates are
>
>      * 44KHz, 22KHz, 11KHz and 5.5KHz
>
>      *
>
>      * @param header       Header to check
>
>      */
>     private void checkValidHeader(MP3Header header) {..."
>
> Does anyone know where this limitation comes from?
>
> If I hack the code to let 16K file stream through, I am able to hear the
> audio in the FlashPlayer of my browser but with an annoying click sounds on
> what seems like every frame.
> Thanks in advance for your insights.
>
> --
> -Raj
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>


-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090220/6e916e3c/attachment.html>


More information about the Red5 mailing list