Question

How to open the video file in my putty console?

  • Posted on October 23, 2014
  • rebuildAsked by rebuild

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 ?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.