Book Image

Raspberry Pi Media Center

By : Sam Nazarko
Book Image

Raspberry Pi Media Center

By: Sam Nazarko

Overview of this book

<p>Low-cost and high-performing, with a massively diverse range of uses and applications, the Raspberry Pi is set to revolutionize the way we think about computing and programming. Using it as a Media Center allows everyone to have a low-cost device that is always on, attached to their TV. <br /><br />Imagine controlling your TV with your smartphone, dynamically streaming content that you have on various devices across your home, as and when you want. Raspberry Pi Media Center will show you how to configure the complete experience using readily available and accessible tools, so that you too will soon be enjoying your media from the comfort of your own sofa. <br /><br />With this practical guide, you’ll discover how you can transform your Raspberry Pi into a powerful media center. Using Raspbmc (based on the XBMC distribution), you'll be shown how you can deploy and configure your own media center, including coverage of all the essentials from controlling your device with a TV remote or smartphone, to the creation and customization of your very own media library (including the conversion of any existing collection). You'll even be able to stream multimedia from your devices or directly from the Internet!</p>
Table of Contents (17 chapters)

Preface

Low-cost and high-performing, with a massively diverse range of uses and applications, the Raspberry Pi is set to revolutionize the way we think about computing and programming. Using it as a media center allows everyone to have a low-cost device that is always on and attached to their TV.

Imagine controlling your TV with your smartphone, dynamically streaming content that you have on various devices in your home, as and when you want. Raspberry Pi Media Center will show you how to configure the complete experience using readily available and accessible tools, so that you too will soon be enjoying your media from the comfort of your own sofa.

With this practical guide, you'll discover how you can transform your Raspberry Pi into a powerful media center. Using Raspbmc (based on the XBMC distribution), you'll be shown how you can deploy and configure your own media center, including the coverage of all the essentials, from controlling your device with a TV remote or smartphone to the creation and customization of your very own media library (including the conversion of any existing collection). You'll even be able to stream multimedia from your devices or directly from the Internet!

What this book covers

Chapter 1, Getting Started, explores why the Raspberry Pi is a good hardware choice for a media center, lists the equipment we will need to install media center, and gives a brief introduction to Raspbmc and how to install it.

Chapter 2, Using Raspbmc, explains how to navigate and control Raspbmc as well as configure important settings and install add-ons.

Chapter 3, Managing Content, explains how to add existing content for playback, the content sources and types Raspbmc supports, and how to add these sources and manage them.

Chapter 4, Streaming From a Computer, explains what's needed to stream media from your computer, the advantages and disadvantages of streaming, and how to set up streaming from Windows, Linux, and Mac OS X computers.

Chapter 5, Setting up the Library Mode, explains how we can store information, such as episode descriptions of our content, in a database, sharing this across multiple machines, and getting Raspbmc to recognize this database.

Chapter 6, Using PVR with Raspbmc, explains what we can do with PVR, gives us a look at the different types of PVR setups, and explains how to configure Raspbmc to use PVR.

Chapter 7, Converting Media, explains why converting media is necessary, gives us a look at codecs, and explains how to convert media with freely available software so it can be played in Raspbmc.

Appendix A, Useful Raspbmc Commands, provides useful commands that can be executed via the command line with an attached keyboard or via an SSH connection.

Appendix B, Useful MySQL Commands, provides a short summary of MySQL commands that can be used at the command line on the system that is hosting the MySQL database.

Appendix C, Supported Peripherals, provides a summary of supported peripherals in Raspbmc.

What you need for this book

To run the examples in this book, the following software will be required:

  • Remote Database – MySQL Server

  • Video encoding – Handbrake

A list of software is given in the following table:

Software Name

URL

Raspbmc

http://www.raspbmc.com

MySQL server

http://mysql.com

Handbrake

http://handbrake.fr

XBMC

http://xbmc.org

Who this book is for

This book does not require any prior knowledge of the Raspberry Pi, but it does assume you are computer literate and comfortable with Mac OS X, Linux, or Windows, and concepts such as installing software.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "For UNIX systems, the following command would suffice, assuming that the filename of the compressed image was installer.img.gz."

A block of code is set as follows:

export set MYSQL_HOME=/usr/local/mysql-5.5.18-osx10.6-x86_64
export set PATH=$PATH:$MYSQL_HOME/bin

Any command-line input or output is written as follows:

sam@ubuntu:~$ ssh [email protected]
The authenticity of host '192.168.1.6 (192.168.1.6)' can't be established.
ECDSA key fingerprint is 55:36:12:f1:df:de:06:1a:7a:a4:36:b4:e1:09:a0:e2.
Are you sure you want to continue connecting (yes/no)?

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Check the option entitled "Share this folder" and give the share a meaningful name."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title through the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.