[theora] ffmpeg2theora 0.25 : This doesn't look like a Speex file

Conrad Parker conrad at metadecks.org
Sun Nov 22 18:09:45 PST 2009

2009/11/23 ogg.k.ogg.k at googlemail.com <ogg.k.ogg.k at googlemail.com>:
> libspeex writes "This doesn't look like a Speex file" when passed a
> header packet which isn't actually one (eg, when one tries to probe
> for Speexiness).
> It doesn't in itself mean that something is wrong, just that the data
> probed isn't Speex.

Is this happening in ffmpeg2theora or in oggfwd?

It would probably be a good idea to check for the speex header, eg
(from libfishsound):

  if (!strncmp ((char *)buf, "Speex   ", 8)) {
    /* if only a short buffer was passed, do a weak identify */
    if (bytes == 8) return FISH_SOUND_SPEEX;

    /* otherwise, assume the buffer is an entire initial header and
     * feed it to speex_packet_to_header() */
    if ((header = speex_packet_to_header ((char *)buf, (int)bytes)) != NULL) {
      return FISH_SOUND_SPEEX;

Though of course it could be nice if libspeex didn't write to stderr :)


More information about the theora mailing list