[MPlayer-users] connection refused

yyang at commscope.com yyang at commscope.com
Wed Sep 19 22:25:24 CEST 2007


Hi,

>If, for an unlikely example, your RTSP server's root directory were
>"/root/", then instead of "rtsp://server/root/share/hd.avi" the correct
>URL would probably be "rtsp://server/share/hd.avi". Does that make sense?

It makes a lot sense. I tried 
[root at workstation ~]# mplayer rtsp://server/share/potty.mpg
or
[root at workstation ~]# mplayer rtsp://server/potty.mpg

Both seemed made further. I saw "file format detected" message as shwon 
below. 

However, it seems there are quite Adecoder init failed while trying to 
streaming. What went wrong? For a comparison, I can play the same video 
file in a mounted nfs folder (the output is pasted below as well). 

[root at workstation ~]# mplayer rtsp://server/potty.mpg
MPlayer dev-SVN-r24562-4.1.1 (C) 2000-2007 MPlayer Team
CPU: AMD Opteron(tm) Processor 256 (Family: 15, Model: 37, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Playing rtsp://server/potty.mpg.
Resolving server for AF_INET6...
Couldn't resolve name for AF_INET6: server
Resolving server for AF_INET...
Connecting to server server[169.254.15.100]: 554...
A single media stream only is supported atm.
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://server/potty.mpg
Stream not seekable!
 file format detected.
Initiated "video/MPV" RTP subsession on port 32780
Initiated "audio/MPA" RTP subsession on port 32782
VIDEO:  []  0x0  0bpp  0.000 fps    0.0 kbps ( 0.0 kbyte/s)
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  9100.0 kbps (1137.5 
kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
Requested audio codec family [mp3acm] (afm=acm) not available.
Enable it at compilation.
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
Cannot sync MPA frame: 0
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x55.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Starting playback...
V:   0.0   0/  0 ??% ??% ??,?% 0 0 

Exiting... (End of file)
[root at workstation ~]# 
[root at workstation ~]# 
[root at workstation ~]# 
[root at workstation ~]# mplayer /mnt/nfs/potty.mpg 
MPlayer dev-SVN-r24562-4.1.1 (C) 2000-2007 MPlayer Team
CPU: AMD Opteron(tm) Processor 256 (Family: 15, Model: 37, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Playing /mnt/nfs/potty.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  9100.0 kbps (1137.5 
kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 854x480 Planar YV12 
[ASPECT] Warning: No suitable new res found!
New_Face failed. Maybe the font path is wrong. 2 ??% ??% ??,?% 0 0 
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   5.9 V:   5.9 A-V:  0.001 ct: -0.016 174/174  8%  0%  1.1% 0 0 
Exiting... (Quit)






The Wanderer <inverseparadox at comcast.net> 
Sent by: mplayer-users-bounces at mplayerhq.hu
09/18/2007 07:18 PM
Please respond to
"MPlayer usage questions, feature requests, bug reports" 
<mplayer-users at mplayerhq.hu>


To
"MPlayer usage questions, feature requests, bug reports" 
<mplayer-users at mplayerhq.hu>
cc

Subject
Re: [MPlayer-users] connection refused






yyang at commscope.com wrote:

> Hi,
> 
>> This line very likely is. It does not see the file in the location
>> where you asked it to look.
>> 
>> Am I correct in inferring that you have, in root's home directory
>> ("/root/") on your server machine, a directory called "share" which
>> you are using as the root for your RTSP server?
> 
> I always log my machines as root.

This is very dangerous (assuming you mean "log into"), but it is not
related to what I was talking about.

There are three different things being referred to with the word "root"
here: the root directory of the computer (which has the filename "/"),
the root user of the computer (which has the username "root"), and the
root directory of the server program (which can be any directory on the
server machine).

In the quote above, I was referring to the second and then to the third
of these.

> when I do pwd, it returns
> /root/share
> Here is my the video clip stored on server. 

That is not quite what I was asking.

The question is, what directory is your RTSP server configured to treat
as if it were the root directory?

>> If that is the case, then if your RTSP server follows the same
>> standard as most file server programs I've seen, the file
>> "/root/share/filename"
> 
> Yes, the file (hd.avi) is stored in /root/share

That was obvious from the URLs you tried; it is not what I was talking
about here.

>> would be accessed by the URL "rtsp://server/filename". You do not
>> want to specify the full path as you would use it on the server
>> machine; you want to specify the path relative to the directory
>> your server program is using as its root.
> 
> Sorry, I am not sure I understand this point but I fee it is crucial
> to the problem.
> what directory does my Live server uses? The live server is saved in
> /root. Since it is executible file.

As an executable file, it should properly be in a bin/ directory
somewhere which is also in your PATH. It should very likely not need to
be run as root (this is a general principle), and therefore to avoid
security issues it should not be run as root.

> I always run it by entering
> /root/livemediaserver

That is the server binary. What about its configuration files?

In one of the configuration files you should find a line indicating what
directory the RTSP server program will use as its root directory; this
is almost certainly not the same as the one the binary is in.

You need to put the files you want to serve under that directory
(subdirectories should be fine), and then leave out the path to that
directory when you are forming your URLs.

If, for an unlikely example, your RTSP server's root directory were
"/root/", then instead of "rtsp://server/root/share/hd.avi" the correct
URL would probably be "rtsp://server/share/hd.avi". Does that make sense?

If you do not know what the server program is configured to use as its
root directory, then you need to find out before you can make any files
available.

> I am not a linux guru although I wish to be one.

An admirable goal, though you seem to have quite a ways to go.



All of this discussion, incidentally, would be more appropriate on e.g.
a Live-related mailing list rather than on the MPlayer user list; so far
as I can tell your remaining problem appears to have nothing to do with
MPlayer directly, only with the way you are using the server.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.
_______________________________________________
MPlayer-users mailing list
MPlayer-users at mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users




More information about the MPlayer-users mailing list