[mythtv-users] Wrong start date when EIT scanner inserts programs (and question about episode-num in EIT data)

Roger Mårtensson roger.martensson at gmail.com
Tue Apr 23 23:22:41 UTC 2013


Hi all!

I've managed to get the EIT-scanner running (DVB-C) on some channels 
which I am missing XMLTV-data.

But I am having some trouble. The start time is off by one hour. 
Everything starts an hour AFTER the show has been aired. Not that good.

Before I start I should say that I'm in sweden and we are currently in 
CEST Timezone (and CET the other half of the year).

So..

With some help and hand holding by dekarl on IRC I have made some 
dvbsnoop dumps. They are at the end of this letter.

The only other device I've checked with is an pretty new and shiny LG 
Smart TV with DVB-C support. Everything is correct on that device.

The first block below is a 0x14 dump showing that the EIT data actually 
says it's in CET (UTC+1) and not CEST (UTC+2) I live in.

It seems that MythTV does not take this into account. Maybe it should?
Yes. The data is "bad" from the source but it also tells us how much 
wrong the time is.
What is the best way to "fix" this issue without loosing too much bells 
and whistles?
I only recieve data from one country so I'm a bit biased. :)

The next dump is a request from dekarl(IRC). It shows some use of 
key/value pair.
Here comes the "episode-num" question since it is part of this 
key/value-pair. Can this be put into use somehow? Automatically insert 
episode information. I like the "subtitle idea" since it's used a lot 
here in sweden (xmltv-data). Ie. The subtitle has the name "Episode/Part 
X Season Y".

Key/value-pairs I've found in a short snoop at my site are:
actor, country, data, directory, episode-num, length, writer

Over to the dumps...

(Emailer is line wrapping.. Beware!)

DVB Snoop on 0x14
---------------------------
------------------------------------------------------------
SECT-Packet: 00000001   PID: 20 (0x0014), Length: 29 (0x001d)
Time received: Wed 2013-04-24  00:50:09.941
------------------------------------------------------------
   0000:  73 70 1a dc 55 23 50 09  f0 0f 58 0d 53 57 45 02 
sp..U#P...X.SWE.
   0010:  01 00 da cb 03 00 00 01  00 bd a7 54 2f            ...........T/

PID:  20 (0x0014)  [= assigned for: DVB Time and Date Table (TDT), Time 
Offset Table (TOT)]

Guess table from table id...
TOT-decoding....
Table_ID: 115 (0x73)  [= Time Offset Table (TOT)]
section_syntax_indicator: 0 (0x00)
reserved_1: 1 (0x01)
reserved_2: 3 (0x03)
Section_length: 26 (0x001a)
UTC_time: 0xdc55235009 [= 2013-04-23 23:50:09 (UTC)]
reserved_3: 15 (0x0f)
Descriptor_loop_length: 15 (0x000f)

         DVB-DescriptorTag: 88 (0x58)  [= local_time_offset_descriptor]
         descriptor_length: 13 (0x0d)
             Country_code:  SWE
             Country_region_ID: 0 (0x00)
             reserved_1: 1 (0x01)
             local_time_offset_polarity: 0  [= plus to UTC]
             Local_time_offset: 01:00
             Time_of_change: 0xdacb030000 [= 2012-03-25 03:00:00 (UTC)]
             Next_time_offset: 01:00


CRC: 3181859887 (0xbda7542f)
==========================================================

DVB Snoop 0x12:
------------------------------------------------------------
SECT-Packet: 00001372   PID: 18 (0x0012), Length: 593 (0x0251)
Time received: Wed 2013-04-24  00:42:49.240
------------------------------------------------------------
   0000:  4e f2 4e 08 70 e7 00 01  00 02 00 64 01 4e 4d 2a 
N.N.p......d.NM*
   0010:  dc 55 23 20 00 00 50 00  82 33 54 02 f0 00 4d 10   .U# 
..P..3T...M.
   0020:  73 77 65 0b 05 43 69 74  79 61 6b 75 74 65 6e 00 
swe..Cityakuten.
   0030:  4e fd 02 73 77 65 00 f7  05 41 6d 65 72 69 6b 61 
N..swe...Amerika
   0040:  6e 73 6b 20 64 72 61 6d  61 73 65 72 69 65 20 66   nsk 
dramaserie f
   0050:  72 e5 6e 20 31 39 39 37  2e 20 46 72 69 65 6e 64   r.n 1997. 
Friend
   0060:  6c 79 20 46 69 72 65 2e  20 44 72 2e 20 57 65 61   ly Fire. 
Dr. Wea
   0070:  76 65 72 20 62 6c 69 72  20 63 68 65 66 20 66 f6   ver blir 
chef f.
   0080:  72 20 61 6b 75 74 76 e5  72 64 65 6e 20 6f 63 68   r 
akutv.rden och
   0090:  20 62 f6 72 6a 61 72 20  6f 6d 65 64 65 6c 62 61    b.rjar 
omedelba
   00a0:  72 74 20 6d 65 64 20 66  f6 72 e4 6e 64 72 69 6e   rt med 
f.r.ndrin
   00b0:  67 61 72 2c 20 76 69 6c  6b 65 74 20 67 f6 72 20   gar, vilket g.r
   00c0:  61 74 74 20 64 65 20 61  6e 64 72 61 20 76 e4 6e   att de 
andra v.n
   00d0:  64 65 72 20 73 69 67 20  6d 6f 74 20 68 65 6e 6e   der sig mot 
henn
   00e0:  65 2e 20 41 6c 20 42 6f  75 6c 65 74 20 72 e5 6b   e. Al 
Boulet r.k
   00f0:  61 72 20 75 74 20 66 f6  72 20 65 6e 20 6f 6c 79   ar ut f.r 
en oly
   0100:  63 6b 61 20 70 e5 20 73  69 6e 20 61 72 62 65 74   cka p. sin 
arbet
   0110:  73 70 6c 61 74 73 2c 20  6d 65 6e 20 76 69 6c 6c   splats, men 
vill
   0120:  20 69 6e 74 65 20 61 74  74 20 6e e5 67 6f 6e 4e    inte att 
n.gonN
   0130:  d3 12 73 77 65 00 cd 05  20 73 6b 61 20 66 e5 20   ..swe... ska f.
   0140:  72 65 64 61 20 70 e5 20  61 74 74 20 68 61 6e 20   reda p. att han
   0150:  e4 72 20 48 49 56 2d 70  6f 73 69 74 69 76 2e 20   .r HIV-positiv.
   0160:  45 6e 20 62 69 6c 20 70  e5 20 73 6a 75 6b 68 75   En bil p. 
sjukhu
   0170:  73 65 74 73 20 70 61 72  6b 65 72 69 6e 67 20 65   sets 
parkering e
   0180:  78 70 6c 6f 64 65 72 61  72 2c 20 73 61 6d 74 69   xploderar, 
samti
   0190:  64 69 67 74 20 73 6f 6d  20 72 65 63 65 70 74 69   digt som 
recepti
   01a0:  6f 6e 69 73 74 65 6e 20  4a 65 72 72 79 20 6c 65   onisten 
Jerry le
   01b0:  6b 65 72 20 6d 65 64 20  65 6e 20 70 69 73 74 6f   ker med en 
pisto
   01c0:  6c 20 73 6f 6d 20 62 6c  69 76 69 74 20 6b 76 61   l som 
blivit kva
   01d0:  72 20 69 20 72 65 63 65  70 74 69 6f 6e 65 6e 2e   r i 
receptionen.
   01e0:  20 47 e4 73 74 73 6b e5  64 65 73 70 65 6c 61 72 
G.stsk.despelar
   01f0:  65 3a 20 4d 61 72 69 73  6b 61 20 48 61 72 67 69   e: Mariska 
Hargi
   0200:  74 61 79 2e 4e 47 22 73  77 65 41 0c 05 65 70 69 
tay.NG"sweA..epi
   0210:  73 6f 64 65 2d 6e 75 6d  05 05 33 2e 32 2e 05 05 
sode-num..3.2...
   0220:  64 61 74 65 05 05 31 39  39 37 07 05 6c 65 6e 67 
date..1997..leng
   0230:  74 68 0b 05 35 30 20 6d  69 6e 75 74 65 73 08 05   th..50 
minutes..
   0240:  63 6f 75 6e 74 72 79 04  05 55 53 41 00 ac 24 5c 
country..USA..$\
   0250:  e0                                                 .

PID:  18 (0x0012)  [= assigned for: DVB Event Information Table (EIT)]

Guess table from table id...
EIT-decoding....
Table_ID: 78 (0x4e)  [= Event Information Table (EIT) - actual transport 
stream, present/following]
section_syntax_indicator: 1 (0x01)
reserved_1: 1 (0x01)
reserved_2: 3 (0x03)
Section_length: 590 (0x024e)
Service_ID: 2160 (0x0870)  [=  --> refers to PMT program_number]
reserved_3: 3 (0x03)
Version_number: 19 (0x13)
current_next_indicator: 1 (0x01)  [= valid now]
Section_number: 0 (0x00)
Last_Section_number: 1 (0x01)
Transport_stream_ID: 2 (0x0002)
Original_network_ID: 100 (0x0064)  [= >>ERROR: not (yet) defined... 
Report!<<]
Segment_last_Section_number: 1 (0x01)
Last_table_id: 78 (0x4e)  [= Event Information Table (EIT) - actual 
transport stream, present/following]

     Event_ID: 19754 (0x4d2a)
     Start_time: 0xdc55232000 [= 2013-04-23 23:20:00 (UTC)]
     Duration: 0x0005000 [=  00:50:00 (UTC)]
     Running_status: 4 (0x04)  [= running]
     Free_CA_mode: 0 (0x00)  [= unscrambled]
     Descriptors_loop_length: 563 (0x233)

             DVB-DescriptorTag: 84 (0x54)  [= content_descriptor]
             descriptor_length: 2 (0x02)
                Content_nibble_level_1: 15 (0x0f)
                Content_nibble_level_2: 0 (0x00)
                   [= user defined]
                User_nibble_1: 0 (0x00)
                User_nibble_2: 0 (0x00)


             DVB-DescriptorTag: 77 (0x4d)  [= short_event_descriptor]
             descriptor_length: 16 (0x10)
               ISO639_2_language_code:  swe
             event_name_length: 11 (0x0b)
             event_name: "Cityakuten"  -- Charset: Latin alphabet no. 5
             text_length: 0 (0x00)
             text_char: ""

             DVB-DescriptorTag: 78 (0x4e)  [= extended_event_descriptor]
             descriptor_length: 253 (0xfd)
             descriptor_number: 0 (0x00)
             last_descriptor_number: 2 (0x02)
             ISO639_2_language_code:  swe
             length_of_items: 0 (0x00)

             text_length: 247 (0xf7)
             text: "Amerikansk dramaserie från 1997. Friendly Fire. Dr. 
Weaver blir chef för akutvården och börjar omedelbart med förändringar, 
vilket gör att de andra vänder sig mot henne. Al Boulet råkar ut för en 
olycka på sin arbetsplats, men vill inte att någon"  -- Charset: Latin 
alphabet no. 5

             DVB-DescriptorTag: 78 (0x4e)  [= extended_event_descriptor]
             descriptor_length: 211 (0xd3)
             descriptor_number: 1 (0x01)
             last_descriptor_number: 2 (0x02)
             ISO639_2_language_code:  swe
             length_of_items: 0 (0x00)

             text_length: 205 (0xcd)
             text: " ska få reda på att han är HIV-positiv. En bil på 
sjukhusets parkering exploderar, samtidigt som receptionisten Jerry 
leker med en pistol som blivit kvar i receptionen. Gästskådespelare: 
Mariska Hargitay."  -- Charset: Latin alphabet no. 5

             DVB-DescriptorTag: 78 (0x4e)  [= extended_event_descriptor]
             descriptor_length: 71 (0x47)
             descriptor_number: 2 (0x02)
             last_descriptor_number: 2 (0x02)
             ISO639_2_language_code:  swe
             length_of_items: 65 (0x41)

                item_description_length: 12 (0x0c)
                item_description: "episode-num"  -- Charset: Latin 
alphabet no. 5
                item_length: 5 (0x05)
                item: "3.2."  -- Charset: Latin alphabet no. 5

                item_description_length: 5 (0x05)
                item_description: "date"  -- Charset: Latin alphabet no. 5
                item_length: 5 (0x05)
                item: "1997"  -- Charset: Latin alphabet no. 5

                item_description_length: 7 (0x07)
                item_description: "length"  -- Charset: Latin alphabet no. 5
                item_length: 11 (0x0b)
                item: "50 minutes"  -- Charset: Latin alphabet no. 5

                item_description_length: 8 (0x08)
                item_description: "country"  -- Charset: Latin alphabet 
no. 5
                item_length: 4 (0x04)
                item: "USA"  -- Charset: Latin alphabet no. 5

             text_length: 0 (0x00)
             text: ""

CRC: 2888064224 (0xac245ce0)
==========================================================



More information about the mythtv-users mailing list