LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-10-2006, 05:58 AM   #1
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Can mplayer play an ftp file?


I have access to an ftp server, can I watch movies from there with the help of mplayer without downloading them?

Thanks.
 
Old 03-10-2006, 06:02 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
According to the mplayer man page, it looks like you can access a file via ftp. The data is still downloaded to your system though so if you're doing this to save on download limits it's not much good. Did you just want to save the time of the intermediate step of downloading the file?
Code:
mplayer [mms[t]|http|http_proxy|rt[s]p|ftp|udp]:// [user:passwd@]URL[:port] [options]
 
Old 03-10-2006, 06:05 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You obviously need to download the files (i.e. the movie data) to play them.

I guess what you really want is the files not to be stored persistently to the file system (remove them after play) or not to be stored at all and be played on the fly, which seems doable to as mplayer handle URLs as a parameter.
 
Old 03-10-2006, 07:54 AM   #4
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
Code:
kornerr@kornerr:/tmp/USERTMP$ mplayer ftp:// anonymous@10.104.4.253/video/1/Hot_Shots\!/Hot_Shots\!.avi:666
MPlayer 1.0pre7-3.3.6 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


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.
Playing ftp://.
[ftp] Bad url
Failed to open ftp://

Playing anonymous@10.104.4.253/video/1/Hot_Shots!/Hot_Shots!.avi:666.
File not found: 'anonymous@10.104.4.253/video/1/Hot_Shots!/Hot_Shots!.avi:666'
Failed to open anonymous@10.104.4.253/video/1/Hot_Shots!/Hot_Shots!.avi:666


Exiting... (End of file)
Code:
kornerr@kornerr:/tmp/USERTMP$ mplayer ftp://10.104.4.253/video/1/Hot_Shots\!/Hot_Shots\!.avi:666
MPlayer 1.0pre7-3.3.6 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


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.
Playing ftp://10.104.4.253/video/1/Hot_Shots!/Hot_Shots!.avi:666.
Connecting to server 10.104.4.253[10.104.4.253]:21 ...
[ftp] command 'SIZE video/1/Hot_Shots!/Hot_Shots!.avi:666
' failed: 550 video/1/Hot_Shots!/Hot_Shots!.avi:666: No such file or directory

[ftp] command 'RETR video/1/Hot_Shots!/Hot_Shots!.avi:666
' failed: 550 video/1/Hot_Shots!/Hot_Shots!.avi:666: No such file or directory

Failed to open ftp://10.104.4.253/video/1/Hot_Shots!/Hot_Shots!.avi:666


Exiting... (End of file)
 
Old 03-10-2006, 08:47 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What is your video file url (one that works in a browser) ?
 
Old 03-10-2006, 10:08 AM   #6
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
ftp://10.104.4.253/video/1/Hot_Shots\!/Hot_Shots\!.avi
it's a local address within my "provider space".

Last edited by kornerr; 03-10-2006 at 10:11 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not play WMV file with MPlayer Harp00 Slackware 3 01-16-2006 10:15 PM
MPlayer cant play AVI file janesfelcs Linux - Software 9 12-20-2005 05:56 AM
MPLAYER fail to play video file. hanbin Linux - Software 1 11-20-2004 10:08 AM
mplayer Can't play AVI file breathless Linux - Newbie 7 04-05-2004 11:05 PM
mplayer cant play rm file demmylls Linux - General 2 11-03-2003 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration