[mythtv-users] Problems installing second capture card - xmltv id issues?

David Watkins watkinshome at gmail.com
Mon Jul 25 08:35:12 UTC 2011


On 24 July 2011 10:52, John Reid <johnbaronreid at netscape.net> wrote:
> I've installed my nanostick alongside my Hauppauge 2250. The nanostick
> seems to be working OK but I think I've messed up the channels on the
> Hauppauge. I have 2 XMLTV video sources. One is connected to both
> Hauppauge tuners and the other is connected to the nanostick. In the
> MythWeb channel editor I have 3 entries for each channel (one for each
> source id, I'm assuming the source ids represent the tuners). For those
> that were missing xmltv ids I copied the known ids to make them the same
> for all 3 entries for that channel. Was this the wrong thing to do? Do I
> need a different xmltv id for the same channel if the guide data is
> coming from a different video source?

I'm assuming the nanostick is the DVBT2 device, giving you access to
the extra HD channels not available on the 2250?

If so, I think you should have two video sources, one connected to
both the channels on the 2250, and the other connected to the
nanostick.  The nanostick's source will contain all the same channels
as the 2250's, plus the HD channels.

In the backend setup I would recommend giving your cards and sources
meaningful names (rather than accept the default) which helps when
connecting source to tuner, and also makes troubleshooting easier if
things go wrong.

Having done a channel scan on each capture card I then run a script
(attached), slightly modified from the one on the wiki, which assigns
visibility, channel number and xmltvid values to each channel based on
their callsign.  Note that I use xmltv data for the mainline TV
channels and EIT for the radio channels and some other TV channels of
borderline interest.  My channel list is likely to be slightly out of
date (new freeview channels seem to appear and disappear from time to
time) and you may have different channel visibility preferences.
(tv_grab_uk_rt has a 'listchannels" option which will show you what
channels are available).

I run mythfilldatabase externally using cron (script attached).  I do
a single tv_grab_uk_rt run, and then two mythfilldatabase runs, one
for each source.  I presume that if you configure mythbackend to run
mythfilldatabase then this is taken care of for you, but I'm not sure
how.

HTH
-------------- next part --------------
#!/bin/bash

# Set MythTV channel numbers

. ~/.mythtv/mysql.txt

echo '
update channel set visible=0,useonairguide=0, channum=NULL ;

update channel set visible=1,channum=52, xmltvid="hd.channel4.com" where callsign="Channel 4 HD" ;
update channel set visible=1,channum=51, xmltvid="hd.london-macro.itv1.itv.co.uk" where callsign="ITV1 HD" ;
update channel set visible=1,channum=50, xmltvid="hd.bbc1.bbc.co.uk" where callsign="BBC One HD" ;
update channel set visible=1,channum=54, xmltvid="hd.bbc.co.uk" where callsign="BBC HD" ;
update channel set visible=1,channum=1, xmltvid="london.bbc1.bbc.co.uk" where callsign="BBC ONE" ;
update channel set visible=1,channum=2, xmltvid="london.bbc2.bbc.co.uk" where callsign="BBC TWO" ;
update channel set visible=1,channum=7, xmltvid="bbcthree.bbc.co.uk" where callsign="BBC THREE" ;
update channel set visible=1,channum=9, xmltvid="bbcfour.bbc.co.uk" where callsign="BBC FOUR" ;
update channel set visible=1,channum=3, xmltvid="london.itv1.itv.co.uk" where callsign="ITV1" ;
update channel set visible=1,channum=6, xmltvid="itv2.itv.co.uk" where callsign="ITV2" ;
update channel set visible=1,channum=27, xmltvid="plus-1.itv2.itv.co.uk" where callsign="ITV2 +1" ;
update channel set visible=1,channum=10, xmltvid="itv3.itv.co.uk" where callsign="ITV3" ;
update channel set visible=1,channum=24, xmltvid="itv4.itv.co.uk" where callsign="ITV4" ;
update channel set visible=1,channum=4, xmltvid="channel4.com" where callsign="Channel 4" ;
update channel set visible=1,channum=13, xmltvid="plus-1.channel4.com" where callsign="Channel 4+1" ;
update channel set visible=1,channum=28, xmltvid="e4.channel4.com" where callsign="E4" ;
update channel set visible=1,channum=29, xmltvid="plus-1.e4.channel4.com" where callsign="E4+1" ;
update channel set visible=1,channum=14, xmltvid="more4.channel4.com" where callsign="More 4" ;
update channel set visible=1,channum=5, xmltvid="channel5.co.uk" where callsign="FIVE" ;
update channel set visible=1,channum=30, xmltvid="fiver.channel5.co.uk" where callsign="FIVER" ;
update channel set visible=1,channum=31, xmltvid="fiveusa.channel5.co.uk" where callsign="FIVE USA" ;
update channel set visible=1,channum=15, xmltvid="filmfour.channel4.com" where callsign="Film4" ;
update channel set visible=1,channum=19, xmltvid="dave.uktv.co.uk" where callsign="Dave" ;
update channel set visible=1,channum=20, xmltvid="freeview.1.virginmedia.com" where callsign="Virgin1" ;
update channel set visible=1,channum=35, xmltvid="tsod.plus-1.freeview.1.virginmedia.com" where callsign="Virgin1+1" ;
update channel set visible=1,channum=70, xmltvid="cbbc.bbc.co.uk" where callsign="CBBC Channel" ;
update channel set visible=1,channum=71, xmltvid="cbeebies.bbc.co.uk" where callsign="CBeebies" ;
update channel set visible=1,channum=72, xmltvid="citv.itv.co.uk" where callsign="CITV" ;

update channel set visible=1,useonairguide=1,channum=11 where name="SKY THREE";
update channel set visible=1,useonairguide=1,channum=12 where name="Yesterday";
update channel set visible=1,useonairguide=1,channum=80 where name="BBC NEWS";
update channel set visible=1,useonairguide=1,channum=81 where name="BBC Parliament";
update channel set visible=1,useonairguide=1,channum=82 where name="Sky News";
update channel set visible=1,useonairguide=1,channum=100 where name="Teletext";
update channel set visible=1,useonairguide=1,channum=301 where name="301";
update channel set visible=1,useonairguide=1,channum=302 where name="302";
update channel set visible=1,useonairguide=1,channum=303 where name="303";
update channel set visible=1,useonairguide=1,channum=305 where name="305";
update channel set visible=1,useonairguide=1,channum=700 where name="BBC Radio 1";
update channel set visible=1,useonairguide=1,channum=701 where name="BBC 1Xtra";
update channel set visible=1,useonairguide=1,channum=702 where name="BBC Radio 2";
update channel set visible=1,useonairguide=1,channum=703 where name="BBC Radio 3";
update channel set visible=1,useonairguide=1,channum=704 where name="BBC Radio 4";
update channel set visible=1,useonairguide=1,channum=705 where name="BBC R5L";
update channel set visible=1,useonairguide=1,channum=706 where name="BBC R5SX";
update channel set visible=1,useonairguide=1,channum=707 where name="BBC 6 Music";
update channel set visible=1,useonairguide=1,channum=708 where name="BBC Radio 7";
update channel set visible=1,useonairguide=1,channum=709 where name="BBC Asian Net.";
update channel set visible=1,useonairguide=1,channum=710 where name="BBC World Sv.";
' | mysql --database=${DBName} --user=${DBUserName} --password=${DBPassword}
-------------- next part --------------
#!/bin/bash

USER="mythtv"
HOME="/home/mythtv"

/usr/bin/tv_grab_uk_rt --config-file /home/mythtv/.xmltv/tv_grab_uk_rt.conf --output ~/freeview.xmltv > /dev/null 2>&1

/usr/local/bin/mythfilldatabase --file 1 ~/freeview.xmltv
/usr/local/bin/mythfilldatabase --file 2 ~/freeview.xmltv


More information about the mythtv-users mailing list