[mythtv] (ATTN: John Pullan) HD-3000 HD Digital TV over Cable Working - But I had to hack to do it...

John Pullan john.pullan at gmail.com
Sun Jun 26 10:12:54 UTC 2005

On 21/06/05, Christiaan Lutzer <mythtv.lutzer at gmail.com> wrote:


> Anyway, onto why this message is appropriate for this email list: I
> had to alter my libmythtv library sources in order to get this to
> work.  The HD-3000 card is recognized as an ATSC card.  For the life
> of me I could not get scanning to work, so I had to figure out
> something else to do.  I noticed that if the card was a QAM (FE_QAM)
> card, that you could supply a "channels.conf" file in lieu of
> scanning.  However, with ATSC, the GUI components are not there to
> allow you to enter a channels.conf file if the card is ATSC.  So, I
> hacked the code to:
> 1.) Allow one to specify a channels.conf file if your card is of type ATSC, and
> (scanwizardhelpers.cpp)
>     case CardUtil::ATSC:
>         addSelection(tr("Full Scan"),
>                      QString::number(FullScan_ATSC),true);
> +       addSelection(tr("Import channels.conf"),
> +                    QString::number(Import));
> 2.) Modified the DVBConfParser to read in the program number from
> channels.conf if the card type is ATSC.
> (dvbconfparser.cpp)
> bool DVBConfParser::parseConfATSC(QStringList& tokens)
> {
>     cerr << "DVBConfParser::parseConfATSC(): parsing tokens..." << endl;
>     Channel c;
>     QStringList::Iterator i = tokens.begin();
>     QStringList::Iterator end = tokens.end();
>     if (i != end) c.name = *i++; else return false;
>     if (i != end) c.frequency = (*i++).toInt(); else return false;
>     if (i == end || !c.modulation.parseConf(*i++)) return false;
> +   // We need the program number in the transport stream, otherwise we cannot
> +   // "tune" to the program.
> +   if (i != end) c.serviceid = (*i++).toInt(); else return false;
>     channels.append(c);
>     return true;
> }
> And, the channels.conf file that I used simply looked like:
> [root at localhost ~]# cat channels.conf
> PBS HDTV:585000000:QAM_256:1
> CBS HDTV:603000000:QAM_256:2
> ABC HDTV:597000000:QAM_256:1
> NBC HDTV:597000000:QAM_256:2
> FOX HDTV:603000000:QAM_256:1
> TNT HDTV:681000000:QAM_256:1
> GBH Kids DTV:591000000:QAM_256:2

The above looks fine, although I have no way to test this, I suggest
you submit a patch :)
> Now, to me, if you want to use MythTV to record and view HD and SD
> Digital TV, it would be very difficult programmatically to determine
> what frequency and program number corresponded to what XMLTV ID.  So,
> to me anyway, channels.conf seems like the way to go.
> Does this hack make sense?  Is there a better way to do it?  Am I nuts?
If we are going to have an import channels.conf it make sense to have
it for all types.


More information about the mythtv-dev mailing list