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

Evuraan evuraan at gmail.com
Sun Nov 22 18:22:00 PST 2009


apparantly it is  oggfwd dying out, not ffmpeg2theora

$ ffmpeg2theora /dev/video0 -f video4linux2 --inputfps 15   -o
/tmp/test1.ogg -t 60


$ cat /tmp/test1.ogg | oggfwd  myhost 8000 mypass  /test.ogv; echo $?
oggfwd: Connected to server
notification: This doesn't look like a Speex file
141

$ dpkg -l |grep oggfwd
ii  oggfwd                               0.2-3
             a basic icecast source client for audio and


2009/11/22 Conrad Parker <conrad at metadecks.org>:
> 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) {
>      fs_free(header);
>      return FISH_SOUND_SPEEX;
>    }
>  }
>
> Though of course it could be nice if libspeex didn't write to stderr :)
>
> Conrad.
>


More information about the theora mailing list