Compiling and using MHEG Engine Redbutton

Warning : This only works on 32bit linux. See here for a patch to make it work on mandriva 64bit - probably will work on other distros

Downloading and compiling redbutton
Download redbutton-download and redbutton-browser from http://sourceforge.net/projects/redbutton/files/.

I used version 20090727 of redbutton-download and version 20091202 redbutton-browser.

You will need gcc,make and the usual. On my arch system it compiled without needing anything, so I can't be of much help with dependancies, but on ubuntu karmic koala (9.10) I had to install all of these to get it running!

sudo aptitude install expat libxslt-dev libxslt1.1 libxslt1-dev freetype2 ffmpeg libpng libexpat1-dev libpng12-dev libavdevice-dev libavfilter-dev libavformat-dev libavifile-0.7-dev libavutil-dev libxt-dev libasound2-dev libswscale-dev x11proto-xext-dev libxext-dev

Untar both packages with tar xzvf and then in both new directories type make.

redbutton-download is the server, it needs to be run on a pc with a DVB card. redbutton-browser can be run on any other pc (it will need a pretty fast cpu if you don't want to drop frames and a good network connection goes without saying).

Installing DVB card - on Arch Linux (should be very similar on Ubuntu)
This is for my Asus Eee-pc My Cinema U3100 Mini DVB-T USB stick
tail -f /var/log/messages
plug the device in and check what driver it wants. Find that driver and install it. For my stick I needed dvb-usb-dib0700-1.20.fw which you can install from the AUR using this package in Arch Linux - dib0700-firmware
pacman -S linuxtv-dvb-apps
packer -S dib0700-firmware
Once installed unplug and replug the device. Watching your /var/log/messages file should show the firmware being loaded
Have a look at here and you should see something like this :

[brendan@baldwin ~]$ ls -la /dev/dvb/adapter0/
total 0
drwxr-xr-x 2 root root 120 Feb 2 17:05 .
drwxr-xr-x 3 root root 60 Feb 2 17:05 ..
crw-rw----+ 1 root video 212, 4 Feb 2 17:05 demux0
crw-rw----+ 1 root video 212, 5 Feb 2 17:05 dvr0
crw-rw----+ 1 root video 212, 3 Feb 2 17:05 frontend0
crw-rw----+ 1 root video 212, 7 Feb 2 17:05 net0

Making the channels.conf file
By default, redbutton will look in ~/.tzap for dvb-t and in /etc

Choose your nearest transmitter and make the config file.

scan /usr/share/dvb/dvb-t/uk-MyClosestTransmitter | tee ~/.tzap/channels.conf

Starting the program

On the server pc, you will need to install dvbtune if you don't allready have it (ubuntu has its own package for it). Notice my dvbtune arguments come from my channels.conf settings and are solely because my card is not too bright. Yours may only need the -f argument.
Find a channel that you want to start with (it won't start without one). So I did cat channels.conf | grep NEWS and found bbc news was on 4415.

sudo aptitude install dvbtune
dvbtune -f 641833330 -qam 16 -cr 3_4 && ./rb-download 4415

On the client pc (no need for a different pc, if not then forget the -r argument) run
At default the program runs on port 10101 but it can be changed on launch of rb-download

./rb-browser -r ip_of_client_machine

Note: 'r' seems to bring up the EPG on bbc :-)

See redbutton.sourceforge.net for a full controls listing of rb-browser and all the options of rb-download


Sources:

http://redbutton.sourceforge.net/

http://www.mail-archive.com/linux-dvb@linuxtv.org/msg21443.html


Tags: ,

2 Responses to “Compiling and using MHEG Engine Redbutton”

  1. Compiling and using MHEG Engine Redbutton | Madeo.co.uk | Linux Affinity Says:

    [...] post: Compiling and using MHEG Engine Redbutton | Madeo.co.uk Posted in: Hardware ADD [...]

  2. compiling the kernel source code – Unix / Linux / BSD answers | DevBlogr Says:

    [...] Compiling and using MHEG Engine Redbutton [...]

Leave a Reply