[MPlayer-users] Problem playing nsv stream (server/client issue - only seems to play with winamp)

Siddharth Taneja siddharth.taneja at gmail.com
Sat Aug 26 00:40:39 CEST 2006


Hi,

Bear with me on this one. Its going to have some amount of detail as I have
banged my head against a lot of debugging options! :)

I have been trying to play a nsv stream using mplayer (revision 19537)
(08/25) on  linux (fedora core 5). The stream plays well with winamp on
windows (but does not play with vlc).
This is the initial url that I got was
mms://maxstreaming2.no-ip.org:7050/streamtv08.nsv
 Playing with this mplayer just seems to hang waiting for the server to send
a reply (which eventually times out - SIGPIPE - and causes a core dump).
Here is the core dump:
----------------------------------------------------------------------------------
(gdb) set args mms://maxstreaming2.no-ip.org:7050/streamtv08.nsv
(gdb) run

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread -1208805168 (LWP 3584)]
0x004ad402 in __kernel_vsyscall ()
(gdb) where
#0  0x004ad402 in __kernel_vsyscall ()
#1  0x0076b1b1 in send () from /lib/libpthread.so.0
#2  0x081b893f in send_command (s=8, command=196610, switches=0, extra=0,
length=58, data=0xbfa35c5c "") at asf_mmst_streaming.c:118
#3  0x081b8c51 in asf_mmst_streaming_start (stream=0x8c7e4d8) at
asf_mmst_streaming.c:580
#4  0x081b53ca in open_s (stream=0x8c7e4d8, mode=0, opts=0x0,
file_format=0xbfa523cc) at asf_streaming.c:69
#5  0x081a2240 in open_stream_plugin (sinfo=0x85ea3a0, filename=0x8c6dcf8
"mms://maxstreaming2.no-ip.org:7050/streamtv08.nsv", mode=0,
options=Variable "options" is not available.
) at stream.c:174
#6  0x081a24d1 in open_stream_full (filename=0x8c6dcf8
"mms://maxstreaming2.no-ip.org:7050/streamtv08.nsv", mode=0, options=0x0,
file_format=0xbfa523cc) at stream.c:214
#7  0x081a0567 in open_stream (filename=0x8c6dcf8 "mms://maxstreaming2.no-
ip.org:7050/streamtv08.nsv", options=0x0, file_format=0xbfa523cc) at open.c
:46
#8  0x0807aced in main (argc=2, argv=0xbfa52484) at mplayer.c:3172
----------------------------------------------------------------------------------


* On doing a tcp packet capture on winamp (in windows) it seemed like winamp
was using http headers. Here is the tcp trace (data only)
client (winamp) ---> server

----------------------------------------------------------------------------------
GET /streamtv08.nsv
HTTP/1.1
Accept: */*
User-Agent: NSPlayer/10.0.0.3802
Host: maxstreaming2.no-ip.org
X-Accept-Authentication: Negotiate, NTLM, Digest, Basic
Pragma: version11-enabled=1
Pragma: no-cache,rate=1.000,stream-time=0,stream-offset=0:0,packet-num=4294967295,max-duration=0

Pragma: packet-pair-experiment=1
Pragma: pipeline-experiment=1
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.startupprofile
Pragma: xClientGUID={3300AD50-2C39-46c0-AE0A-E5C8630096D7}
Accept-Language: en-US, *;q=0.1

server ---> client (winamp)
HTTP/1.1 200 OK
Pragma: packet-pair-experiment=1, no-cache, pipeline-experiment=1,
client-id=1770920681, xResetStrm=1, features="broadcast", timeout=60000
Content-Type: application/vnd.ms.wms-hdr.asfv1
Server: Cougar/9.01.01.3814
Content-Length: 7921
Date: Fri, 25 Aug 2006 21:10:25 GMT
Cache-Control: no-cache, x-wms-stream-type="broadcast"
Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile

----------------------------------------------------------------------------------

The stream data seemed to follow after this.
As this looked like a http thing I decided to replace mms with http. It
seemed to make things better -

----------------------------------------------------------------------------------
mplayer -v http://maxstreaming2.no-ip.org:7050/streamtv08.nsv

MPlayer dev-SVN-r19528-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.86GHz (Family: 6, Model: 13,
Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path('codecs.conf') -> '/home/staneja/.mplayer/codecs.conf'
Reading /home/staneja/.mplayer/codecs.conf: Can't open
'/home/staneja/.mplayer/codecs.conf': No such file or directory
Reading /opt/mplayer//etc/mplayer/codecs.conf: Can't open
'/opt/mplayer//etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'http://maxstreaming2.no-ip.org:7050/streamtv08.nsv'
init_freetype
get_path('font/font.desc') -> '/home/staneja/.mplayer/font/font.desc'
font: can't open file: /home/staneja/.mplayer/font/font.desc
font: can't open file: /opt/mplayer//share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
Using nanosleep() timing
get_path('input.conf') -> '/home/staneja/.mplayer/input.conf'
Can't open input config file /home/staneja/.mplayer/input.conf: No such file
or directory
Can't open input config file /opt/mplayer//etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config
get_path('streamtv08.nsv.conf') ->
'/home/staneja/.mplayer/streamtv08.nsv.conf'

Playing http://maxstreaming2.no-ip.org:7050/streamtv08.nsv.
get_path('sub/') -> '/home/staneja/.mplayer/sub/'
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
STREAM_HTTP(1), URL: http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Resolving maxstreaming2.no-ip.org for AF_INET6...
Couldn't resolve name for AF_INET6: maxstreaming2.no-ip.org
Resolving maxstreaming2.no-ip.org for AF_INET...
Connecting to server maxstreaming2.no-ip.org[72.232.205.50]: 7050...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.0]
http minor version: [0]
uri:                [(null)]
method:             [(null)]
status code:        [200]
reason phrase:      [OK]
body size:          [143]
Fields:
 0 - Content-Type: video/x-ms-asf
 1 - Cache-Control: max-age=0, no-cache
 2 - Server: Cougar/9.01.01.3814
 3 - Content-Length: 143
 4 - Date: Fri, 25 Aug 2006 22:22:31 GMT
 5 - Pragma: no-cache, xResetStrm=1
 6 - Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
--- HTTP DEBUG HEADER --- END ---
Content-Type: [video/x-ms-asf]
Content-Length: [143]
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
STREAM_ASF, URL: http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Trying ASF/HTTP...
Resolving maxstreaming2.no-ip.org for AF_INET6...
Couldn't resolve name for AF_INET6: maxstreaming2.no-ip.org
Resolving maxstreaming2.no-ip.org for AF_INET...
Connecting to server maxstreaming2.no-ip.org[72.232.205.50]: 7050...
Server returned 503:Service Unavailable
Failed to parse header.
  ===> ASF/HTTP failed
Failed, exiting.
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
STREAM_HTTP(2), URL: http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Resolving maxstreaming2.no-ip.org for AF_INET6...
Couldn't resolve name for AF_INET6: maxstreaming2.no-ip.org
Resolving maxstreaming2.no-ip.org for AF_INET...
Connecting to server maxstreaming2.no-ip.org[72.232.205.50]: 7050...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.0]
http minor version: [0]
uri:                [(null)]
method:             [(null)]
status code:        [200]
reason phrase:      [OK]
body size:          [143]
Fields:
 0 - Content-Type: video/x-ms-asf
 1 - Cache-Control: max-age=0, no-cache
 2 - Server: Cougar/9.01.01.3814
 3 - Content-Length: 143
 4 - Date: Fri, 25 Aug 2006 22:22:32 GMT
 5 - Pragma: no-cache, xResetStrm=1
 6 - Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
--- HTTP DEBUG HEADER --- END ---
Content-Type: [video/x-ms-asf]
Content-Length: [143]
Cache size set to 320 KBytes
STREAM: [null] http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeu, Arpi? who?
STREAM: Comment: plain http, also used as fallback for many other protocols
CACHE_PRE_INIT: 0 [0] 143  pre:65536  eof:1
Cache fill:  0.04% (143 bytes)
ASF_check: not ASF guid!

vo: x11 uninit called but X11 not inited..

Exiting... (End of file)
----------------------------------------------------------------------------------

I also tried faking the user-agent to that of winamp "NSPlayer/10.0.0.3802"
but that gives me 503: Service unavailable error (it does not even reach the
caching phase).

----------------------------------------------------------------------------------
<snip>
Failed to parse header.
  ===> ASF/HTTP failed
Failed, exiting.
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Filename for url is now http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
STREAM_HTTP(2), URL: http://maxstreaming2.no-ip.org:7050/streamtv08.nsv
Resolving maxstreaming2.no-ip.org for AF_INET6...
Couldn't resolve name for AF_INET6: maxstreaming2.no-ip.org
Resolving maxstreaming2.no-ip.org for AF_INET...
Connecting to server maxstreaming2.no-ip.org[72.232.205.50]: 7050...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.0]
http minor version: [0]
uri:                [(null)]
method:             [(null)]
status code:        [503]
reason phrase:      [Service Unavailable]
body size:          [0]
Fields:
 0 - Server: Cougar/9.01.01.3814
 1 - Date: Fri, 25 Aug 2006 22:26:58 GMT
 2 - Pragma: no-cache, timeout=60000
 3 - Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
--- HTTP DEBUG HEADER --- END ---
Server returned 503: Service Unavailable
File not found: 'maxstreaming2.no-ip.org:7050/streamtv08.nsv'
Failed to open http://maxstreaming2.no-ip.org:7050/streamtv08.nsv.

vo: x11 uninit called but X11 not inited..

Exiting... (End of file)
----------------------------------------------------------------------------------


Any Clues? Please let me know if I can give any more details. This is very
much reproducible.

Thanks

Siddharth



More information about the MPlayer-users mailing list