Quantcast

Don't have an account? Register Now! Forgot password?

Maximum IT
How-Tos

How To: Turn Your Linux Rig into a Streaming Media Center

comment Commentsprint Printemail EmailDeliciousDiggStumbleUponRedditFacebookSlashdot

 

These days, most people have at least one computer and a large collection of media files. The conventional practice for most people has always been to have redundant copies of their media collection on their various computers. While this system technically works, it is highly inefficient and creates the unnecessary task of keeping the media collection on each computer synchronized and up-to-date with the others. A far better solution is to keep all the media on one computer and stream it as needed to the other machines over the network.

Streaming technology has been around for over a decade and is something that most people are at least a little familiar with. (Youtube uses streaming flash-based video to work)  In the past, playing large files over the internet was usually pointless due to the fact that the software of the time  required the whole file to download (often on slow connections) before the media could be played. With streaming media, the remainder of a file is fetched as the first part it is being played, so there is no need to wait to get the whole thing before watching it. The video quality on early streaming media was often quite bad, (a trade-off between quality and speed was necessary when most people were stuck on dial-up) but with the near-ubiquitous availability of broadband in most urban and suburb areas today, high-quality streaming media has finally become practical.

We have assembled this guide to help you set up a cross-platform media streaming service using a Linux computer as a server. With our guide, you will be able to stream media to any other computer you own. Other guides on the subject discuss how to set up a Samba-based solution, but we feel that our solution is simpler and easier since you only have to install and configure one program instead of several. For this purpose, we use GNUMP3d. GNUMP3d  is a program that makes media available through a web-based interface. Instead of using the Samba protocol, GNUMP3d uses ordinary HTTP to get the job done.

 

Preparation

This guide assumes that you have a Linux-based computer available and are ready to begin the installation process immediately. If this is not the case, you should set up a Linux-based environment to use.  It doesn't really matter which distro you are using, but for the sake of simplicity, we are going to use Ubuntu in this demonstration since Ubuntu has a large following and the needed software is already in the repositories. If your distro does not have a pre-compiled package of GNUMP3d  available, you will need to compile it yourself.

What you will need:

1.    A web browser

2.    Root or superuser access to the Linux system that is to be the media server

3.    Access to the Ubuntu repositories through apt-get (or the GNUMP3d source code and any necessary compile tools)

4.    One or more media players that can handle streaming media (Videolan, Amarok, and Totem with Gstreamer are recommended)

5.    Some music and/or video files to test with

Installation and configuration

Installation of  GNUMP3d is fairly simple and involves only a few steps. In this guide, we are going to assume that your movies and music are stored in your Linux home directory with the folder names Movies and Music, respectively.

1.    Open a terminal. (run xterm or your favorite terminal application)

2.    Run sudo apt-get install gnump3d if you are using Ubuntu 8.04 or earlier. If you are using 8.10, you have to install the package manually. If you are building from source, head on to the next step.

3.    Provide your sudo or root password and let the package manager  install GNUMP3d. If you are building from source, download the source tarball from the GNUMP3d website, untar, and compile it.

4.    The installation process will create a folder called music in the system's var folder. Navigate to that folder by running cd /var/music

5.    The time has come to populate the music folder with your media library. Although you could copy your movies and music folders to /var/music, there is a far better way. Linux has the ability to create symbolic links (symlinks) to other folders. The system is able to seamlessly follow these links. By creating symlinks to the Music and Movie folders in your home directory, you can leave your media library where it is and still make it available for streaming.

Since you did not personally create the /var/music folder, you are not able to copy files to it with your own user account. For this reason, you have to use sudo to make the links. Run sudo ln -s ~/Movies Movies and sudo ln -s ~/Music Music to make shortcuts to your music and movie folders.  From that point on, anytime you add a file to your media collection, the file will automatically be made available for streaming.

COMMENTS
avatarFree open source media server

Fuppes is a free open source media server for linux.  It is all commad line and works good on my headless Ubuntu server.  It is kind of a pain to set up, but works with my xbox 360.  Fuppes will even transcode video and music.

Login or register to post comments
avatarSorry, but a Linux-based

Sorry, but a Linux-based media streamer that requires a GUI just isn't that interesting. It would be nice to see open-source streaming software manageble through a simple Bash shell.

There's Twonky Media, but they want money for it.

Login or register to post comments
avatarEnhancing an Older Computer

I just tried this is in connection with one of those freebie watch tv online services and it works quite well. I was just going to throw away and let my old P1 with like 500mhz just rust but this is so much better.

I want to get a few monitors and turn them into a multiscreen - can probably pick some vga monitors for cheap ..will probably look on new egg or something for them.

Login or register to post comments
avatarPentiums were never released

Pentiums were never released in 500 MHz flavors.

Pentium II's were near the end, but Pentium III's got there first.

Login or register to post comments
avatarEnhancing an Older Computer

I just tried this is in connection with one of those freebie watch tv online services and it works quite well. I was just going to throw away and let my old P1 with like 500mhz just rust but this is so much better.

I want to get a few monitors and turn them into a multiscreen - can probably pick some vga monitors for cheap ..will probably look on new egg or something for them.

Login or register to post comments
avatarEnhancing an Older Computer

I just tried this is in connection with one of those freebie watch tv online services and it works quite well. I was just going to throw away and let my old P1 with like 500mhz just rust but this is so much better.

I want to get a few monitors and turn them into a multiscreen - can probably pick some vga monitors for cheap ..will probably look on new egg or something for them.

Login or register to post comments
avatarI believe Orb has been

I believe Orb has been either licensed out or taken over by Winamp; the Winamp equivalent is Winamp Remote and it works REALLY well. Highly recommend it to anyone needing to stream music, movies, etc. You access your media through a web browser, which means that I can stream music to my 3G smartphone. Very slick.

Login or register to post comments
avatarInteresting, but....

Interesting article, but I strongly believe that a Linux server with samba and XBMC as a frontend (cross-platform as well) on PC client is a better option.

Login or register to post comments
avatarWindows Streaming

A great option for Windows users is Orb http://www.orb.com/ 

 This is web based and works very well you can stream music and video. If you have a capture card on the streaming PC you can stream your TV to any other web connected computer.

 Best of all this is all free and brain dead simple to setup and run.

Login or register to post comments
avatarWindows Streaming, more format supported

TVersity (http://tversity.com/) will be your better choice on Windows platform, it supports more media format, both input and output.

Login or register to post comments

This Month's Issue
FEATURE How to Get FREE Programs, Services, Software & MoreFEATURE Digital Photo Printer RoundupHOW TOBuild a 3D CameraFEATUREDIY Arcade PCWHITE PAPERHow TRIM Works