[MPlayer-dev-eng] Playlists & MPlayer

Bertrand Baudet bertrand_baudet at yahoo.com
Sat Jan 11 19:54:53 CET 2003


On Saturday 11 January 2003 06:15 pm, Arpi wrote:

[snip]

> > Ok, this works, but is imho not nice, as it duplicates code ... (Can
> > Streaming layer ever detect the format right in all cases ?)

Most of the time it does it work well. Of course if you setup a web
server and feed a mime type with a bad movie, it might fail.
This shouldn't happen with a genuine windows media server, real server,
darwin server or an icecast server.

> since when is it the job of the stream layer to detect format?
> ok i know there are some hacks in the network streaming code (network.c)
> to guess fileformat from MIME types, but it's a hack.

A hack! Not really. And it doesn't really guess the fileformat. For example 
if the network protocol is the one used by the icecast servers, then you know
that the fileformat is MP3. If you connect to a windows media server (you can
know that with the user-agent of the server) then you know that the fileformat
will be ASF. The demuxer type is set based on those knowledge return
by the network layer. That should avoid to try all the demuxers.

This is not really a hack, is it?

[snip]

Bertrand


More information about the MPlayer-dev-eng mailing list