4.4K
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.
Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.
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.
5 comments
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
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?
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
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
Excellent.