I'm having a problem with my Raspberry Pi 2. I'm trying to run a video in command-line(ssh)

vlc -f --play-and-exit /path/video.avi

But It only displays in my command-line and not on the HDMI port. When I connect Raspbery Pi 2 to the TV with HDMI cable it just shows the command-line, but nothing appears.

And when I launch any command in ssh terminal It does not appear in my TV. How to solve it?

  • How can a video be displayed in a terminal? Are you really using that ASCII video sink? Commented Nov 15, 2016 at 15:13
  • @DmitryGrigoryev I didn't install anything but VLC player. When I start it it runs in command-line 0 and 1 makes a video, lol.
    – xxxx
    Commented Nov 15, 2016 at 15:31

1 Answer 1


You need to specify a display to be used. When you issue a command via SSH, Raspbian will try to execute it and return any output via SSH as well. To use the remote (from your perspective) screen connected via HDMI, type in export DISPLAY=:0 first.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.