How To Play Video On Raspberry Pi?

by Oscar

How to play video on Raspberry Pi?

The first few things you want to do on the Pi is probably to play video on it. Play Video on Raspberry Pi is actually quite easy. You can use a media player called “omxplayer”. This software comes with Wheezy or Raspbian by default. To play video simply type in this command in the terminal.

omxplayer -o hdmi /path/to/filename.mp4

The -o hdmi enables sounds output on the HDMI port.

If it doesn’t work or you don’t think it’s installed, you can try to follow the instructions here to download and install it.

With this player, you don’t even need to enter the GUI (StartX) to play the videos! really awesome stuff.

Alternatively you can install XBMC instead. It’s a great Media center software which is also plays videos. I wrote a post about it here.

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.

5 comments

Frank 9th February 2020 - 8:27 am

hi, i m frank. I am currently working on a detection project in my high school and I would like to know if you can help me. because the detection has to be done with LEDs and I can’t fhi, i m frank. I am currently working on a detection project in my high school in Germany and I would like to know if you can help me. because the detection has to be done with LEDs and I can’t find a concrete solution to my problemind a concrete solution to my problem

Reply
Glenn 1st May 2019 - 1:34 pm

Hello, I’m new to the Pi world and know nothing about coding/programming and I need to configure a RPi with a PIR sensor play a video upon detecting motion. After the video plays, I then want a shorter 20 second video to loop until the PIR sensor detects movement again to trigger the first video. Do you have any thoughts?

Reply
Krassegrand 3rd May 2015 - 6:09 pm

I have had a lot of help from raspberrypi.org/forums/viewtopic.php?f=91&t=108430&start=50 and now it works

I will look in the manual for fine adjustments!

Jörgen

Reply
Krassegrand 3rd May 2015 - 8:48 am

Simply type in….
“omxplayer -o hdmi /path/to/filename.mp4”

How do I configure so that I can click on the chosen video file and watch it?
And most high quality films are .mkv

Jörgen

Reply
JDoders 5th December 2014 - 10:17 am

Excellent.

Reply