[MPlayer-dev-eng] [PATCH] Make stream support http redirect

Compn tempn at twmi.rr.com
Thu Nov 8 14:19:05 CET 2007


On Thu, 8 Nov 2007 08:40:19 +0100, Reimar Döffinger wrote:

>Hello,
>On Wed, Nov 07, 2007 at 08:41:34PM -0500, Compn wrote:
>> On Fri, 2 Nov 2007 17:28:39 +0800, Ulion wrote:
>> >There's a reported bug
>> >http://bugzilla.mplayerhq.hu/show_bug.cgi?id=927 The problem is the
>> >http module of stream will treat all redirect url as http protocol,
>> >so the redirected mms:// url is handled incorrectly. This patch
>> >give a chance to handle the redirected url in correct way.
>> >
>> >Just try ./mplayer -v http://swr3.streamlocator.de/


mplayer -playlist http://swr3.streamlocator.de/ works at least.


>> 
>> ignored? :)
>
>Can someone confirm that http-redirects to e.g. mms or whatever are
>even valid?


hmm, i dont remember an http redirect to mms
but i will look around for a sample.

mplayer gets stuck in a loop currently on some urls
with or without -playlist.
i havent tested this patch against this url.

not sure if the stream url is even valid, but this should show a bug
somewhere.


http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.ws.wmv

E:\temp>mplayer
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sai
ler.cnn.ws.wmv 
MPlayer dev-SVN-r24791-3.4.5 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) processor (Family: 6, Model: 4, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
116 audio & 238 video codecs
c:\winnt\fonts\comic.ttf doesn't look like a bitmap font description,
ignoring. Cannot load bitmap font: c:\winnt\fonts\comic.ttf

Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...
Connecting to server wmscnn.stream.aol.com[64.12.61.28]: 80...
Cache size set to 320 KBytes


Playing
http://wmscnn.stream.aol.com/cnn/tech/2006/12/28/obrien.polar.bears.sailer.cnn.
ws.wmv?MSWMExt=.asf. Resolving wmscnn.stream.aol.com for AF_INET...


MPlayer interrupted by signal 2 in module: open_stream



More information about the MPlayer-dev-eng mailing list