[mythtv-users] Debug DVB EIT data

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Apr 25 03:48:59 UTC 2014


On Thu, 24 Apr 2014 23:35:23 +0200, you wrote:

>2014-04-24 12:51 GMT+02:00 Stephen Worthington <stephen_agent at jsw.gen.nz>:
>> On Thu, 24 Apr 2014 10:57:35 +0200, you wrote:
>>
>>>Hello,
>>>
>>>I have some EIT problems with few channels in DVB-T. I want to debug
>>>it to know if it is MythTV problem or channel problem.
>>>
>>>I add eit log in the backend: mythbackend --setverbose eit
>>>
>>>But I want to have an alternative Linux tool to get EIT data, I try
>>>tv_grab_dvb (http://bryars.eu/projects/tv_grab_dvb/) but it is old
>>>software (the development stop in 2007).
>>>
>>>Is there any other tool to debug the EIT data?
>>>
>>>Thanks and best regards.
>>
>> My satellite pay-TV EIT EPG is all collected from a DVB-S mux using
>> epgsnoop:
>>
>>   https://launchpad.net/epgsnoop
>>   https://github.com/hadleyrich/epgsnoop
>>
>> It uses dvbsnoop to get the actual data:
>>
>>   http://dvbsnoop.sourceforge.net
>>
>> (dvbsnoop is an installable package on Ubuntu).
>>
>> To get MHEG EPG data from DVB-T here in New Zealand, we use
>> mhegepgsnoop:
>>
>>   http://sourceforge.net/projects/mhegepgsnooppy
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>
>Thanks Stephen,
>
>I installed epgsnoop, it works with DVB-T channels?
>
>I just try with DVB-S:
>
>$ epgsnoop
>
>Processing packets: 04364
>Total programs:     470
><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE tv SYSTEM "xmltv.dtd">
><tv generator-info-name="epgsnoop/0.84"
>generator-info-url="http://launchpad.net/epgsnoop"
>date="20140424232536 ">
></tv>
>
>I copy the "channels.conf.sky" file, I don't have any of this channel,
>so I will try to create a channels.conf with my DVB-T channels.
>
>Thanks.

Epgsnoop is supposed to work with DVB-T channels too, but here in New
Zealand we only get now/next EPG data broadcast on DVB-T (current
program and the next one), which is useless, so I have never used
epgsnoop with DVB-T.  Our full DVB-T EPG is delivered using MHEG5.

In theory, all you should need to do to get epgsnoop to work with
DVB-T is to tell it to tune a DVB-T adapter instead of a DVB-S one.

This is the script I use to fetch my SkyTV DVB-S EPG:

#!/bin/bash

# Get the SkyNZ EIT EPG data from a SkyNZ satellite multiplex.

# DVB-S/S2 adapter number to use.
ADAPTER=4

cd /tmp

if [ -e epgsnoop.pid ]; then
    rm epgsnoop.pid
fi

epgsnoop --tune 12671 --lnb 10750 --adapter=$ADAPTER --config-dir
/usr/local/bin/.epgsnoop >listings-sky.xml


The rest of the configuration for epgsnoop comes from the
.epgsnoop/epgsnoop.conf and .epgsnoop/channels.conf files.  This
script it called from another script that takes the resulting
/tmp/listings-sky.xml file and does a few other things before it runs
mythfilldatabase on it.

For DVB-T, you will not need the "--lnb 107050" parameter, just the
frequency for the "--tune" parameter.

The data needed to build the channels.conf file can be found by
scanning all the DVB-T multiplexes.  This is the script I use to do
that here in NZ from the Wharite transmitter (FreeviewHD-scan.sh):

#!/bin/bash

# Scan all Freeview DVB-T frequencies for channel information.

# DVB-T multiplex frequencies (kHz)
declare -a DVB_T_FREQS=(530000 562000 578000 594000)
declare -a FREQS=${DVB_T_FREQS[*]}

# Adapter number of DVB-T card.
ADAPTER=2

# Output file to store the results of the scan.
OUTPUT_FILE=FreeviewHD_scan.txt

if [ -e "$OUTPUT_FILE" ] && [ -f "$OUTPUT_FILE" ] ; then
    rm "$OUTPUT_FILE"
fi

for a in ${FREQS[*]}; do
    echo "[[Tuning to $a Hz]]" | tee -a "$OUTPUT_FILE"
    dvbtune -f $a -qam 64 -gi 16 -cr 3_4 -bw 8 -tm 8 -m -c $ADAPTER
2>&1 >/dev/nul &
    DVBTUNE_PID=$!
    sleep 1
    scan-s2 -c -q -o vdr -x -2 -t 7 -a $ADAPTER | tee -a $OUTPUT_FILE
    kill $DVBTUNE_PID >/dev/nul
done

To find the frequencies of the DVB-T transmitters to scan, you will
need to refer to the local listings of such things.  Here in New
Zealand, the government allocates the transmitter frequencies and
maintains web pages listing them all.  For DVB-S/S2 frequencies, I
usually use the Lyngsat site:

  http://www.lyngsat.com

Then you will need to manually build the channels.conf file from that
data.  Also needed are the channel numbers for each channel on each
multiplex, which are normally available from local program listings
(eg in you local newspaper).  The xmltvid is made up for each channel
- the channels.conf file is the original source of xmltvid values. But
if there are existing xmltvid values already being used for your
channel by other people, it is best to find and use them, if possible.
You may also need to adjust the various parameters on the dvbtune
command for what your local transmitters use.

Here is the output from running my FreeviewHD-scan.sh script:

[[Tuning to 530000 Hz]]
Apna
Television;Kordia:530000:I0B999C0D0M64T2G32Y0:T:27500:501:0:0:0:1501:8746:34:0
[[Tuning to 562000 Hz]]
TV3;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:450:410;410:0:0:1300:8746:31:0
FOUR;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:451:0:0:0:1301:8746:31:0
TV3
PLUS1;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:452:0:0:0:1302:8746:31:0
C4;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:453:0:0:0:1303:8746:31:0
The Shopping
Channel;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:454:0:0:0:1304:8746:31:0
Al
Jazeera;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:456:0:0:0:1308:8746:31:0
Te
Reo;Mediaworks:562000:I999B999C0D0M64T2G32Y0:T:27500:457:0:0:0:1309:8746:31:0
[[Tuning to 578000 Hz]]
TV
ONE;TVNZ:578000:I999B999C0D0M64T2G32Y0:T:27500:270:421;421:1010:0:1200:8746:27:0
TV2;TVNZ:578000:I999B999C0D0M64T2G32Y0:T:27500:271:422;422:1010:0:1201:8746:27:0
TV ONE plus
1;TVNZ:578000:I999B999C0D0M64T2G32Y0:T:27500:272:0:1010:0:1206:8746:27:0
TV2+1;TVNZ:578000:I999B999C0D0M64T2G32Y0:T:27500:273:0:1010:0:1207:8746:27:0
[[Tuning to 594000 Hz]]
Maori
Television;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:550:0:0:0:1400:8746:33:0
Parliament;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:551:0:0:0:1401:8746:33:0
Trackside;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:552:0:0:0:1402:8746:33:0
ChineseTV;TVNZ:594000:I999B999C0D0M64T2G32Y0:T:27500:553:0:0:0:1403:8746:33:0
PRIME;SKY:594000:I999B999C0D0M64T2G32Y0:T:27500:554:0:0:0:1404:8746:33:0
TV33;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:555+8155:0:0:0:1405:8746:33:0
ChoiceTV;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:556:0:0:0:1407:8746:33:0
Yes
Shop;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:564:0:0:0:1420:8746:33:0
Firstlight;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:558:0:0:0:1414:8746:33:0
Sommet
Sports;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:559:0:0:0:1415:8746:33:0
TVSN
Shopping;Kordia:594000:I999B999C0D0M64T2G32Y0:T:27500:563:0:0:0:1419:8746:33:0

Which is not a very friendly format.  The fields are explained here:

  http://linuxtv.org/vdrwiki/index.php/Syntax_of_channels.conf


More information about the mythtv-users mailing list