LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3973/0)
Reviews (628/0)
Press Releases (464/0)
Distributions (187/0)
Software (875/0)
Hardware (522/0)
Security (192/0)
Tutorials (345/0)
Off Topic (181/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events




Multimedia on the Raspberry Pi with omxplayer - Page 1

Multimedia on the Raspberry Pi with omxplayer - Page 1

Introduction

Raspberry Pi

The Raspberry Pi is a credit-card sized computer board, designed to inspire a new generation of computer users to become interested in programming. However, this single-board computer also has lots of potential to be used in different areas.

There are an increasing number of distributions that are available for the Raspberry Pi. Besides the ones listed on Raspberry Pi's Downloads page (Debian "squeeze", Arch Linux ARM and QtonPi) users can download Fedora Remix, IP Fire, OpenELEC, Raspbmc, Bodhi Linux, amongst others. There are also lots more distributions in the pipeline. Bear in mind that all of the distributions have one thing in common; they are all works in progress and nowhere near ready for mainstream use.

The video capabilities of the Raspberry Pi have led to interest in the device being used as a home media centre. This interest has been generated because the Pi's VideoCore IV GPU offers Open GL ES 2.0, hardware-accelerated OpenVG, and 1080p30 H.264 high-profile decoding. The GPU is capable of 1Gpixel/s, 1.5Gtexel/s or 24GFLOPs with texture filtering and DMA infrastructure.

Having experimented with most of the distributions, we keep gravitating back to Raspbian. It feels the most responsive in X Windows, and is a bit more polished than the others. The aim of Raspbian is to make available tens of thousands of Debian packages specifically optimized for the Raspberry Pi hardware. There has not been an official release of Raspbian to date, but the unofficial Pisces image goes some way to provide a good configured system.

Nevertheless, there were a number of things we needed to manually configure in Raspbian to provide a good foundation for multimedia adventures. The first modification is to remove the unwelcome black border from around the screen. This required the following commands to be inserted into the file /boot/config.txt.

overscan_left=-40
overscan_right=-40
overscan_top=-40
overscan_bottom=-40

Next, we needed to get sound working. The ALSA drivers are still in an alpha stage of development so have not been configured. To install the ALSA utilities - which include amixer (a command line mixer), alsamixer (curses mixer), and aplay, arecord (command line playback and recording), we type:

$ sudo apt-get install alsa-utils

We then need to install and enable the sound driver module. In the example below, we have chosen to have the audio output routed to the headphone socket.

$ sudo modprobe snd_bcm2835

$ sudo amixer cset numid=3 1

So that the sound driver module is loaded at boot time, we need to add the following text to the /etc/modules file (using an editor such as nano, pico, or vi).

snd_bcm2835

By default, Raspbian Pisces allocates 32MB of RAM to the video with the remaining 224MB to the operating system. However, this allocation of RAM prevents omxplayer running. To watch videos with oxmplayer, we need to allocate at least 64MB of RAM to video. To do this, we replace the start.elf file (which dictates the allocation of RAM) by typing the following commands at the shell prompt:

$ cd /boot
$ sudo cp arm192_start.elf start.elf

After rebooting the Pi, the system allocates 64MB to the video which is sufficient for omxplayer to play video files.

We also wanted to configure Raspbian to access our NAS drive. The quickest way to access shares on the NAS is to add the following line to the bottom of /etc/fstab, having first created a /media/nas directory with the appropriate permissions.

//192.168.1.103/share_name /media/nas cifs username=XXX,password=YYY

We also experimented with installing FuseSmb. There is a good guide to configure FuseSmb on Ubuntu's website (at https://help.ubuntu.com/community/FuseSmb). In addition, it was useful to resize the ext4 partition on the SD card so that the Raspberry Pi can access the entire card, to test playing files direct from the SD card itself.

Next Page: Installing omxplayer & more

Read ahead

1. Introduction
2. Installing omxplayer & more
3. In Operation & Summary


Last Updated Sunday, June 17 2012 @ 01:36 PM EDT


We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, Forth, SQL, Node.js (new), Fortran (new), Erlang (new), Pascal (new), and Ada (new).


Group Tests
All Group Tests

Top Free Software
5 Office Suites
7 Document Processors
6 Lean Desktops
6 Desktop Search
9 Project Management
9 Groupware Apps
14 File Managers
10 Databases
21 Backup Tools
21 DVD Tools
21 Window Managers
21 Productivity Tools
9 Terminal Emulators
21 Financial Tools
21 Text Editors
21 Video Emulators
21 Home Emulators
42 Graphics Apps
6 CAD Apps
42 Scientific Apps
10 Web Browsers
42 Email Apps
12 Instant Messaging
10 IRC Clients
7 Twitter Clients
12 News Aggregators
11 VoIP Apps
11 Remote Display Apps
42 Best Games
42 More Games
21 More Games
21 Notable Games (1)
21 Notable Games (2)
21 Notable Games (3)
8 ASCII Games
9 Educational Games
42 Audio Apps
42 Video Apps
6 Screencasting Apps
80 Security Apps
9 System Monitoring
6 Family History Apps
11 PDF Tools
6 Music Servers
6 Collection Managers
7 Calculator Apps
8 Geometry Apps
Free Console Apps
14 Multimedia
Programming
8 Compilers
9 IDEs
9 Debuggers
7 Revision Control Apps
6 Doc Generators
'Free' Proprietary
21 Closed-Source Apps
Top Commercial Apps
42 Games
Free Web Software
21 Web CMS
14 Wiki Engines
8 Blog Apps
6 eCommerce Apps
5 Human Resource Apps
10 ERP
10 CRM
6 Data Warehouse Apps
8 Business Intelligence
6 Point-of-Sale

All Group Tests

Other Articles
Migrating from Windows
Back up your data
Distribution Guide
Distro Portal Pages
20 Free Linux Books
Running Linux Under Windows


Older Stories
Sunday 07/06
  • Mobile Phone Management Made Easy (0)

  • Saturday 06/28
  • Easy File Comparisons With These Great Free Diff Tools (0)
  • 9 ASCII Games You'll Want to Play Again and Again (0)

  • Friday 06/13
  • 12 Remarkable Free Shell Scripting Books (0)

  • Saturday 06/07
  • Open Source LDAP Solutions (0)

  • Monday 06/02
  • Delightful ASCII Art Tools (0)

  • Saturday 05/31
  • Best Tools for Network Inventory Management (0)

  • Sunday 05/25
  • Grab 24 Beautifully Scribed Free Programming Books (0)
  • 6 Invaluable Free Ada Books (0)

  • Thursday 05/15
  • 4 Best Free Pascal Books (0)


  • Vote

    What do you find MOST attractive about Open Source software?

    Amount of customization
    Security
    Freedom provided
    Speed of development
    Quality
    Multiple versions
    Cost
    Potential to contribute
    Ability to modify code
    Results
    4837 votes | 2 comments

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved