How to open the video file in my putty console?

October 23, 2014 1.1k views

My serverip is a.b.c.d in digitalocean,when login into my sftp with putty,i downloaded a video file name movie1 in /root , i want to watch the video file played,input mplayer movie1 (mplayer have benn installed in sftp server). The error message is :

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.

Playing movie1.

vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!

How can i watch it to be displayed in my sftp server with mplayer command in putty console ?

1 Answer

First things first:

these are non-graphical servers out-of-box, so to play a video, you will need to either have X11 installed along with other tools, or you will need a headless X server installed with X11-forwarding configure on puTTY and have the X11 client for windows.

Second things second:

In my opinion, this is not the greatest idea, unless you absolutely require viewing on the server. Even there, I'd say place it web-accessible, and use VLC to open it. It can stream files from non-stream sources.

Have another answer? Share your knowledge.