[Live-devel] "My File Doesn't Work"

Ross Finlayson finlayson at live555.com
Thu Jun 9 14:08:00 PDT 2011


>Combinations:
>testOnDemandRTSPServer.exe + MPlayer + M1F1-mulaw-AFsp.wav (works)
>testOnDemandRTSPServer.exe + WMPlayer + M1F1-mulaw-AFsp.wav 
>(streams, but no audio)
>
>testOnDemandRTSPServer.exe + MPlayer + test_not_working.wav (does not work)
>testOnDemandRTSPServer.exe + WMPlayer + test_not_working.wav (does not work)

First, one can never expect Windows Media Player to be able to play a 
standards-compliant RTSP/RTP stream, so one should never use it for 
testing.

The problem with the "test_not_working.wav" file is that it contains 
a non-standard WAV header.  Specifically:

%hexdump -C test_not_working.wav | head
00000000  52 49 46 46 6c 8b 06 00  57 41 56 45 73 69 67 6e  |RIFFl...WAVEsign|
00000010  20 00 00 00 ea 27 77 c2  cc bf c3 84 1b 32 7f fc  | ....'w......2..|
00000020  97 a1 42 c6 b1 91 bb b0  c4 ca f5 5f 38 50 81 9d  |..B........_8P..|
00000030  3f 23 0b 29 66 6d 74 20  14 00 00 00 07 00 02 00  |?#.)fmt ........|
00000040  40 1f 00 00 80 3e 00 00  02 00 08 00 00 00 00 00  |@....>..........|
00000050  66 61 63 74 04 00 00 00  55 3d 57 00 65 79 72 65  |fact....U=W.eyre|
00000060  08 00 00 00 00 00 00 00  00 00 00 00 64 61 74 61  |............data|
00000070  00 8b 06 00 ff f5 ff f5  ff 7a ff fe ff fd ff 7d  |.........z.....}|
00000080  ff 75 ff f8 f2 f1 f4 7a  f8 fa fb f5 fb 6c ff f7  |.u.....z.....l..|
00000090  fc f7 fd f9 7c 79 7e 73  79 fc 75 71 7a 67 7e f6  |....|y~sy.uqzg~.|

Note that after "WAVE" and before "fmt ", there's a chunk of data 
beginning with "sign".  Our server code doesn't recognize this data, 
and is therefore rejecting the WAV file as being invalid.

Is this "sign" data defined anywhere?  I have never seen it described 
in any online description of the WAV file format.

In any case, if you remove this data from the file, then you should 
be able to stream it.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110609/c08ae01f/attachment.html>


More information about the live-devel mailing list