Tag Archives: video

Raspberry pi XBMC media server (nearly)

One of the exciting possibilities of the Raspberry Pi is using it as a media server – potentially providing a cheap as chips way of watching online video at home (for almost the same cost as a PS3 game) or serving as a cost effective video booth for displaying content. I suspect this is one of the factors that lead to the excitement of the Raspberry Pi’s launch and the 600,000 or so pre-orders.

Raspbmc running on my lego pi
Raspbmc running on my lego pi

I’ve used XBMC before on low-end systems – it works quite well on the (now ancient) Asus EEEpc 701 and I originally installed it on an old Xbox 1 – which soon became it’s most used feature. 

I’ve recently been playing with a version of XBMC for the Pi called Raspbmc created and maintained by Sam Nazarko, an 18 year old student from London, and it’s impressive. I’ve been able to play 720p video from YouTube and Vimeo smoothly. So I thought i’d post up some instructions in case anyone wants to give it a try.

For starters I’m using a Mac as my main PC, and my Raspberry Pi is connected to a Samsung TV via a HDMI to DVI adapter. The following worked for me!

I’ve been using a Samsung 8 GB class 6 card from Amazon which seems to work fine.

First was to download the Raspbmc installer – once you get this up and running it connects to the internet and installs Raspbmc. As I’m on a Mac I modified the Raspiwrite script to include a link to the installer. If you open the python script you can either rename one of the existing links or add it as an option. You can use my edit of the Raspiwrite script here (right click and save). 

Raspiwrite is easy to use – make sure you have a blank SD card mounted on your desktop then open the terminal in your mac and type cd – then drag and drop the folder that contains your copy of Raspiwrite onto the terminal – this saves you having to write the full path (just make sure there’s a space after cd).

Then type sudo python raspiwrite.py – it’ll ask you for a password and start the script which guides you through the process. It will take a while to write to the card, so be patient. Go and have a cup of tea, or try baking some cookies.

Once it’s finished writing, you might need to add a config.txt file to the card. I had to use this to get my display working – so for reference if you’re using a Samsung SyncMaster 940MW LCD TV monitor with a HDMI to DVI adapter made by Nikkai the code you need is:

disable_overscan=1
config_hdmi_boost=4

(if you don’t have any display issues you can ignore this bit – if your display blanks after booting it’s worth checking out the threads on the config.txt file on the Raspberry Pi forums)

Then you can put the card in the Pi – either you’ll see the installer or you’ll get a command prompt. You can login to this using root and root, after which you’ll need to use shutdown -h now to shut the system down and reboot.

I think I saw this step as my Pi connects to the internet through network sharing on the ethernet on my mac – when I encounter issues with this, stopping and restarting internet sharing usually works to fix it. When I did this step I found it worked ok for me and booted into the installer – which I was able to leave to do it’s own thing, and then hey presto! Raspbmc is up and running.

It works well – some of the menu transitions are a little bit slow but video plays smoothly at 720p (which is as much as my monitor can handle). I got sound up and running by changing the settings to analog output.

Pretty HD videos to try from youtube are First Orbit which re-creates Uri Gagarin’s flight around the earth, the trailer from BBC’s Planet Earth or on Vimeo the quirky Plan of the City.

You can donate to the Raspbmc project here.

Update: there’s now a new version of the installer script which includes scripts for mac and windows – making these instructions redundant. I have got the iplayer plugin working so i’ll post up instructions on how to do that shortly.

A few videos…

1) Don’t Undermine Bangladesh

http://www.youtube.com/watch?v=HWCvB7_hl6s

Last year a campaigner based in Bangladesh contacted me on facebook in regard to a proposed open cast mine in Phulbari, Bangladesh. A UK based company GCM were attempting to get permission to build a mine that would displace 30,000 people and destroy the water supply of a further million.

I was able to very rapidly put together a video, based on footage of GCM’s offices, stock footage of an open cast coal mine and a video that had been made by the campaigners in Bangladesh. The original Bangladesh video titled ‘the blood soaked banner of Phulbari’ and was too long for the standard youtube format of less than 10 minutes, so by re-cutting highlights from this film with WDM’s material made the video more suitable for our audience.

We ran a series of online actions using the video and were successful in getting Barclays Bank to sell their shares in the project, and Gareth Thomas (minister at BERR and DFID) withdraw UK government support for the project. This was the most popular online action WDM has ever carried out.

I think the video would have been improved with footage of the campaigner doing a piece to camera – by experimenting with different video formats I’ve found that an appeal made directly to the viewer makes for the most effective response rate to an appeal or campaign ask.

2) Question to Gordon Brown

http://www.youtube.com/watch?v=XXl_ydgTKrc

This is a very simple video shot on a tiny video camera with a question to Gordon Brown asking what he was doing to fight poverty at an upcoming G20 conference. At the time Downing Street were using YouTube for people to submit questions, with a vote to decide on the videos for Gordon Brown to answer. By emailing our supporters the voting link for our video we were able to ‘game’ the vote in our favour, and you can see in the responses to this video a direct video message from Gordon Brown.

Emailing our supporters with an alternate action to the normal petitions or email actions helped improve the response rate, and being able to reply to our supporters with a direct response from the Prime Minister proved a popular way of promoting WDM as an organisation having an impact on politics in the UK.

If I was to do something like this again I think the video would have sounded better comming from a supporter or local WDM group member as opposed to staff, I think also the sound would have been greatly impoved with a better camera / microphone setup.