[MPlayer-dev-eng] [PATCH] audio/x-wav mime type

Eric Lammerts mplayer-deveng at lists.lammerts.org
Thu Aug 2 18:49:31 CEST 2007


On 08/02/07 03:03, Diego Biurrun wrote:
> On Thu, Aug 02, 2007 at 09:01:05AM +0200, Diego Biurrun wrote:
>> On Thu, Aug 02, 2007 at 01:01:40AM -0400, Eric Lammerts wrote:
>>> attached patch adds an "audio/x-wav" -> DEMUXER_TYPE_AUDIO entry to 
>>> mime_type_table.
>>>
>>> Without this, streaming a .wav file fails if you use -nocache (it just 
>>> gives a bunch of "Stream not seekable!" messages and then gives up).
>> Do you have an example URL?
> 
> Found two:
> 
> http://www.dailywav.com/0807/differentpath.wav
> http://www.dailywav.com/0807/banquet.wav
> 
> I cannot reproduce the problem.

With those there's no problem, because that http server accepts
byte-ranges, which causes the STREAM_SEEK flag to be set. Then, when
mplayer wants to seek back to the beginning, it simply reconnects to the
server. I see mplayer connect three times when I play the files above.

This is an example of an http server without byte-ranges:
http://home.lammerts.org/testwav.cgi
(btw, the fact that it sounds pretty crappy has nothing to do with mplayer)

thanks for looking into this!

Eric



More information about the MPlayer-dev-eng mailing list