Andrew’s MythTV Walkthrough: A Simpler MythTV How-to for Beginners

In the past few weeks, I’ve been playing around with home networking and media centers and decided to set up a MythTV home entertainment system. It was pretty confusing at times, but definitely really educational, and I ended up learning a decent amount about AV stuff (which used to be totally foreign to me), Linux (of which I’m still getting a grasp), and networking/routing (around which I’ll never, ever wrap my mind).

I’m not pretending to be an expert, but I thought there should be a more consolidated guide on how to get MythTV up and running for those who aren’t as Linux and AV-savvy (like me), those who aren’t fully aware of all that MythTV has to offer, or those who don’t want to sift through the massive amount of information on the MythTV wiki. MythTV is a really fantastic tool, but the number of features and options can definitely be overwhelming at times, and although there are many good tutorials scattered around the wiki and on various blogs, I’ve always preferred consulting a single complete walkthrough. This post covers what MythTV is capable of, why you should use it instead of the alternatives, and how you can set up your own MythTV box.

Here is a diagram of my ideal MythTV/house setup. I haven’t completed some of the parts (like the security cameras), but it should give you a basic idea of what you can do with MythTV.

ourhouse2

I welcome comments (and criticism) from experienced users and questions from newbies. Andrew.Manugian@gmail.com

If you like, you can download a PDF of this walkthrough.


Navigation



-ABOUT MYTHTV-

What MythTV is:

MythTV is a really awesome tool: it’s basically Tivo, Slingbox, and a media/information center packaged into one free, open-source program and it’s a great way to run a robust home media network without a lot of complicated setup and ugly hardware. It allows its users to record TV and then makes it and all your other media accessible to a limitless number of computers/TVs/media devices in your house (and is even accessible over the internet).

what

Why you should use MythTV:

It’s Free: MythTV is totally free. And since it’s open-source software supported and developed by an entire community (complete with an extremely detailed wiki, you have all the support you’ll ever need if something goes wrong).

It’s capable: MythTV is capable of everything Tivo and other DVR hardware can do (pausing, rewinding, conflict-avoiding scheduling, etc.). It even has some pretty advanced commercial-detecting and skipping options (which I don’t use and should be the topic of an entirely different post), that aren’t available on most DVRs. Depending on how many capture cards you install, MythTV can record several feeds at the same time, so you can watch one feed while you record another one (or two, or three).

It’s clean: MythTV eliminates a lot of the local boxes and ugly cords that many people have on every TV and computer in their house. You could have your noisy, ugly, and bulky computer loaded with MythTV software located anywhere in your house (perhaps in the attic or basement) so you don’t have to bother with a bunch of wires and boxes (DVR, DVD, satellite receivers, external hard drives) around every TV or computer. It just makes for a much cleaner and quieter setup. You can access your formidable music collection without lugging around a bunch of external hard drives.

It’s Comprehensive: MythTV is definitely an example convergence culture. From a single TV, you can access the internet, record and watch TV, play music, stream videocasts, view photos, DVDs, and media clips, check the weather, Skype friends, and check movie times…and that’s just for starters. With all the available plug-ins and thanks to its open-source nature, the number of MythTV features seems only limited by the imaginations of its community members. Like classic videogames? Why not install a Super Nintendo or Arcade emulator? If enough people in the MythTV community express a need to have a feature, they will collaborate to incorporate it into the next release.

An ideal setup would include some sort of social networking like StumbleUpon or Digg in which individuals with similar tastes could recommend or even schedule recordings for you and you could post on or discuss specific episodes inside that episode’s schedule listings.

It’s Mobile: With a little knowledge about routing, you can schedule recordings and access all your media from a browser (or even your iPhone) anywhere in the world. Don’t like the tunes at a friend’s party? Log into your Mythweb account and play your own music. Stuck in traffic on your drive home? Pull out your iPhone and tell your MythTV box to record your favorite show. Can’t decide on what to watch at a friend’s house? Access your movies and recordings on his laptop and plug it into his TV.

How MythTV is different:

From my description, MythTV seems to sound like it’s imitating a lot of different products, but I’m of the opinion that it combines the best parts of many different hardware and software options. This section outlines the differences between MythTV and the products it resembles.

  • Like Tivo, MythTV schedules recordings, resolves programming conflicts, and lets you pause and rewind live TV. Unlike Tivo, you don’t have to switch rooms if you happen to have recorded a particular desired program on the downstairs unit because one MythTV box set up in your attic or basement can take care of all of your recordings and distribute them to various TVs as you see fit. Also unlike Tivo, it comes with no monthly fee.
  • Like a Slingbox (which is basically hardware that lets you remotely view and watch your TV on a computer anywhere), you can remotely access your TV from anywhere over the internet. Unlike Slingbox, it doesn’t have to monopolize your video source, because it can distribute to any number of computers. And since you can store the information on a hard drive (instead of only streaming it), you can direct download your recorded shows over the internet (if your connection is dodgy and your stream is constantly buffering). Also unlike Slingbox (and Tivo), it comes with no monthly fee.
  • Like Windows Media Center, MythTV provides a 10-foot interface in which users can access and view all their pictures, music, and video on a large TV screen from the comfort of their couch. Unlike Windows Media Center, you don’t need to purchase Premium or Ultimate Windows Vista as well as Windows-certified hardware and remotes for every TV… and your media formats are not limited to only Microsoft-approved ones.

What MythTV can do:

Like I said, besides the normal DVR function, MythTV has a variety of plug-ins that offer a lot of features DVRs do not. This section outlines a few of the ones I use.

  • MythTV: Watch a TV stream from any computer or TV in your house. Pause, rewind, and skip TV. Schedule, manage, and view recordings. Flag and skip or delete commercials.
  • MythWeb: Access and control your MythTV backend remotely from anywhere in the world. Schedule and manage recordings, watch TV, and listen to any of your MP3s (you can make playlists and stream them). Mythweb is the reason I use MythTV: with a 40 GB netbook and an internet connection, I can be in Thailand and still record and watch United States TV as well as access terabytes of information while it remains safe in my climate-controlled house in Memphis. You can even use Mythweb on your iPhone.
  • MythGallery: Bore your friends with vacation pictures! MythGallery lets you view your entire digital photo collection on your TV. Now, everyone can see those thousands of pictures that you’ll never get printed.
  • MythMusic: Listen to your digital music from any computer or TV in the house. Play your favorite mp3s while you choose what to record (or as you sort through your vacation pictures). Watch a visualizer with your friends.
  • MythVideo: Watch all those .avis and ripped DVDs that have been sitting on your hard drive on a big TV.
  • MythTube: Search for and watch streams from Youtube and get your favorite RSS feeds.
  • MythGame: Emulate classic console and arcade games. Play Super Mario World, Street Fighter 2, Metal Slug, and other classics from any TV in your house.
  • MythZoneMinder: Access your ethernet surveillance cameras to keep track of your kids and property. Great for home security or just for fun.

How MythTV works:

I’m not going to go into too much detail (mainly because I don’t think I really know that much myself), but MythTV runs on what they call a backend (which is your computer that runs the serverside software) and is accessed from frontends (client software).

Backend servers do all the work: recording, commercial flagging, transcoding, storing all of your media, and streaming all this content to any frontend you may have set up. You can set up a massive backend server near your cable or satellite feed while keeping laptops or netbooks on every TV or speaker setup. Frontends access any recordings or media you have as well as have the ability to schedule recordings or access a variety of information (weather, IMDB, movietimes, etc). Frontends can be a computer, xbox, or Big-screen TV with a laptop attached.

A backend will have a video feed and hard drives with whatever media you see fit. No more searching through empty DVD cases and struggling with scratched DVDs…if you upload all of your media to a hard drive on a backend server, you can access it from basically anywhere. The number of possible simultaneous recordings is based on the number of capture cards you have on your backend server.

Since I’m a digital packrat, and with hard drives cheaper than ever, I could see myself running several backend servers with multiple capture cards recording all the TV I possibly can for posterity. With two new 750GB hard drives, I just seriously upped my amount of available storage.


-BUILD YOUR OWN MYTHTV SETUP-

I’ll walk through exactly what I did to make my MythTV setup. Obviously, depending on what you want to get out of your system, you might change some things, so I’ll try and cover a few alternatives.

Step 1: Hardware

Having a capable machine is obviously an important first step, but after doing a little research, it became apparent that MythTV isn’t the most hardware-intensive (or wallet-intensive) software, so long as you make some good buying decisions. I was able to create a MythTV backend by harvesting parts off of my last two computers (one of which was 9 years old) and adding about $450 of new parts in order to create a Frankenstein.

hulk

My new MythTV box made from old and new parts…and a rare glimpse at my limited-edition Screaming-Action Hulk Doll.

Obviously, you don’t have to build a new computer…you could use an old one or buy a pre-made one. However, building your own computer is not only an educational exercise—it’s also extremely cost-effective, and you can ensure every component is exactly what you need. By each important part, I also list what are considered to be minimum requirements for MythTV.

  • Motherboard: I bought an Asus P5KPL-CM G31 for $60 because I fried my old one. Just make sure your motherboard has the right slots for what you need and can fit your CPU. This one has a PCI express slot for my graphics card and two PCI slots if I wanted to get another capture card. It also has onboard sound and SATA inputs for my hard drives.
  • Processor: Your CPU does all the transcoding, fastforwarding etc, and commercial flagging, but you don’t have to invest in an awesome CPU if your Capture card has its own encoder. I have an Intel Core2 Duo E7400 that I purchased for $110. I’ve read 800Mhz PIII systems and above are capable of capturing and watching live TV.
  • RAM: I put an old 2GB DDR2 stick in this computer and it has a slot for another. Although I’ve read MythTV boxes run adequately on 500 MB of RAM or less, I’m under the impression that you can always use more RAM.
  • Storage: I bought a 750GB SATA hard drive for $109. Encoded TV can take up to 2GB an hour, and if you want to put music and DVDs on your hard drive, you’ll definitely need a lot of space. Fortunately, I already had  two big external drives already full of media.
  • Power Supply: I used an old 650 Watt power supply, which is more than enough for this box’s needs.
  • Graphics Card: I bought a GeForce 7200 for only $44 dollars (I have no idea why it was cheaper than the 6k series). It’s a pretty powerful PCI express videocard with TV out. If you’re planning on hooking a TV directly into your backend/frontend, you’ll need a nice graphics card that’s supported by MythTV. Otherwise, don’t worry about it.
    • Capture Card: A capture card is what captures (and sometimes transcodes) your TV stream. If your capture card has hardware dedicated to doing the encoding, it takes considerable strain off your CPU. Once again, make sure MythTV supports your card before you buy. The Hauppauge PVR-500, which I got for $65 on ebay, has two tuner inputs (so you can watch and record two coax feeds simultaneously) as well as a S-video input (for my DirectTV box) and serves my needs quite well. It fits into the PCI slot of my computer, and a simple coax cable runs from a cable wall-jack to the card.
My PVR-500

My PVR-500

  • Cables: My local cable feed comes in on a basic coaxial cable from a wall jack into Tuner1 on the capture card, and the Satellite feed comes into the receiver from a coaxial cable and out of the receiver into the capture card with S-video and composite dual-channel audio cables (red and white). Additionally, if you want to control your satellite receiver from the computer, you’ll need either an infrared blaster cable or a usb-to-serial cable that’s approved by whatever set top box (STB) you have. Cooldvr has a lot of information on the matter, and the webmaster is very helpful and informative.

Step 2: Install Mythbuntu

mythbuntu

Mythbuntu is basically for people who don’t know enough Linux to make their own MythTV setup from the ground up (for example, me). It is the software that makes all this possible. Here’s how to install Mythbuntu.

  • Download Mythbuntu 9.04 from Mythbuntu’s download page. I got the 64 Bit version, as its recommended for more intensive actions, but either will probably do.
  • Burn CD/Create Bootdisk
    • CD – The file comes in .iso format, so use whatever preferred mounting/burning software you have to burn it to a cd. DVD Decrypter works just fine. Insert a blank disc, select the .iso from wherever you downloaded it, and burn it to disc. You now have a Mythbuntu install CD that can create a backend or frontend out of any computer.
    • BOOTDISK – Thanks to Paul for mentioning I should include this much easier method. Using the program Unetbootin for Windows and following these steps, you can install the .iso without having to burn a CD (plus, knowing how to use liveboot thumbdrives can be extremely handy in salvaging a harddrive).
  • Install CD on new computer. (Note that depending on what release you selected, some of these steps are out of order or nonexistent. Just be reasonable during the installation and everything will go fine…you can change most of these settings later anyway).
    • Click the default install option and go through the menus for preferred language, time zone, and keyboard setup. When they ask about partitions, click “Guided – use entire disk” to make the entire PC a Mythbuntu PC.
    • Next, set up your username and password. I used a complex password to make it more difficult to access Mythweb.
    • I did not set up any IR devices.
    • When they ask about drivers, load the proprietary drivers for your graphics card, and if you plan on using a TV out, select the correct resolution for your TV.
    • When they ask what system you want to set up, click “Primary Backend w/ Frontend” so that you’ll be able to access whatever media you record on the same box.
    • I didn’t do any backend configuration here because you can do it later, so skip that option.
    • For additional services, plug-ins, or themes, I selected all of them.
    • Finally, check over the installation summary to make sure you’re happy with all your settings. Click next… and Mythbuntu’s installed!

Step 3: Configure MythTV Backend and Control Center

CONFIGURE MYTHTV BACKEND:

The option to configure the backend is available during installation, but I doubt you’ll get everything right the first try. If you right-click your desktop, it’s an option under Applications->System->“Configure MythTV Backend.” You should now be looking at a screen a lot like this:

backend

The backend setup screen

  • General: You don’t really need to change many things in here unless you’re planning on running frontends on different machines. If that’s the case, you’ll need to set your Pin to 0000 and your IP address for MythTV and your backend to anything other than a IP provided.
  • Capture Cards: Configure your capture cards here. Select “New Card” for each new option. Hopefully, MythTV identifies the hardware, so all you have to do is name it and select what type it is. My cable feed’s name is cable, it’s encoder type is IVTV MPEG-2, it recognizes the card as a PVR-500, its location is /dev/video0, and its input is tuner1. My DirectTV is the same IVTV MPEG-2 encoder type, but location /dev/video1, its name is satellite, and its input is S-video 1.
  • Video Sources: In video sources, you basically assign a name and source to the inputs you just set up on your card. Select“new video source” and name it whatever is appropriate (I named one “cable” and the other “satellite”). Then assign the source to the corrosponding card and input. You should probably keep frequencies the default unless you still use a broadcast frequency or you see your specific frequency on the list.
  • Input Connections: Input connections lets you scan for channels as well as manually set channels. It’s a good tool to see whether you connected your box to the source correctly, but the mc2xml setup (explained later in this tutorial), does the channel import for you.

CONFIGURE MYTHTV CONTROL CENTER:

The MythTv Control Center is an easy-to-use GUI for a few more settings, most of which were offered in the original Mythbuntu installation. Access it by right-clicking your desktop and going to Applications->System->“MythTV Control Center”

config

The MythTV Control Center GUI

  • System Role: Change your system role (from dedicated backend to backend/frontend, etc).
  • Applications and Plug-ins: Select what plug-ins you want to appear on your frontend and set your Mythweb un/pw. I selected most of the plug-ins.
  • Remote Control: Although I haven’t, you can set up a IR remote control to work with your system.
  • Proprietary Codecs/Proprietary Drivers: Although MythTV can’t officially support or condone this, you can install all the codecs you need to view different file types. Simply click the option to enable the unofficial package and your installation will be underway.

STORING OTHER MEDIA:

I use MythTV’s default directories to store my other media. If you place the files in the correct folder, the MythTV frontend will automatically populate its Media Library.

  • Place music in                      /var/lib/mythtv/music
  • Place videos in                    /var/lib/mythtv/videos
  • Place pictures in                /var/lib/mythtv/pictures

Step 4: Configure TV listings

This one took me a little while to figure out, but it makes a lot of sense. The backendneeds to be getting your TV listings data from some service in .xml format (which is basically a spreadsheet with a week’s worth of TV listings in it). You could pay $20/year (with a 7-day free trial) at schedulesdirect or use mc2xml, which is a command line that downloads TV listings from Windows Media Center and TitanTV servers and puts them into a .xml file for free.

Without listings, you won't be able to tell your MythTV backend to record anything.

Without listings, you won’t be able to tell your MythTV backend to record anything.

HOW TO SETUP MC2XML:

  • First, if you run 64-bit Mythbuntu, you have to get some 386 libraries. In the terminal (right click->Open Terminal Here), type:

sudo apt-get install libc6-i386 (it will ask for your password, which you type and hit enter, even if you see nothing on the screen)

sudo apt-get install lib32nss-mdns

  • Download mc2xml for linux: link
  • Open the terminal and make a directory called mc2ml and move the file you downloaded there:

mkdir ~/mc2xml

cd ~/mc2xml

mv ~/downloads/mc2xml . (the period is important)

  • Make mc2xml executable and run it from the directory in order to configure it.

chmod 755 mc2xml

./mc2xml -c us -g yourzipcode

  • Answer questions about your TV provider (I selected Comcast Cable). Then update your mythfilldatabase.

mythfilldatabase –refresh-all –file 1 ./xmltv.xml (the way the –file command works is –file <source id> <xml file>, so if you have different files for the different sources you created in the backend setup, pick the ride modifier after –file. If you only have one source, 1 should be the default).

  • Finally, set up a cron jobthat can update mythfilldatabase with your mc2xml file daily.
    • First, open thunar as root (be careful as you can harm your system if you play with stuff you shouldn’t). Type sudo thunar in the terminal (and enter your password if it asks).
    • Then, in the /etc folder of your filesystem, open the file “crontab” and fill this information in on a new line. Change “user” to your username.

    27 3 * * * user /home/user/mc2xml/update.sh

    • This is code that makes your computer run a particular program daily at 3:27 am.
    • Finally, make a new file (right click->Create from Template->Empty File) in the mc2xml folder called update.sh and type this in it. This is the file that the cronjob is accessing.

    #!/bin/sh
    cd ~/mc2xml
    if ~/mc2xml/mc2xml ; then
    mythfilldatabase –refresh-all –file 1 ./xmltv.xml
    fi

TO SETUP LISTINGS FROM DIFFERENT FEEDS:

Setting up multiple listings in the same .xml isn’t particularly difficult, and you’ll want to do it if you have both cable and satellite feeds or any other combination of two sources. To set up multiple listings, you use mc2xml’s commands to add a created channel list to a new one and then write a new file:

-D =sets .dat filename     -C =sets .chl file

-I = Insert                       -o = sets output

mc2xml -D sat.dat -C sat.chl –o sat.xml for the satellite .dat, .chl, and .xml outputs

mc2xml -D cable.dat -C cable.chl -I sat.xml -o cable_satellite.xml creates a combination .xml file after inserting the satellite output from above

Now, download mc2xml for linux

http://mc2xml.110mb.com/#download

then, open the terminal and make a directory called mc2ml and move the file you downloaded there:

mkdir ~/mc2xml

  • cd ~/mc2xml

  • mv ~/downloads/mc2xml .

Make mc2xml executable and run it from the directory in order to configure it. Then update your mythfilldatabase.

chmod 755 mc2xml

  • ./mc2xml -c us -g 10000

  • mythfilldatabase –refresh-all –file 1 ./xmltv.xml

Finally, set up a cron job that can update mythfilldatabase with your mc2xml file daily.

First, open thunar as root (be careful as you can harm your system if you play with stuff you shouldn’t):

Terminal
Sudo Thunar

Then, in the /etc folder, open the file “crontab” and fill this information in on a new line. This is code that makes your computer run a particular program daily at 3:27 am.

Step 5: Configure and use MythTV frontends

If you would like an additional frontend, you can just follow the steps from your Mythbuntu installation CD as you install it on a new computer.

  • HOSTNAME: You’ll have to enter your backend’s internal IP (eg. 192.168.1.104), which you can discover by right-clicking your internet connectivity icon on your toolbar and clicking “Connection Information.”
  • DATABASE: default is mythconverg
  • USER: mythttv is default
  • PASSWORD: find this on your backend in /etc/mythtv/mysql.txt

Access your Frontend on your Frontend/Backend setup (right click desktop->Applications->Multimedia->MythTV Frontend). This is where you’ll watch TV and recordings, and access all your media. There are also a lot of settings you can play with inside the frontend. Accessing your frontend interface on any dedicated frontend machine is as easy as turning it on.

frontend

The main frontend screen — this will  be the interface on TVs or any other frontend

From the frontend, you can watch live TV, recordings, and any other media as well as schedule future recordings.

Watch TV is self-explanatory–provided your feeds are set up correctly, you can watch TV. Here are some of the buttons I use, but if you choose not to program a remote, here’s a full list of keybindings.

P = Pause                    R = Record

S = Guide                    O = Options

[ = Volume Down       ] = Volume Up

Y = Switch between video feeds

Numpad = Channel number input

Arrow keys = Skip left and right, channels up and down

The Media Library is where you access your recordings, videos, music, streams, pictures, and games.

media

Your Media Library…watch recordings and videos, listen to music, or play games

recordings

Access your recorded shows…in this case, my first recording is this year’s kid’s choice winner, iCarly

videos

Access your digital videos…like Aeon Flux, Morel Orel, or Superjail

music

Listen to metal while you navigate the menus

The Information Center has a bunch of useful information, based on what plug-ins you chose to install.

info

Get news feeds, movie times, weather information, movies trailers and more in your Information Center

Frontend configuration inside Setup/Utilities is extremely straightforward and mostly deals with aesthetics. The few exceptions are setting your zip code for weather/movie times, preferred news feeds in the Info Center Setup, and emulators in Media Setup->Games Setup.

Step 6: Configure Mythweb and Router Settings

This is the really cool bit. From Mythweb, you can schedule and access recordings and any other media you happen to put on your backend. There are several ways to allow outside access to your computer, and it’s important to properly password protect.

You can compensate for a router that issues dynamic local ips for your computers several ways, but No-IP is a really easy and free service that creates a static hostname for your dynamic IP. It also offers a service in case your router or cable provider prevents port 80 forwarding.

Select what programs you want your backend to record from anywhere

Select what programs you want your backend to record from anywhere…

...then stream or direct download them

…then stream or direct download them

Stream playlists

Stream playlists comprised of your stored music

PORT FORWARDING:

Port forwarding sends any outside http requests to your Mythbox’s local IP.

  • Right-click the connections icon on the taskbar on Mythbuntu and click “Connection Information”…your computer’s local IP should be listed. Since I use a linksys router, my MythTV box’s IP is 192.168.1.107.
  • To access my router settings, I have to type 192.168.1.1 into a browser (it varies depending on what router you own, so get out those hardware manuals). Under Applications and Gaming->UpnP Forwarding, you can make port 80, which handles http requests, always route to your MythTV box (address 192.168.1.107).
  • What this does is automatically send any outside http request to the MythTV box. Therefore, if you type in your home’s IP address from outside the house (get your address here), it should access your Mythweb, barring your router or internet provider blocking port 80.

I would definitely recommend password protecting both your Mythweb access and your router access with strong passwords. While your box is still password protected, this isn’t necessarily the safest way to do this, so I avoid it.

SECURE SSH TUNNEL:

SSH is a secure protocol used for sending information between two networked computers and the way I remotely access my Mythweb. I couldn’t write a better FAQ than this one: MythWeb ssh tunnel howto.

Linux usually has ssh installed, but if you’re connecting from a Windows PC, you can download PuTTY, which is an .exe which makes this whole remote connection process pretty easy.

Step 7: Optional Stuff

SDLMAME:

Mame is a multi-platform game emulator that MythGame is capable of running. Installation is quite easy.

mame

Be playing your favorite arcade games on any frontend in no time.

  1. Download a SDLMAME installer from here. I got the 64-bit Ubuntu 9.04 version.
  2. Double click the .deb file to install.
  3. Download whatever ROMS you feel like playing from ROM-World’s MAME section (or wherever else you can find your favorite games). Place the still-zipped games in “/usr/local/share/games/sdlmame/roms.” Recommended:  Marvel Vs. Capcom, Street Fighter Alpha 3, Metal Slug Series
  4. Inside MythTV’s Frontend (Rightclick desktop->Applications->Multimedia->MythTV Frontend->Utilities/Setup->Setup->Media Settings->Game Settings), create a new player entitled “Mame” with type “mame,” command “mame,” and ROM path “/usr/local/share/games/sdlmame/roms”.
  5. Enjoy! Access your games by selecting Media Library, then Games in the main MythTV frontend.

DIRECTTV THROUGH SERIAL:

Because I’d like to watch my Satellite feed after it’s been decrypted by a set top box, my MythTV box must have some way to communicate with the box in order to change channels. Luckily, this isn’t particularly difficult. I have a D12-100 DirectTV box, which is quite current, and I got a USB to Serial Cable from CoolDVR.

  1. Download the Directv.pl control script from here and place it in “usr/local/bin/directv.pl”
  2. Under “Input Connections” in the  backend setup, select the satellite connection and then add the script’s location to the channel change parameter. Mine was in /usr/local/bin/directv.pl
  3. Make sure your satellite box is activated and plugged in correctly, then connect the usb port to your computer’s serial port.

Whew…that was pretty exhausting to write. If you have any (simple), questions, I’ll try and answer them. And if you’re knowledgeable, please ridicule my more glaring mistakes.

Thanks for reading my guide,

Andrew Manugian

Andrew.Manugian@gmail.com

Twitter-32x32digg_321249076982_Stumbleupon_32x32

-Bonus Gallery-

Here are a few shots of the collection of my (not really that) old action figures.

IMG_1136 IMG_1135 IMG_1137

and my brand-new USB Missle Launcher

1

2

24 comments on “Andrew’s MythTV Walkthrough: A Simpler MythTV How-to for Beginners

  1. Clear, concise, informative. Everything that is needed to get a basic working box from start to finish is here, and then some. Very well done! I wish I had had the luxury of this guide when I was setting up my mythbox.

    I only have three suggestions, though they may be outside the scope of this article.

    1.) Installing from a flash drive can be much easier/quicker/less wasteful, and who doesn’t have a few spare pen drives laying around these days? Perhaps include a link to/instructions about UNetbootin for those running Windows could be a helpful alternative to burning a cd. I assume users of other distributions would be well aware of flash boot capabilities.

    2.) I remember when hard drives made a fuckton-o noise. Space was limited and making a disk backup wasn’t easy or economical. Or maybe I was just young and stupid. Anyway, I had one catastrophic, data devouring drive failure and vowed never again! So, maybe put in a word or two about data backup, RAID and/or FreeNAS just to throw it out there. Sure, losing some recorded shows really isn’t a biggie with MythTV’s hunger to quickly fill any sized HDD with a backlog of crappy TV, but if anyone is going to use their backend or appliance box as their main media server, they should be well aware of the consequences of no insurance. Data protection should be common sense, and you shouldn’t have to go over it, but at least give readers a heads up so they may be able to better plan their setup. It could also help you. If your HDD were to fail while you are overseas, who would replace it? With a RAID 1 or 5 array, your box would just keep on chugging in face of failure. Just be sure to leave about 100 megs of unpartitioned space in the array, IF you do the deed in Windows because it likes to round up on its cylinder head count, and dmraid (an Ubuntu fakeraid, aka software based, controller) doesn’t take too kindly to that around here Ubuntu parts. Needless to say, I am sitting on a 1TB RAID1 completely useless and inactive in Ubuntu until I can back it up and repartition. Thanks, assholes.

    3.) Finally, from years of abusing and playing with my modded Xbox, I prefer to use Xbox Media Center (XBMC) as my frontend. I believe it has superior media capabilities and, not to mention, looks 10x better than any MythTV OSD. Using the XBMC MythTV plug-in, most all of the live tv watching and scheduling functions can be emulated. Only thing that bothers me is that recordings are not marked as watched using the plug-in, but there will probably be a fix soon if not already. Plus, using other plug-ins like navi-x allow you to access hundreds of other livetv streams from across the globe as well as youtube, Revision3 stuff, Game trailers, etc. and the Launcher plug-in can accommodate your web browsing and gaming needs. In the end though, frontend choice is personal. But until I can have my cake and eat it too, or someone merges MythTV and XBMC, the XBMC dash makes an almost perfect frontend replacement.

    By the way, I was watching some IPTV from India through XBMC earlier, and a commercial came on for a birth control pill called Unwanted72. I checked the website, and the tag line is, “Don’t wait, Act within 72 hours…Because you want to maintain your smile.” Roflcopter

  2. Chris McQ. on said:

    Awesome tutorial. I’m a techie as a full time job and love tinkering with different things. Last year I moved from Windows to Linux (Ubuntu). This year I setup my first HTPC (XBMC). I’ve been looking for a way to replace the DVR so I can avoid paying even more to the Cable company. This is exactly the tutorial I was looking for.

    Thank you again for taking the time. Very much appreciated.

  3. Jason Mittell on said:

    Very interesting, Andrew! From somebody with less tech skills than you, I have a few questions:

    - If I put a MythTV backend in some out of the way place, is there a way I can route it to a TV without going through a front-end computer? Or is there a comparable box to the AppleTV box for Myth?

    - Is there a way to integrate CableCARDs to directly receive cable instead of routing through a box?

    • andrew manugian on said:

      – It wouldn’t be that difficult to route the MythTV main backend/frontend’s output through hardwiring…if your box has DVI output, you could feasibly get a DVI->CAT5 converter and route it anywhere in your house (remembering that you need some sort of converter on the other side with the TV). However, running between rooms (unless you had a complicated IR setup or something) to change channels would prove extremely frustrating.
      Additionally , any computer with video output could function as a cheap frontend, accessing the backend wirelessly and performing functions similar to AppleTV.

      – I’m afraid I don’t know much about cable cards. I suppose that your cable provider and package would determine whether or not you could access your cable feed unscrambled. However, so long as the video input into MythTV is unscrambled, the system will work.

  4. Where does the cables in the entertainment Room go to?. To the hub or directly to the pc (mythtv bcakend). I mean from the Samsung and the directv DVR. This is excatly what I have been looking for . Thanks a million!

  5. nice work. very nice work. thanks for your time.

  6. To make the ultimate HTPC, add XBMC and Boxee to the myth main menu, after installing them of course.

    For MythTV .21, refer to:
    http://forum.boxee.tv/showpost.php?p=64920&postcount=27

    For MythTV .22 (using trunk from the daily auto-builds or if using Mythbuntu 9.10 which runs .22 by default), refer to:
    http://forum.boxee.tv/showpost.php?p=65363&postcount=28

    And here is an XBMC icon I made for my theme of choice:
    http://i34.tinypic.com/2hocylw.jpg

    And a custom Boxee icon created by someone more skilled than I:
    http://gregms.dyndns.org/images/boxee.png

    To see the end result in action:
    http://i36.tinypic.com/2j44qxe.jpg

  7. Hi,

    Thanks for the detailed info..

    How are you changing the channels in the Cabel STB from your mythtv ??

    I thought you need an IR Blaster to send a signal to change the channel from mythtv once you schedule a recording..

    Could you pls provide more details..

    thanks
    mars

    • andrew manugian on said:

      Mars–

      although you can use an IR blaster, I find it even easier to use a serial cable (directly connecting your computer to the STB). If your STB doesn’t have a serial or USB port, then you would have to use an IR blaster. For DirectTV, i use DirectTV.pl as my script that controls the STB.

  8. Great tutorial I used it to get my system up and running.
    I have choppy video live and recorded.
    I have old ATI AIW card that I am using and think maybe I need a drive I found a gatos ati.2 but I don’t know how to install a driver for a video card. Can you tell me how to install a driver?

  9. Could you please explain the conections to the set up diagram. I am a bit confuses what cable goes to the hub, directv , setallite etc. I simple explain will help a new be.

  10. marcas de sony ericsson on said:

    Wicked cheers, very use full information. thank you.

  11. James on said:

    Great rundown on Mythtv/Mythbuntu (I’m also a Mythbuntu users for some years). Whoever told you that Mythtv can run on a P3 800 with 512 MB RAM was dreaming. I tried for some months to get it (Knoppmyth distro) to run on a 1.3 Ghz Celeron with 512 MB RAM and it did not work at all. It would play 3 seconds of video, then pause for 10 seconds, then play another 3 seconds of video, pause for 10 seconds, etc. In short, it was unusable, either for watching live TV or for watching recordings. Ok, so it’s true I had an el cheapo capture card that relied on the CPU for most of the video encoding, but the CPU actually exceeded by a bit the minimal recommendation. I only finally met with success using Mythtv when I managed to get ahold of an old P4 2 Ghz and threw 1 GB of RAM in it: with those specs, Mythtv actually performed as advertised. For those thinking about setting up a Myth box, don’t waste your time with anything less powerful than that. INcidentally, I ended up upgrading the CPU a bit to a 2.6 Ghz and upped the RAM to 1.7 GB and the system now functions better.

  12. JJDON on said:

    This is terrifically helpful.
    One question whose answer may be obvious, but I may be too obtuse to see it:

    If I store my backend mythbox in the basement, I assume I would likewise locate the directv tuner by its side. But if that is the case, how do I change channels if I am watching TV in the living room where my frontend is located? In other words, in the living room, when I pick up the remote and push channel 9, how does that IR signal get to the directv stb downstairs?
    All help appreciated.

  13. i agree with this….
    Great rundown on Mythtv/Mythbuntu (I’m also a Mythbuntu users for some years). Whoever told you that Mythtv can run on a P3 800 with 512 MB RAM was dreaming. I tried for some months to get it (Knoppmyth distro) to run on a 1.3 Ghz Celeron with 512 MB RAM and it did not work at all. It would play 3 seconds of video, then pause for 10 seconds, then play another 3 seconds of video, pause for 10 seconds, etc. In short, it was unusable, either for watching live TV or for watching recordings. Ok, so it’s true I had an el cheapo capture card that relied on the CPU for most of the video encoding, but the CPU actually exceeded by a bit the minimal recommendation. I only finally met with success using Mythtv when I managed to get ahold of an old P4 2 Ghz and threw 1 GB of RAM in it: with those specs, Mythtv actually performed as advertised. For those thinking about setting up a Myth box, don’t waste your time with anything less powerful than that. INcidentally, I ended up upgrading the CPU a bit to a 2.6 Ghz and upped the RAM to 1.7 GB and the system now functions better.

  14. Hi all,

    I’m just starting to get a Mythbuntu installation going. Knowing well all the hints about difficulty at first, I think my persistence will prevail in the end.

    So far, let me explain what I hope to accomplish.

    I plan to use my shinny new Sony LCD TV with built in DLNA Certified UPnP capability as the front end. So, am I nuts, or should this work?

    So far, I have connected a Linksys wireless/n bridge to the TV and using the TV remote, I can call up and play video content from the cable network. I can see and play some stuff that I had no idea was even out there. Wow, things happen fast in this tech. world.

    Having done the above, I hope that the Mythtv backend will perform the same streaming that the TV DLNA seems to like. This would be really cool, as its already in the TV, plus I think it would perform the function of the frontend.

    If my wife can tolerate my prolonged intense computer time, (and she has so far), I’m hoping all will work out well.

    So I guess my question is has anyone done this or thinks it can be done.

  15. Fantastic overview. I just finished building my first Myth system and have been totally satisfied with it. For years I had been searching for the perfect system that would do everything I wanted: DVR + Playing back Videos (DVDs) + photo/music abilities + non windows based + web access + custom events. MythTV does it.

    I would just add that this is not a project for the non-tinkerng type of person. I spent hours searching google and forums trying to solve issues with my RF remote control, network issues, etc. I have little experience in Linux so most of the learning curve was figuring out how to EDIT/FIND/MOVE files on Ubuntu. In the end … it was well worth it!

    BTW – I have tried Tivo, BeyondTV, Windows Media Center, and Apple TV … and have been unhappy with one aspect or another. With MythTV, I have almost no complaints!

  16. Just curious, what are you doing for XML data now?

  17. Nice article dude! loving reading from ya.

  18. neuronworld on said:

    I am trying to setup dish network. Your documentation is really good. But I am not able to setup mythtv. I have Hauppauge HVR-1600. I am using only svideo at /dev/video0. All of them show /dev/video0 and not /dev/video1 etc. I used schedulesdirect.org
    Since dish network receiver sends content on channel 3 for me. I selected at 3 on starting channel and click scan for channels. Nothing comes up. What am I doing wrong

  19. Roy Blumenthal on said:

    Thanks very much for this tutorial. I’m a COMPLETE Linux newbie. So I’ve been hunting my ass off trying to demystify this stuff.

    Your tut gives me a sound knowledge framework to work from.

    What I’d love more than anything in this piece is a ‘What Can Go Wrong?’ section. From my two full days of wrestling with MythBuntu on a clean box, I can tell you that your easy path through the confusion was partially due to luck. The chief luck was that your tv card was right.

    My tv card is providing some hassles. (Understatement, much?) And there really is no simple breakdown of the topic.

    Also, a lot of Linux geeks who’ve written posts on forums take a bunch of things for granted. Such as using loaded words like ‘RUN’ or ‘EDIT THE CONFIG FILE’. On my install of MythBuntu, there was no text editor, and no clear way to run anthing. I had NO idea. So maybe one of the things you could include would be a simple ‘phrase book’ to interpret some of the geekisms on other sites.

    Thanks again.

    Blue skies
    Roy

    PS: One of the previous commenters asked about putting their box somewhere else in the house. There is a remote control app available for Android, and one for iOs. I’ve managed to connect MythMote (Android) to my box, and did some rudimentary button pushing. It works anywhere you’ve got network access, cos it works through your wifi network. I haven’t tried the iOS one yet. It’s on my girlfriend’s phone. And I’m not gonna waste time on that till I can get live tv working.

  20. Temour on said:

    Andrew, very nice walk through,

    I am working on developing a plugin for mythtv. Do you know that how to setup and run a plugin on backend server that shows in frontend? Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.


Hit Counter provided by brochure holders