Operation Manual
Where the power of mocp becomes apparent is when you exit the application by pressing the Q key. If mocp is in the middle of
playing back music, it will continue to do so even as you use the console or terminal window for other tasks. Running the mocp
command again will restore the interface, allowing you to change songs, pause or stop playback. You can also control mocp
directly from the terminal, without having to use the interface. Running the mocp command with flags—the options that follow a
command, prefixed with a hyphen character—allow you to start, stop, pause, skip and otherwise change the playback without
having to go into the software.
The most commonly used mocp flags are the following:
• -s—Stop the current playback
• -G—Pause playback, or resume playback if currently paused
• -f—Skip to the next song in the directory or playlist
• -r—Return to the previous song in the directory or playlist
• -i—Print information on the current song to the terminal or console
• -x—Stop playback and quit mocp altogether
For more information on controlling mocp, type man mocp.
Dedicated HTPC with Rasbmc
Being able to play music on the Raspberry Pi is one thing, but the BCM2835 can do much more than that. Using its VideoCore
IV GPU, it can decode and play back Full HD 1080p H.264 video, making the Pi a powerful media centre machine in a tiny
package and with incredibly low power demands.
To get the most from the Pi as a home theatre PC, however, some additional software is required. This software can be installed
in the Debian distribution, but there’s an easier way to get started: switching to the Rasbmc distribution.
Rasbmc, created by Sam Nazarko, is a distribution aimed specifically at turning the Raspberry Pi into a fully-featured media
centre system, complete with video and music playback, photo viewing and Internet streaming capabilities. It’s based on the
popular Xbmc distribution, which has been chosen by several device manufacturers to power their commercial set-top box
systems.
If you’re planning on making use of the Pi’s high-definition video output and H.264 decoding capabilities in your home theatre
setup, Rasbmc is an excellent choice and no more complicated to get up and running on the Pi than any other Linux distribution.
First, download the installer from the official website at http://www.raspbmc.com/download/. This is the easiest way to get
Rasbmc up and running. Installers for Linux, OS X and Windows are provided which automatically download the image file for
Rasbmc and write it to an SD card connected to the system. Although you can also download an image file and use the