[speex-dev] file magic

Jeff Stoner jstoner at blackboard.com
Wed Jul 16 07:18:56 PDT 2003



Just for kicks, I tossed together a magic file for the file utility.
It's just a quick hack.

#------------------------------------------------------------------------------
# speex:  file(1) magic for Ogg/Speex files
#
# From Jeff Stoner <leapfrog at freeshell.org>
#
# Based on the Ogg/Vorbis magic
#
# --- Ogg Framing ---
0		string		OggS		Ogg data
>4		byte		!0		UNKNOWN REVISION %u
##>4		byte		0		revision 0
>4		byte		0
##>>14		lelong		x		(Serial %lX)
# --- Speex packet - general header ---
>>28		string		Speex		Speex codec
>>>36		string		1.0.1		version 1.0.1

<p><p>[jstoner at leapfrog]$ file disc1_track1.spx 
disc1_track1.spx: Ogg data Speex codec version 1.0.1


-- 
Jeff Stoner <jstoner at blackboard.com>
Blackboard, Inc.
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Speex-dev mailing list