[mythtv-users] dvb channel data into myth. (revisited)

John Pullan john.pullan at gmail.com
Wed Nov 9 17:20:37 EST 2005


On 09/11/05, Frank Simorjay <franks at simorjay.com> wrote:
> > azap is part of dvb-apps (certainly under cvs)
> > svn mythtv-setup can import channels.conf files (your mileage may
> > vary).
> Good stuff, does anyone know the format that Myth is expecting.
>
> >The actual format is : name:frequency:modulation:serviceid.
>
> I received this, which is great but now I see that it's missing fields.
>

Not if you're using ATSC, the format of channels.conf is  dependent on
which type of atsc/dvb you are using.

> Ffrr send me a great sample file.
> ABC
> HDTV:226500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMI
> SSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2314:0:576
>

If you are using ATSC which I presume you are, the above format is incorrect.

> I tried to imported the data, what do you know it worked.
> But I still am unclear as to what the fields are, except for the obvious
> ones.
>
> At this point I can tune channels with azap, dvbscan or scan (renamed),
> dvbtraffic gives me great info. I can cat traffic into mplayer and view my
> HD video. But when I use my output file from scan Myth fails to import it.
>
> sample output using -c -o zap
> [0007]                   (0x0007) 00: PCR == V   V 0x0800 A 0x0801 (eng)
> 0x0802 (spa)
> [0008]                   (0x0008) 00: PCR == V   V 0x0840 A 0x0841 (eng)
> [0009]                   (0x0009) 00: PCR == V   V 0x0880 A 0x0881 (eng)
> 0x0882
>
>
> Sample output -c
> 004:555000000:QAM_256:2048:2049:7
> 005:555000000:QAM_256:2112:2113:8
> 006:555000000:QAM_256:2176:2177:9
> name:frequency:modulation:vid_subchannel,aud_sub_channel,pid
>
> So can anyone shed light as to what seems wrong with these config files?
> Or at least open this format up so I can duplicate it by hand if need be.
>
>
> HDTV:226500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMI
> SSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2314:0:576
>
> Name:freq:??:bandwidth:??:??:Modulation:??:??:??:??:?? <- one of the last 3
> is sub_channel I think.
>

>From the code :

    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;

so for ATSC we have :

name, freqency , modulation and serviceid (think that might be program number)
004:555000000:QAM_256:2048:2049:7
005:555000000:QAM_256:2112:2113:8
006:555000000:QAM_256:2176:2177:9

Goes to :

004:555000000:QAM_256:7
005:555000000:QAM_256:8
006:555000000:QAM_256:9
I think the middle numbers look like pids to me. This may mean that
the format parser is wrong and needs updating.

Hope this helps.

--
John


More information about the mythtv-users mailing list