My first attempt to install shepherd was typical of an ultimately successful installation of “Open Source” multimedia software: it took a lot of mistakes, but finally I got there. Read all about it here. On 23 December 2008 I tried again, and was more successful. Here's my HOWTO, mainly for my own reference; the official reference currently differs in a few points.
I'm using shepherd with MythTV, and since my last attempt the shepherd people have paid more attention to this way of doing thing. It still didn't work straight out of the box. Right at the start I read:
[MythTV users only] Install and configure MythTV first. In mythtv-setup -> 3. Video Sources -> (your video source) -> Listings grabber, select No grabber. Perform a channel scan: mythtv-setup -> 5. Channel Editor -> Channel Scanner.
This didn't work for me with MythTV version 0.21. I had to go to 4 (Input) and perform the scan there.
So here's my HOWTO. It's based on what I did, but to get it really right, I need to check it by doing it again. Unfortunately, I haven't been able to go through that pain again. I'm setting up two DVB-T tuners, which complicate things a little.
This isn't really part of this HOWTO; see the MythTV wiki
This is relevant to shepherd, since what you do is intimately connected with shepherd. To configure, first log in as user mythtv, since a number of permissions rely on this user. Then run mythtv-setup. It may confuse the issue by giving you a screen which doesn't show the bottom (where the selection buttons are). Here's the main menu:
Select 2, ”Capture Cards”. Set Card type to “DVB DTV Capture card (v3.x) and select DVB Device Number. The image below shows the situation after both cards have already been selected, thus the warning. Note that the window is non-resizeable and cuts off the navigation links at the bottom. The first field after leaving this display is the next button, I think.
Select 3. Video Sources -> (your video source) -> Listings grabber. Set the video source name to shepherd and the Listings grabber to No grabber. The video source name is not critical, but it helps maintain an overview:
For each tuner, perform step 4, “Input”. Connect the source to an input as shown below. Set the display name to match the capture device (again, to make things easier to understand), set the Video source to shepherd, starting channel to 2 (it'll work without this, but if you don't set it, it'll cause strange messages when you least expect them). Select Scan for channels.
Set Country to Australia and Scan Type to Full Scan:
Let it do its thing, which can take a while, hiding the results with a progress screen.
After this you can go into the channel editor and remove things you don't want, but you can't edit much. The whole area is such a mess that I prefer to go into MySQL and frob the tables there; but that's a separate issue. In particular, at the moment there seems to be some issue with storing the frequencies for digital TV, and the channel editor screen doesn't even show them. They're stored in the attribute frequency of the table mythconverg.dtv_multiplex. If you find one set to 0, you'll need to find the correct frequency and put it in there; otherwise you'll get these messages:
This HOWTO was written using Ubuntu Linux release 8.10, and some of these details are not relevant to other Linux or BSD releases.
Don't even try to run shepherd until you've ensured that you have all your dependencies are installed:
Next, download shepherdas mythtv:
Next, run perl shepherd. There are many questions to answer.
I'm not sure that statement is correct. I'll check next time I install. The script gets installed as ~/.shepherd/shepherd, so it seems more likely that you need to run that.
If you're re-running this script after installation (because of a new channel, for example), run
In this case, some of the defaults below might be correct.
Last time I did this, Ballarat wasn't there, and I had to select Western Victoria (98). 98 is now Gippsland.
Select the channels you care about. My experience is that only Guided channel selection works.
Next, associate the guide data sources with the MythTV channel numbers. I don't know where the channel numbers come from, and they're pretty much useless with MythTV, but they get reported in a number of places, like here. shepherd doesn't even try to associate a channel with a guide data source, even when the names are the same. You must enter a number for every channel (if there is no information available, enter 0). There are no defaults, even when shepherd has been configured:
At the end, it shows a list:
Next is what shepherd calls transitioning:
This is a new installation, so I don't handle this one; just answer no.
Next we set up the interface with MythTV:
And yes, these are the original colours.
That's about the lot; there are other questions, and subsequently it needs to run mythfilldatabase to actually get the programme guide. When I tried, it took about 2½ hours, with lots of error messages; but it got most of the data.
|Greg's home page||Greg's diary||Greg's photos||Copyright|