[MPlayer-users] RealMedia stream doesn't work with .smi file or authentication?
Mark Edgington
edgimarNO at SPAMlycos.com
Sat Nov 22 02:54:27 CET 2003
I have been experiencing difficulties in getting mplayer to read a stream
of a .smi file (I believe this stands for the SMIL format). I have no
problems with other realmedia streams, but these have given mplayer a hard
time... One complication is that I am trying to access an authenticated
stream (using the username and password which work fine with the RealOne
player). I assume this should not be a problem (trying to view an stream
using authentication). At the end of this message, I have provided a log
of what happens when I execute the command using an RSTP:// URL (I have
censored the username/password/IP address info from the log). Note that
the URL I've used for this actually comes from the wget'ed file
"http://123.1.1.1/ramgen/secure/f03/ece588251/09_09_03/gob.smi", which
contains the following:
rtsp://123.1.1.1:554/secure/f03/ece588251/09_09_03/gob.smi?cloakport=80,554,7070
--stop--
pnm://123.1.1.1:7070/secure/f03/ece588251/09_09_03/gob.smi?cloakport=80,554,7070
[end of file]
>From the output below, it appears that mplayer can't properly parse this
file. And if you supply the RSTP URL manually, mplayer doesn't seem to
know how to authenticate properly (even though I've provided it with the
correct -user and -password values).
If anybody has any ideas, I'd be glad to hear them...
When I use the http://... URL with mplayer, I get:
<initial output omitted ... >
[[[init getch2]]]
Playing http://123.1.1.1/ramgen/secure/f03/ece588251/09_09_03/gob.smi
Connecting to server 123.1.1.1[123.1.1.1]:80 ...
Request: [GET /ramgen/secure/f03/ece588251/09_09_03/gob.smi HTTP/1.0
Host: 123.1.1.1
User-Agent: MPlayer/1.0pre2-3.3.2
Connection: closed
]
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [0]
Fields:
0 - Date: Sat, 22 Nov 2003 01:33:37 GMT
1 - Server: RealServer
2 - Content-Type: audio/x-pn-realaudio
3 - Pragma: no-cache
4 - Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
5 - Content-Length: 182
--- HTTP DEBUG HEADER --- END ---
Content-Type: [audio/x-pn-realaudio]
Content-Length: [182]
Cache size set to 1024 KBytes
Connected to server: 123.1.1.1
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:0
Cache fill: 0.02% (182 bytes) CACHE2_SEEK: 0x0 <= 0x0 (0x0) <= 0x0
Checking for REAL
DEMUXER: freeing demuxer at 0x84b15b0
*** uninit(0x48)
[[[uninit getch2]]]
Config poped level=2
Config poped level=1
*** uninit(0x80)
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
max framesize was 0 bytes
----- end of output when using html:// URL ------
----- begin log of mplayer output when using rstp:// URL -------
demudi:/home/edgimar# mplayer -v -v -v -v -v -vo null -prefer-ipv4 -user
uname -passwd pword
rtsp://123.1.1.1:554/secure/f03/ece588251/11_18_03/goa.smi?cloakport=80,554,7070
MPlayer 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices K6-2 502.8 MHz (Family: 5, Stepping: 12)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow 3DNowEx SSE
Reading config file /etc/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open
'/root/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 61 audio & 157 video codecs
CommandLine: '-v' '-v' '-v' '-v' '-v' '-vo' 'null' '-prefer-ipv4' '-user'
'(username)' '-passwd' '(password)'
'rtsp://123.1.1.1:554/secure/f03/ece588251/11_18_03/goa.smi?cloakport=80,554,7070'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
init_freetype
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Failed to open /dev/rtc: Device or resource busy (mplayer should be setuid
root or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or
directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 52 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such device
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('goa.smi?cloakport=80,554,7070.conf') ->
'/root/.mplayer/goa.smi?cloakport=80,554,7070.conf'
[[[init getch2]]]
Playing
rtsp://123.1.1.1:554/secure/f03/ece588251/11_18_03/goa.smi?cloakport=80,554,7070
Not a Realmedia rtsp url. Trying standard rtsp protocol.
Connected to server: 123.1.1.1
This stream is non-cacheable
s->pos=0 newpos=0 new_bufpos=0 buflen=0
Stream not seekable!
Sending request: DESCRIBE
rtsp://123.1.1.1:554/secure/f03/ece588251/11_18_03/goa.smi?cloakport=80,554,7070
RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: MPlayer (LIVE.COM Streaming Media v2003.10.07)
Received DESCRIBE response: RTSP/1.0 401 Unauthorized
CSeq: 1
Date: Fri, 21 Nov 2003 18:51:58 GMT
Set-Cookie:
cbid=hkdgohcihggfllemeopokpqqprjrptopekhgkihldgikllplonprkppqmrfsrqopefgjohdl;path=/;expires=Thu,31-Dec-2037
23:59:59 GMT
WWW-Authenticate: Basic realm="Helix.IITOnlineRM"
Failed to get a SDP description from URL
"rtsp://123.1.1.1:554/secure/f03/ece588251/11_18_03/goa.smi?cloakport=80,554,7070":
cannot handle DESCRIBE response: RTSP/1.0 401 Unauthorized
No stream found.
*** uninit(0x248)
DEMUXER: freeing demuxer at 0x84b1350
[[[uninit getch2]]]
Config poped level=2
Config poped level=1
*** uninit(0x80)
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
max framesize was 0 bytes
------ end log -------
More information about the MPlayer-users
mailing list