Report this

What is the reason for this report?

How to open the video file in my putty console?

Posted on October 23, 2014

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 ?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.