Group: linux.gentoo.user
From: Michael Niggli
Date: Friday, February 29, 2008 2:50 AM
Subject: Re: [gentoo-user] How to use mplayer play file online?

Chuanwen Wu wrote:
>> You have to download it as it has to be in RAM before mplayer can use
>> it.
>>
>> And you have to download the whole thing as it's a container file, not a
>> stream.
>>
> So, you mean mplayer can NOT play stream?
> As far as I know, mplayer can play file on a web(html) site.
> In "man mplayer", I can see that :
>
> Stream from HTTP:
> mplayer http://mplayer.hq/example.avi
>
> Stream using RTSP:
> mplayer rtsp://server.example.com/streamName
>
> So, I think there may be some ways to play mplayer from the ftp(or
> other protocol).
> Somebody work it out and suggested me to do it like this:
>
> wget ftp://THE_FTPSERVER/1.RM -O - | mplayer -cache 8192 -
>
> But I just failed every time I tried to do it in this way. Can you do
> it successfully?
>

Does the wget itself work, eg. does wget ftp://ftpserver/file.ext
download your file? If not, you may need to add some quoting... For
instance, the [ character should be quoted twice, once for the local
shell and once for the remote server (at least that was the case on a
quick test I did), so downloading a file called "[.ext" would become

wget 'ftp://ftpserver/\[.ext'

or

wget 'ftp://ftpserver/\[.ext' -O - | mplayer -cache 8192 -

Regards
Michael
--
gentoo-user@lists.gentoo.org mailing list

Safety Articles | Usenet Groups | Usenet News | Bluegrass