Skip to Content
Raspberry Pi 2 Server Essentials
book

Raspberry Pi 2 Server Essentials

by Piotr J Kula
April 2016
Beginner content levelBeginner
174 pages
3h 46m
English
Packt Publishing
Content preview from Raspberry Pi 2 Server Essentials

Playing videos

We can play video and audio files using OMXPlayer, which was specifically designed by the XBMC project, and it uses hardware decoding on the Raspberry Pi. Since OMXPlayer uses hardware decoders, it is possible for you to use any additionally purchased video licenses.

Tip

OMXPlayer requires at least 256 MB GPU RAM to run.

OMXPlayer for video playback

Download an MP4 file onto the Raspberry Pi (for example, we can use the site http://www.hd-trailers.net/ to find some links) and we will use OMXPlayer to play video and sound to the HDMI port. You can also use RTMP streams directly instead of video files. Replace the URL in wget with an existing file on the Internet:

sudo apt-get install omxplayer 
cd /tmp 
sudo wget http://videosite.com/filename.mp4 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expanding Your Raspberry Pi: Storage, printing, peripherals, and network connections for your Raspberry Pi

Expanding Your Raspberry Pi: Storage, printing, peripherals, and network connections for your Raspberry Pi

Mark Edward Soper
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781783985692Supplemental Content