[FFmpeg-devel] [PATCH] Speex decoding via libspeex

Art Clarke aclarke
Tue Oct 21 21:17:26 CEST 2008

On Mon, Oct 20, 2008 at 11:45 PM, David Conrad <lessen42 at gmail.com> wrote:
> On Oct 21, 2008, at 2:36 AM, Diego Biurrun wrote:
>> On Tue, Oct 21, 2008 at 02:30:01AM -0400, David Conrad wrote:
>>> This adds decode support for Speex using libspeex. Tested with
>>> talk109-
>>> q5.spx and speexaudio.flv
>>> I'm not sure the best way to handle Speex in flv;
>> Since when does Speex exist in flv?  Isn't Ogg the preferred
>> container?
> Since Flash 10 just recently came out; I'd say see issue 605 if
> roundup wasn't down.
>> Build system part of the patch is OK.
>> Diego
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

Hi David,

It looks like (from the investigation we've done on Red5) that Adobe
always passed 16khz audio in the FLV under Flash Player 10.  It sends
a audio-rate ID of "0" in that case, so you're save hardcoding
avctx->sample_rate to 16000 if the codec is speex.  That should fix
the ffmpeg -i problem.

Patch attached.

See here for background:

- Art
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081021/0ccc60e4/attachment.txt>

More information about the ffmpeg-devel mailing list