<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] "My File Doesn't
Work"</title></head><body>
<blockquote type="cite" cite><u><b>Combinations:</b></u></blockquote>
<blockquote type="cite" cite>testOnDemandRTSPServer.exe + MPlayer +
M1F1-mulaw-AFsp.wav (<b>works</b>)</blockquote>
<blockquote type="cite" cite>testOnDemandRTSPServer.exe + WMPlayer +
M1F1-mulaw-AFsp.wav (<b>streams, but no audio</b>)</blockquote>
<blockquote type="cite" cite> </blockquote>
<blockquote type="cite" cite>testOnDemandRTSPServer.exe + MPlayer +
test_not_working.wav (<b>does not work</b>)</blockquote>
<blockquote type="cite" cite>testOnDemandRTSPServer.exe + WMPlayer +
test_not_working.wav (<b>does not work</b>)</blockquote>
<div><br></div>
<div>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.</div>
<div><br></div>
<div>The problem with the "test_not_working.wav" file is
that it contains a non-standard WAV header. Specifically:</div>
<div><br></div>
<div>%hexdump -C test_not_working.wav | head<br>
00000000 52 49 46 46 6c 8b 06 00 57 41 56 45 73 69 67 6e
|RIFFl...WAVEsign|<br>
00000010 20 00 00 00 ea 27 77 c2 cc bf c3 84 1b 32 7f fc
| ....'w......2..|<br>
00000020 97 a1 42 c6 b1 91 bb b0 c4 ca f5 5f 38 50 81 9d
|..B........_8P..|<br>
00000030 3f 23 0b 29 66 6d 74 20 14 00 00 00 07 00 02 00
|?#.)fmt ........|<br>
00000040 40 1f 00 00 80 3e 00 00 02 00 08 00 00 00 00 00
|@....>..........|<br>
00000050 66 61 63 74 04 00 00 00 55 3d 57 00 65 79 72 65
|fact....U=W.eyre|<br>
00000060 08 00 00 00 00 00 00 00 00 00 00 00 64 61 74 61
|............data|<br>
00000070 00 8b 06 00 ff f5 ff f5 ff 7a ff fe ff fd ff 7d
|.........z.....}|<br>
00000080 ff 75 ff f8 f2 f1 f4 7a f8 fa fb f5 fb 6c ff f7
|.u.....z.....l..|</div>
<div>00000090 fc f7 fd f9 7c 79 7e 73 79 fc 75 71 7a 67 7e
f6 |....|y~sy.uqzg~.|<br>
</div>
<div>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.</div>
<div><br></div>
<div>Is this "sign" data defined anywhere? I have
never seen it described in any online description of the WAV file
format.</div>
<div><br></div>
<div>In any case, if you remove this data from the file, then you
should be able to stream it.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>