A media center based on GNU/Linux

Hacking the living room

Download the whole article as PDF

Write a full post in response to this!


When my DVD player stopped working, I definitively proved to myself (and to people I know) that if there is a simple and effective solution to a problem and a complex one which promises unpredictable results, I always choose the second option. Instead of buying a new DVD/DivX/MP3 player for the modest price of $40-50, I decided to build a home-made device that would allow me to record the TV, receive podcasts, view webtv, play games, and a lot of other things that I considered cool. So my modest adventure with Freevo, GNU/Linux and a lot other free software begins…

Introduction

A media center is a special type of computer conceived for your living room rather than for your office. There are several models of media center available on the market and most of them are based on the Microsoft Windows Media Center Edition. Differently from a traditional personal computer, the interaction with a media center mainly flows through the remote control and the television screen. It is of course possible to add a wireless keyboard for writing text but most of the time a media center is used by one or more users enjoying content from separate sources such as DVD, Video CD, digital video cameras, FM radio, analog/digital terrestrial TV or satellite TV, network streaming and, of course, the local hard disk.

Differently from a traditional personal computer, the interaction with a media center mainly flows through the remote control and the television screen

What hardware you need

Assuming you want to build your own media center, the ingredients you need are of three types: hardware, software and connectivity. Your media center will gain a lot from a LAN connection which is useful for management tasks and for receiving media streams from the internet. Regarding the hardware the essential components are: motherboard, CPU, RAM, disk, video card with TV/OUT, audio card, TV/FM card, network card, CD/DVD player and a remote control with IR receiver. Of course you can add a lot of optional components like a DVD writer and USB memory readers.

To build an effective system you need a minimum CPU power for video encoding/decoding. Buying an Intel Core Duo with 2GB of RAM is a viable choice, but in my experience you can save a lot of money reusing some old hardware. I’ve assembled a system with Pentium III processor with 320MB of RAM and I found that for video encoding/decoding this configuration is powerful enough. If you don’t have any old PC to cannibalize, you can buy a mobo/CPU/RAM for less than 100$ on eBay and get your system done.

I’ve assembled a system with Pentium III processor with 320MB of RAM and I found that for video encoding/decoding this configuration is powerful enough

GNU/Linux helps to make your old hardware run again. It’s always possible to optimize GNU/Linux, while Windows XP is too resource consuming. Another proprietary alternative for old hardware is, as usual, Windows 98, but would you venture to make it your OS? I wouldn’t. Thus, for my media center I’ve acquired the following:

  • Microstar mother board with Intel P3/800MHz
  • 320MB of RAM
  • Matrox Millennium graphics card G400 with dual head
  • A DVD/CD combo player
  • A PCI network card 10/100

I also added some special purpose components for the media center:

  • Technisat TS35 Remote control with IR receiver
  • Hauppauge WinTV GO tuning card

The distro the kernel and the screen

Inside the galaxy of GNU/Linux I have chosen Fedora. The reasons behind this choice are absolutely disputable: my first Linux installation was a Red Hat 4 and I’m too lazy to evaluate other distros. About the screen, unless you want to buy a 26” VGA LCD you need to use your TV. Driving the TV out from the Linux kernel may cause some problems. First, you need a video card with TV out (this is obvious); second you need to activate the TV-out function in Linux (not so simple). After some searches on the net I discovered that among old cards, the Matrox Millennium G400 TV out setup is well documented. To use the G400 with TV out I needed three main tools:

  • kernel sources to be recompiled (sigh)
  • fbset
  • matroxset

The TV out can be activated using the framebuffer device, and for this reason I needed to recompile the kernel. Recompiling the kernel is not a difficult task, but making the wrong changes in the configuration can cause your machine to become unbootable. This is not irreversible, because you can always reconfigure the system to boot from an older kernel, but this recovery may require some knowledge. Please refer to online documentation. In my kernel compilation I needed the followings settings:

  • Code maturity level options→Prompt for development…
  • Processor type and features→MTRR support
  • Character Devices→I2C support→I2C support
  • Character Devices→I2C support→I2C bit-banging interfaces
  • Character Devices→I2C support→I2C device interface
  • Character Devices→Matrox g200/g400
  • Console drivers→Frame-buffer support→Support for frame buffer devices
  • Console drivers→Frame-buffer support→Matrox acceleration
  • Console drivers→Frame-buffer support→G100/G200/G400/G450 support
  • Console drivers→Frame-buffer support→Matrox I2C support
  • Console drivers→Frame-buffer support→G400 second head support
Don't miss out on the other pages!
1234next ›last »

Write a full post in response to this!

Similar articles

0

Do you like this post?
Vote for it!

Copyright information

Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved.

Biography

Davide Carboni: Davide Carboni holds a PhD in Computer Science. He is currently employed as "senior software engineer” at the Center for Advanced Studies, Research and Development in Sardinia (CRS4). His research interests are in the field of peer-to-peer systems, distributed computing, web applications, and agile software engineering. He runs his blog in http://powerjibe.blogspot.com

johnblommers's picture

PDF please

Submitted by johnblommers on Mon, 2007-02-05 19:59.

Vote!
0

Call me old-fashioned but I don't like to read major stuff online. I prefer to print it out and a single PDF makes that a very good experience. An online HTML magazine is a pain to print out, what with all the crazy pagination issues. Why not provide a compressed archive of the HTML at least?

I'm also concerned that eliminating the PDF file is the beginning of the end for freesoftwaremagazine, similar to the fate of Tux Magazine. I'm afraid its a cost cutting measure. I see it that way because I don't recognize the loss of the PDF file as being of benefit to the reader. No reader says "damn this nasty PDF article."

Please return with the PDF version of the magazine.

- John

Anonymous visitor's picture

No PDF = One Reader Less

Submitted by Anonymous visitor on Mon, 2007-02-05 20:52.

Vote!
0

I won't be reading this issue at all. I liked the PFD version because i could have access to it offline.

Please bring it back if you can, if not then there's nothing for me here on this site.

Good Bye :(

Anonymous visitor's picture

No PDF = One Less Idiot

Submitted by Anonymous visitor on Mon, 2007-02-05 21:45.

Vote!
0

If you're going to bitch about something you get for free, perhaps it's better that you go away. And by the way, PDFs suck.

Anonymous visitor's picture

Noise issue

Submitted by Anonymous visitor on Mon, 2007-02-05 21:50.

Vote!
0

A PC based Media Center should definitely deal with the noise issue. It will be good know if the suggested hardware configuration takes care of this.

Also, a very basic diagram of how the components are interconnected will be helpful

Cheers.
Navi

Anonymous visitor's picture

Davide

Submitted by Anonymous visitor on Tue, 2007-02-06 10:38.

Vote!
0

my box is at the moment quite noisy. I've been investigating the best choice to reduce noise and I've found an interesting thread in the freevo mailing list. The url is http://sourceforge.net/mailarchive/forum.php?thread_id=30941563&forum_id=9234

Anonymous visitor's picture

I'm not reading free software magazine anymore

Submitted by Anonymous visitor on Mon, 2007-02-05 22:41.

Vote!
0

I'm not reading free software magazine anymore because of PDF is now unavailable..

Anonymous visitor's picture

SERIOUS BUSINESS

Submitted by Anonymous visitor on Mon, 2007-02-05 23:08.

Vote!
0

THE GUY ABOVE ME IS AN INTERNET TOUGH GUY

Shredny's picture

ONE-AND-A-HALF HOUR WORK

Submitted by Shredny on Tue, 2007-02-06 05:04.

Vote!
0

I just converted Issue 16 to pdf. Copy, past to MSWord, cleaning the document and printing with pdf creator. It is the first and the last time I did it. Speaking about TUX; I paid the $ 9,90. Now getting Linux Journal. For my kind of folks to geeky. Missing Tux and now also Free Software Magazine. Wanted to make a donation to FSM. Happy I didn't do it. Again 10 bucks thrown in the water.

Anonymous visitor's picture

Comments on the PDF and on the Media Center

Submitted by Anonymous visitor on Tue, 2007-02-06 12:09.

Vote!
0

First, if you are here only to comment about the loss of the PDF version, get out. The author already explained the reasons to do this. I miss the PDF version also, but facing the reasons that have been presented, and - it seems to me - all the attempting to solve this question, I can't complain of not trying.

Second, about the Media Center, it really is interesting, except that i live in Europe, and not all functions mentioned are available here. It is, though, a wonderful way to acquire knowledge and entertain at the same time.

Anonymous visitor's picture

I live in Italy and it works

Submitted by Anonymous visitor on Tue, 2007-02-06 15:31.

Vote!
0

Hi, I wrote this article and I live in Italy (Europe I guess). Which functions are not available in your country?

PS:about the pdf. Please do not comment this article for that. Leave your comments in the first article of the issue which cover this topic.

clievers's picture

MythTV

Submitted by clievers on Fri, 2007-02-09 18:00.

Vote!
0

This is a great article. Thanks very much.
I currently have a Gentoo box at home that runs MythTV. I have 3 Hauppauge PVR cards. It works great. One of these days I may have to try this Freevo on another box to see how it compares. I really need to change this system from Gentoo though, as I find it difficult to use. Fedora seems like an option, but I've been hearing a lot of great things about Ubunutu.

What do other readers here think about the various Linux distributions, primarily for a Media Centre?

Davide Carboni's picture

myth tv seems good

Submitted by Davide Carboni on Fri, 2007-02-09 21:54.

Vote!
0

I didn't try mythtv but I've read a lot of good reviews. A great thing that makes the difference is that mythtv has real-time shifting video while freevo has not. There is a brand new freevo 2.0 version out there but I've still to test it

Anonymous visitor's picture

Feedback on distro

Submitted by Anonymous visitor on Mon, 2007-02-26 12:52.

Vote!
0

Been using Mandriva for Mythtv for a few months now. Works great. The advantages of Mandriva are the good wizards (I don't like to mess in config files), and the fact that about anything you need as software has been packaged. Also the Mythtv configuration guide has a lot of Mandriva specific stuff written into it.
I'm running my MythTV backend on my main PC in our home office (to prevent too much noise in the living room, and because that allowed me to simply add a capture card to the machine and not having to acquire another machine), and view on the TV via my laptop (soon to be replaced by an Hauppauge MediaMVP). Otherwise, if I would have put everything on one and the same machine, dedicated as media centre, I would have chosen for Knoppmyth. Makes it even easier to install and configure.

Anonymous visitor's picture

Distro choice feedback

Submitted by Anonymous visitor on Mon, 2007-02-26 12:53.

Vote!
0

Been using Mandriva for Mythtv for a few months now. Works great. The advantages of Mandriva are the good wizards (I don't like to mess in config files), and the fact that about anything you need as software has been packaged. Also the Mythtv configuration guide has a lot of Mandriva specific stuff written into it.
I'm running my MythTV backend on my main PC in our home office (to prevent too much noise in the living room, and because that allowed me to simply add a capture card to the machine and not having to acquire another machine), and view on the TV via my laptop (soon to be replaced by an Hauppauge MediaMVP). Otherwise, if I would have put everything on one and the same machine, dedicated as media centre, I would have chosen for Knoppmyth. Makes it even easier to install and configure.

Anonymous visitor's picture

Dual-boot Configuration Systems Windows XP wiht Mandrake Linux

Submitted by Anonymous visitor on Tue, 2007-03-13 13:54.

Vote!
0

I've got a CP with Windows XP installed, but I want to make a dual-boot with Mandrake Linux 9.2.I already tried 2 times, but I did'nt get.

Anonymous visitor's picture

MythTV vs. Freevo / suboptimal G400-Configuration / Silent HW

Submitted by Anonymous visitor on Fri, 2007-03-23 18:17.

Vote!
0

You wrote: MythTV is a solid piece of software written in C++. My Question: What is your definition of "solid"? My opinion is that MythTV includes some nice ideas (seperation of frontend and backend, tv functions), BUT apart from that the architecture and stability is relativly bad. The source code is here and there really ugly. You also forgot to mention VDR which is the third ("famous") HTPC/TV-Project for Linux out there. I've tested MythTV and VDR - both didn't convince me (I expected a lot from MythTV), so I'm now experimenting with Freevo, which sure lacks a lot of features in comparison to MythTV, but I prefer the philospohy "don't reinvent the wheel" (MythTV people obviously don't know this principle).

I also have a Matrox G400 and played a lot with. After many different configurations I can only suggest a DirectFB-solution (which MythTV doesnt support after version 0.19). The DirectFB-library has still the best support for the G400 and TV-OUT-setup is near "configurationless" (if you have an europeaon TV with SCART-interface i would suggest to build a VGA/SCART-cable). There are no brightness, nor resolution problems (as you mentioned in your article) with this solution.

As silent HW I could recommend either VIA Eden Mini-ITX motherboards or an AMD-Geode-Setup. The problem with the via-boards from my view: the tv-out is not as good as the g400-tv-out and the soundcard is also not better than common ac97. For an interesting geode-setup look here: http://bird.zero.ad.jp/~zas55369/geodenx.htm (i dont speak japanese, but the photos are pretty self-explaining). An affordable motherboard which supports the Geode-family is eg the ASRock K741GX.

Anonymous visitor's picture

GNU/Linux Media Centre Rocks

Submitted by Anonymous visitor (not verified) on Thu, 2007-09-13 08:25.

Vote!
0

I am using openSuSE 10.2 based PC with Media Center along with Development tools. I gotta tell ya, It rocks (I've used XP Media Center for a while in my past too, so you gotta trust my comment).

This article is great. I actually found solution for some of my problems through this article.

Adios.


From the FSM staff...

Odiogo