[mythtv] Tuner channels setup (and other stuff)

Matthew Burnham mythtv-dev@snowman.net
Fri Jan 10 21:18:00 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C2B8ED.D8E966D0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Until today when I investigated my channels setup, I've been unable to
change channels within mythtv (though I solved the problem of lockup
when trying previously).

To make the channels work (ie. changeable and show the full OSD info
for the current programme, etc.) I had to put the frequency/channel 
numbers in the channum field. Is this the correct thing to do? Where are
the default entries for this field derived from/calculated in. (I
presume at some point in setup).

As well as now being able to change channels, I also learnt more about
the large numbers on the OSD that appear when number keys are pressed.
I originally expected these to correspond to channel (ie. BBC1 == 1,
BBC2 = 2, etc.) but they seem to show the frequency/channel numbers
(ie. BBC1 == 22, BBC2 == 28, etc.) This is not how I would expect it to
work, but is perhaps how american TVs work?

<waffle>
I also noted that the EPG shows these channel numbers. From
what I remember of using mythfilldatabase --manual previously, I'd
assumed that the 'channel number' required was a channel rather than
frequency. Now I realise that mythtv needs to get the frequency/channel
number from somewhere, and the database needs to store it somewhere. My
understanding of this is a little unclear and though I've managed to
bodge it into working, I was hoping to be able to fix it for the general
case, so a new installation works from the off - I thought that I'd read
somewhere that frequency/channel details were picked up from a xawtv
config file, but this may have been another PVR project! Even so, it
currently requires devling into the database so I would have expected a
more
user-friendly way to be available.
</waffle>

So,

1. Is channum meant to be the frequency number (ie. 25, 28, etc.)? A
default
run of mythfilldatabase fills it with integers from 1 (ie. 1, 2, 3, 4,
5).

>From my experience of UK TVs, I would expect to refer to channels by
their channels number (ie. 1, 2, 3) rather than frequency, at all times
except when originally setting the TV up. Is this how it works in the
rest of the world, as MythTV seems to work differently:

2a. What is/should be shown on the OSD/used to select channels directly
by number (big numbers)?

2b. What is/should be shown next to the logos in the EPG?

------

Thus far, I've got normal terrestrial TV working by editing the channum
field in the channel table to manually add the frequency/channel from
/etc/X11/xawtvrc. However, once that works well, I'd like to get it to
'talk' to my Sky box.

<waffle>
As far as I can see, each channel has a sourceid referring to the
capture card. If I want to view/record a programme on the Sky box
(connected via the Composite1 input) it would need to switch to
Composite1 then send an IR command.

>From the way channel and cardinput are defined and my feeble
understanding of the channel changing code, sourceid is identical
for each part of the capture card. Presumably addign a cardinputid
to each channel would allow specification of the input required for
each channel. Or is it meant to work another way.
</waffle>

------

Does anyone else get their video source name duplicated in the fourth
setup screen? If its not just me, I might try and figure out why.

Oh, and is there any particular reason why the setup GUI is stretched to
full-screen whereas the EPG, and other mythfrontend stuff isn't?

-- 
Mat Burnham
 

------=_NextPart_000_0003_01C2B8ED.D8E966D0
Content-Type: text/plain;
	name="channel-table.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="channel-table.txt"

mysql> select * from channel;=0A=
+--------+---------+----------+----------+-----------------+-------------=
---------------------------+----------+--------------+-------------------=
--------+=0A=
| chanid | channum | sourceid | callsign | name            | icon        =
                           | finetune | videofilters | xmltvid           =
        |=0A=
+--------+---------+----------+----------+-----------------+-------------=
---------------------------+----------+--------------+-------------------=
--------+=0A=
|   1000 | north   |        1 |          | BBC1 (North)    | =
/home/mbb/.mythtv/channels/logo-12.gif |        0 | NULL         | =
north.bbc1.bbc.co.uk      |=0A=
|   1001 | north   |        1 |          | BBC2 (North)    | =
/home/mbb/.mythtv/channels/logo-25.gif |        0 | NULL         | =
north.bbc2.bbc.co.uk      |=0A=
|   1002 | yorks   |        1 |          | ITV1 (ITV1 YTV) | =
/home/mbb/.mythtv/channels/logo-36.gif |        0 | NULL         | =
yorkshire.granadatv.co.uk |=0A=
|   1003 | chann   |        1 |          | Channel 4       | =
/home/mbb/.mythtv/channels/logo-53.gif |        0 | NULL         | =
channel4.com              |=0A=
|   1004 | chann   |        1 |          | five            | =
/home/mbb/.mythtv/channels/logo-54.gif |        0 | NULL         | =
channel5.co.uk            |=0A=
+--------+---------+----------+----------+-----------------+-------------=
---------------------------+----------+--------------+-------------------=
--------+=0A=
5 rows in set (0.01 sec)=0A=
=0A=
+--------------+------------------+------+-----+---------+-------+-------=
--------------------------+=0A=
| Field        | Type             | Null | Key | Default | Extra | =
Privileges                      |=0A=
+--------------+------------------+------+-----+---------+-------+-------=
--------------------------+=0A=
| chanid       | int(10) unsigned |      | PRI | 0       |       | =
select,insert,update,references |=0A=
| channum      | varchar(5)       |      |     |         |       | =
select,insert,update,references |=0A=
| sourceid     | int(10) unsigned | YES  |     |         |       | =
select,insert,update,references |=0A=
| callsign     | varchar(20)      | YES  |     |         |       | =
select,insert,update,references |=0A=
| name         | varchar(20)      | YES  |     |         |       | =
select,insert,update,references |=0A=
| icon         | varchar(255)     | YES  |     |         |       | =
select,insert,update,references |=0A=
| finetune     | int(11)          | YES  |     |         |       | =
select,insert,update,references |=0A=
| videofilters | varchar(255)     | YES  |     |         |       | =
select,insert,update,references |=0A=
| xmltvid      | varchar(64)      | YES  |     |         |       | =
select,insert,update,references |=0A=
+--------------+------------------+------+-----+---------+-------+-------=
--------------------------+=0A=
=0A=

------=_NextPart_000_0003_01C2B8ED.D8E966D0--




More information about the mythtv-dev mailing list