Project

General

Profile

Sky Auto Channel Numbering

Added by Jonathan Kempson almost 9 years ago

So I may have bitten off far more than I can chew here but...

I have been experimenting with the idea of region-aware automatic channel numbering for Sky UK that matches the official channel number layout. I know that you can get TVH to get 95% of the way there but I find that I'm having to more often than not deal with new/old channels being added/removed (and I also fancied the challenge!).

So far I have written a Perl scraper to pull all the data from this URL into a MySQL db:

http://en.kingofsat.net/pack-skydigital.php

I also have another script which pulls all the data from the Sky EPG json backend into a separate table in my db:

http://tv.sky.com/channel/index

This URL can be appended with a specific region code to return a bespoke list of channels, there might need to be some manual intervention here but it should be able to figure out the vast majority of channels:

4101-19"Atherstone HD" 
4097-19"Atherstone SD" 
4101-12"Border England HD" 
4097-12"Border England SD" 
4102-36"Border Scotland HD" 
4098-36"Border Scotland SD" 
4103-65"Brighton HD" 
4099-65"Brighton SD" 
4101-3"Central Midlands HD" 
4097-3"Central Midlands SD" 
4104-34"Channel Isles HD" 
4100-34"Channel Isles SD" 
4101-20"East Midlands HD" 
4097-20"East Midlands SD" 
4101-2"Essex HD" 
4097-2"Essex SD" 
4101-24"Gloucester HD" 
4097-24"Gloucester SD" 
4102-35"Grampian HD" 
4098-35"Grampian SD" 
4101-7"Granada HD" 
4097-7"Granada SD" 
4103-70"Henley On Thames HD" 
4099-70"Henley On Thames SD" 
4103-43"HTV Wales HD" 
4099-43"HTV Wales SD" 
4101-4"HTV West HD" 
4097-4"HTV West SD" 
4103-63"HTV West / Thames Valley HD" 
4099-63"HTV West / Thames Valley SD" 
4101-29"Humber HD" 
4097-29"Humber SD" 
4101-1"London HD" 
4097-1"London SD" 
4101-18"London / Essex HD" 
4097-18"London / Essex SD" 
4103-66"London / Thames Valley HD" 
4099-66"London / Thames Valley SD" 
4103-64"London Kent HD" 
4099-64"London Kent SD" 
4101-11"Meridian East HD" 
4097-11"Meridian East SD" 
4103-68"Meridian North HD" 
4099-68"Meridian North SD" 
4101-5"Meridian South HD" 
4097-5"Meridian South SD" 
4101-10"Meridian South East HD" 
4097-10"Meridian South East SD" 
4103-45"Merseyside HD" 
4099-45"Merseyside SD" 
4101-21"Norfolk HD" 
4097-21"Norfolk SD" 
4103-62"North East Midlands HD" 
4099-62"North East Midlands SD" 
4101-8"North West Yorkshire HD" 
4097-8"North West Yorkshire SD" 
4101-26"North Yorkshire HD" 
4097-26"North Yorkshire SD" 
4104-33"Northern Ireland HD" 
4100-33"Northern Ireland SD" 
4103-71"Oxford HD" 
4099-71"Oxford SD" 
4104-50"Republic of Ireland HD" 
4100-50"Republic of Ireland SD" 
4103-41"Ridge Hill HD" 
4099-41"Ridge Hill SD" 
4103-61"Scarborough HD" 
4099-61"Scarborough SD" 
4102-37"Scottish East HD" 
4098-37"Scottish East SD" 
4102-38"Scottish West HD" 
4098-38"Scottish West SD" 
4103-60"Sheffield HD" 
4099-60"Sheffield SD" 
4101-28"South Lakeland HD" 
4097-28"South Lakeland SD" 
4103-72"South Yorkshire HD" 
4099-72"South Yorkshire SD" 
4103-69"Tees HD" 
4099-69"Tees SD" 
4101-9"Thames Valley HD" 
4097-9"Thames Valley SD" 
4101-27"Tring HD" 
4097-27"Tring SD" 
4101-13"Tyne HD" 
4097-13"Tyne SD" 
4101-25"West Anglia HD" 
4097-25"West Anglia SD" 
4103-67"West Dorset HD" 
4099-67"West Dorset SD" 
4101-6"Westcountry HD" 
4097-6"Westcountry SD" 

e.g. http://tv.sky.com/channel/index/4101-24

This is where I currently am.

So I'm thinking my next step should be to do some fuzzy string matching on the channel names and marry up the channels to each data source.

Once this was done I could lookup any channel from from the Sky EPG json feed and know the associated Service ID (from the kingofsat scrape). For example, I would know channel 101 (in my region) would be BBC One Scotland HD and also know the Service ID to go with it.

The final stag (and this is the one I'm totally stumped on) would be how I then create a custom channel list for TVH. I've been delving around in the channel, channels, dvbmuxes, dvbtransport etc folders but I'm getting a bit overwhelmed with the easiest way to achieve what I want.


Replies (142)

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Thanks for the reply.

I was worried that would be the case.

I have tried to find another solution for automatically numbering the channels, but there seems to be none.

Does anybody know of a solution to this problem other than upgrading to the latest unstable release?

I know this is not the place to ask, but I have already had a good look around the forums to no avail. How usable is the latest release? Is it worth waiting for 4.0?

Thanks

RE: Sky Auto Channel Numbering - Added by Glen Cook over 8 years ago

The latest 'unstable' release is very stable for me, no issues to report.

Glen.

RE: Sky Auto Channel Numbering - Added by Prof Yaffle over 8 years ago

Well, we're all using it :-)

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

Only having a couple of issues here.

1) Services on muxes are not automatically updating - minor annoyance, I keep an eye on King of Sat for 28.2e changes
2) Occasionally recording programs that are not in the automatic recorder, seemingly random

Nothing to stop you trying it and see how you go, you can always go back.

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Thanks for the replies.

I have spend the best part of the day wrestling with the open source TBS6981 drives, but I have finally got it working well!

I updated to the unstable TVHeadend, but I found it quite difficult to scan for DBS/2.

With 3.4.27 it was just a case of choose the adapter, adding the DVB network by locations, and then hitting enable.

I cannot understand the way the adapters and network are split in 3.9. Can anybody give me some advice?

Failing this, is there any way to adapt the auto channel script to work with 3.4.27, as I am extremely happy with it.

RE: Sky Auto Channel Numbering - Added by Prof Yaffle over 8 years ago

Did you run the migration script? That should copy most of your settings over.

If not, you have to add a network (choosing predefined muxes if available); then add muxes (if the pre-defined ones didn't work); then scan for services. I think. I didn't ever do this as the migration script handled it for me...

https://tvheadend.org/boards/5/topics/9792

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

Muxes are also contained in the EPG stream, sure would be handy if it could be added to the script to populate those automatically in TVHeadend.
Fancy a crack at that Jonathan?

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Okay I am finally making so progree. Thanks so much for your help guys.

I have updated to 3.9.470. Rather than migrate my settings from 3.4, I started from scratch using the guide from this forum. I managed to scan for services, and assign them to channels.

It has successfully found all ~1000 channels with names, however unlike in 3.4, TVHeadend did not assign them channel numbers (I have the relevant box ticked in EPG Grabber tab).

I decided to run the Sky Auto Channel Numbering script anyway. I ran it through the Ubuntu terminal with the command sudo perl autobouquets.pl.

It has been running for about 10 minutes with no output. I can see from the web interface that the Channel Tags have been updated, but not assigned to channels.

Also, all channel numbers are still set at 0.

Do I need to force close the terminal to end the script or should I let it run?

How do I move forward from here?

Once again thank you guys very much for your help, I have been wrestling with TVheadend for about a week and I feel like I am finally getting somewhere!

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

I'm not 100% sure but I think you need to be tuned to a channel. If you can get SKY1 up for example and then run the script.

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Thanks for the suggestion. Unfortunately I am still having the same problem, all channel numbers are 0, and the script is only adding the TV tags but not assigning them as far as I can tell.

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Sorry to keep pestering, here's where I am.

I started from scratch with TVHeadend on the stable branch.

I configured my tuners and network, got the channels set up (including numbers).

I then installed the unstable branch, used the migration script, and configured the tuners.

All seems to be running perfectly with TVHeadend itself.

Now while a channel was playing, I ran the autobouquets.pl script.

As with before, the script added the tags, but did not assign them to the channels.

The script is still running, it has been an hour or so, with no output in the terminal.

I am running the script under my normal user, do I need to run it as hts user or will it not make a difference as it is using the webapi?

How long will I need the script running? I was under the impression it should have done its job fairly quickly, either way I will leave it overnight.

As always, any help regarding this is much appreciated.

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

The script run should be quick. To be sure your tuned to a frequency it can get the data from can you run the following whilst the script is running in a second session.

dvbtune -f 11778000 -s 27500 -p V -m

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Tried all of your suggestions with no luck.

I managed to start from absolute scratch and all is well now.

Thanks for everybody's help!

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

All seems to be working fine but I now have another issue.

After running this script I delete all the channels which were not added via the script. This leaves me with the perfectly numbered, tagged, and logo'd channels as desired.

However after restarting my TVheadend server, all of the hard work is undone and all channels are back to their default numbering, whilst all of the script added channels are deleted.

Is there anything I can do about this?

Once again, thanks for any help.

Regards

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

In the web interface, Configuration>Channel/EPG>EPG Grabber ensure "Update Channel Number" is unchecked.

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Thanks for the response.

I failed to mention that all three boxes, update channel number, name, and icon, are unchecked.

I'm not sure if it makes a difference but so is "Skip initial scan" under the networks.

Thanks for the help

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

That's odd, check the file permissions are correct maybe its unable to save the changes.

RE: Sky Auto Channel Numbering - Added by Maz Gup over 8 years ago

Thanks,

As I mentioned much earlier, I am very new to linux. Do you mind giving me a quick walkthrough?

All of my settings and folders are default to the TVheadend 3.9* installation.

It's quite strange because it works perfectly for days, it is only when the PC restarts that it reverts back to the old channels, even if I have deleted them.

The tags remain in the "Channel Tags" tab, but obviously none of the reappearing channels are tagged or numbered properly.

Could it be due to TVheadend not shutting down cleanly before the PC is restarted?

RE: Sky Auto Channel Numbering - Added by d p over 8 years ago

Hi

I cant get this script to work, get this when I run it:

malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 171.

I am running 3.9.470~g6482d33

I have tried to setup from scratch, here is what I did:

1. Added network
2. Waited for services to be found.
3. 'Map all' to create all channels
4. downloaded autobouqet.pl
5. Edited script (entered IP, usernam & region)
5. Installed perl
6. Installed dvbsnoop
7. Run script

RE: Sky Auto Channel Numbering - Added by d p over 8 years ago

d p wrote:

Hi

I cant get this script to work, get this when I run it:

malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 171.

I am running 3.9.470~g6482d33

I have tried to setup from scratch, here is what I did:

1. Added network
2. Waited for services to be found.
3. 'Map all' to create all channels
4. downloaded autobouqet.pl
5. Edited script (entered IP, usernam & region)
5. Installed perl
6. Installed dvbsnoop
7. Run script

Ok I got it working. I had the ip address as the ip of the pc, but I changed to localhost and it worked.

Its fantastic, have been waiting for someone to do something like this for ages.

All the channels have been assigned logos, but the logos are not showing up in xbmc. I have tried reset epg database.

RE: Sky Auto Channel Numbering - Added by Jonathan Kempson over 8 years ago

Hey guys,

Sorry for lack of activity recently, been up to my neck with another little project :)

I've updated the script so that you can disable importing icons. Just change my $icons_enabled = 1 to 0 in the script.

It also doesn't mess about with the EPG source (not sure why I had it doing this in the first place TBH).

For those people still struggling with a blank output that goes on forever I would recommend running:

sudo dvbsnoop -nph -n 500 0x11

You should see a loads of text whizz past after a few seconds. If this isn't the case then try tuning to a channel in TVH and try again. If there is still no output the problem lies somewhere else and my script can't work without any data!

http://newhaven.uk.to/autobouquets.pl

RE: Sky Auto Channel Numbering - Added by Jonathan Kempson over 8 years ago

Simon,

I'll look into the muxes stuff :)

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

Jonathan Kempson wrote:

Simon,

I'll look into the muxes stuff :)

Nice one :) muxes are grabbed using: dvbsnoop -nph -n 500 0x10

Example snippet:

Transport_stream_ID: 2033 (0x07f1)
Original_network_ID: 2 (0x0002) [= Astra Satellite Network 28,2°E | Société Européenne des Satellites]
reserved_1: 15 (0x0f)
Transport_descriptor_length: 13 (0x000d)
DVB-DescriptorTag: 67 (0x43)  [= satellite_delivery_system_descriptor]
descriptor_length: 11 (0x0b)
Frequency: 19088208 (= 12.34350 GHz)
Orbital_position: 642 (= 28.2)
West_East_flag: 1 (0x01) [= EAST]
Polarisation: 0 (0x00) [= linear - horizontal]
Kind: 1 (0x01) [= DVB-S2]
Roll Off Faktor: 0 (0x00) [= Alpha 0.35]
Modulation_type: 1 (0x01) [= QPSK]
Symbol_rate: 2707456 (= 29.5000)
FEC_inner: 3 (0x03) [= 3/4 conv. code rate]

Which clearly ties to the Transport_Stream_ID for services from: dvbsnoop -nph -n 500 x011

------------------------------------------------------------
SECT-Packet: 00000030 PID: 17 (0x0011), Length: 903 (0x0387)
Time received: Mon 2014-04-07 18:52:15.632
------------------------------------------------------------
PID: 17 (0x0011) [= assigned for: DVB Service Description Table (SDT), Bouquet Association Table (BAT)]

Guess table from table id...
SDT-decoding....
Table_ID: 66 (0x42) [= Service Description Table (SDT) - actual transport stream]
section_syntax_indicator: 1 (0x01)
reserved_1: 1 (0x01)
reserved_2: 3 (0x03)
Section_length: 900 (0x0384)
Transport_Stream_ID: 2033 (0x07f1)
reserved_3: 3 (0x03)
Version_number: 17 (0x11)
current_next_indicator: 1 (0x01) [= valid now]
Section_number: 0 (0x00)
Last_Section_number: 1 (0x01)
Original_network_ID: 2 (0x0002) [= Astra Satellite Network 28,2°E | Société Européenne des Satellites]
reserved_4: 255 (0xff)

Service_id: 3826 (0x0ef2)  [=  --> refers to PMT program_number]
reserved_1: 63 (0x3f)
EIT_schedule_flag: 1 (0x01)
EIT_present_following_flag: 1 (0x01)
Running_status: 4 (0x04) [= running]
Free_CA_mode: 1 (0x01) [= streams [partially] CA controlled]
Descriptors_loop_length: 214 (0x00d6)
DVB-DescriptorTag: 72 (0x48)  [= service_descriptor]
descriptor_length: 23 (0x17)
service_type: 25 (0x19) [= advanced codec HD digital television service]
service_provider_name_length: 5 (0x05)
service_provider_name: "BSkyB" -- Charset: Latin alphabet
service_name_length: 15 (0x0f)
Service_name: "Sky Sports 4 HD" -- Charset: Latin alphabet
DVB-DescriptorTag: 73 (0x49)  [= country_availibility_descriptor]
descriptor_length: 7 (0x07)
country_availability_flag: 1 (0x01)
reserved: 127 (0x7f)
country_code: GBR
country_code: IRL
DVB-DescriptorTag: 95 (0x5f)  [= private_data_specifier_descriptor]
descriptor_length: 4 (0x04)
PrivateDataSpecifier: 2 (0x00000002) [= BskyB 1]
DVB-DescriptorTag: 74 (0x4a)  [= linkage_descriptor]
descriptor_length: 49 (0x31)
transport_stream_ID: 2033 (0x07f1)
original_network_ID: 2 (0x0002) [= Astra Satellite Network 28,2°E | Société Européenne des Satellites]
service_ID: 3826 (0x0ef2) [= --> refers to PMT program_number]
linkage_type: 156 (0x9c) [= user defined]
Private Data:
0000: 10 05 ff ff 05 2a e1 10 07 ff ff 05 2a e1 10 06 .....*......*...
0010: ff ff 05 2a e1 10 08 00 32 05 2c e1 10 08 00 22 ...*....2.,...."
0020: 05 2a e1 10 08 00 21 05 2a e1 .*....!.*.
DVB-DescriptorTag: 178 (0xb2)  [= User defined]
descriptor_length: 121 (0x79)
Descriptor-data:
0000: 1d 00 f0 2c a5 b9 be ab 8c 21 f2 04 97 34 94 43 ...,.....!...4.C
0010: 0a 97 d6 be 5a 0d f3 1d bf 63 55 de 82 a9 c5 90 ....Z....cU.....
0020: af 35 8e b5 71 83 48 68 37 cc 76 fd 8d 55 fa b8 .5..q.Hh7.v..U..
0030: c1 4b e0 7b e4 2a b8 c2 46 c6 15 88 71 61 67 69 .K.{.*..F...qagi
0040: 6e a9 7a ae 30 24 d5 99 7e ab 8c 14 b4 74 32 53 n.z.0$..~....t2S
0050: b4 35 57 8f db 55 d1 e3 29 4f ea b8 c2 37 09 80 .5W..U..)O...7..
0060: 8e ab 8c 04 03 55 78 fa ae 30 8d 4c a3 a5 b0 40 [email protected]
0070: 47 b7 27 58 a3 d5 5e 3f 6a G.'X..^?j
Service_id: 3827 (0x0ef3)  [=  --> refers to PMT program_number]
reserved_1: 63 (0x3f)
EIT_schedule_flag: 1 (0x01)
EIT_present_following_flag: 1 (0x01)
Running_status: 4 (0x04) [= running]
Free_CA_mode: 1 (0x01) [= streams [partially] CA controlled]
Descriptors_loop_length: 138 (0x008a)
DVB-DescriptorTag: 72 (0x48)  [= service_descriptor]
descriptor_length: 23 (0x17)
service_type: 25 (0x19) [= advanced codec HD digital television service]
service_provider_name_length: 5 (0x05)
service_provider_name: "BSkyB" -- Charset: Latin alphabet
service_name_length: 15 (0x0f)
Service_name: "Sky Sports 4 HD" -- Charset: Latin alphabet
DVB-DescriptorTag: 73 (0x49)  [= country_availibility_descriptor]
descriptor_length: 7 (0x07)
country_availability_flag: 1 (0x01)
reserved: 127 (0x7f)
country_code: GBR
country_code: IRL
DVB-DescriptorTag: 95 (0x5f)  [= private_data_specifier_descriptor]
descriptor_length: 4 (0x04)
PrivateDataSpecifier: 2 (0x00000002) [= BskyB 1]
DVB-DescriptorTag: 178 (0xb2)  [= User defined]
descriptor_length: 96 (0x60)
Descriptor-data:
0000: 1d 00 f0 3a 18 75 9a c3 28 5f 55 c6 11 ba ae 30 ...:.u..(_U....0
0010: 91 8c a5 3f 63 0f 4f 90 fd cc d2 9b a5 15 85 01 ...?c.O.........
0020: 42 28 c2 85 9e cf 67 b3 d9 f7 45 ab bd 3d 59 8c B(....g...E..=Y.
0030: b7 4a 2b 59 e2 b6 88 ac e8 6c 56 8a d1 5b 74 5e .J+Y.....lV..[t^
0040: b2 0b a1 ab 3b 61 7e 55 86 ab 8c 09 32 15 5c 60 ....;a~U....2.\`
0050: d2 95 65 ab 8c 1a 43 71 0e 3d 11 ab 8c 2a fd ea ..e...Cq.=...*..
Service_id: 3853 (0x0f0d)  [=  --> refers to PMT program_number]
reserved_1: 63 (0x3f)
EIT_schedule_flag: 1 (0x01)
EIT_present_following_flag: 1 (0x01)
Running_status: 4 (0x04) [= running]
Free_CA_mode: 1 (0x01) [= streams [partially] CA controlled]
Descriptors_loop_length: 187 (0x00bb)
DVB-DescriptorTag: 72 (0x48)  [= service_descriptor]
descriptor_length: 23 (0x17)
service_type: 25 (0x19) [= advanced codec HD digital television service]
service_provider_name_length: 5 (0x05)
service_provider_name: "BSkyB" -- Charset: Latin alphabet
service_name_length: 15 (0x0f)
Service_name: "Sky Atlantic HD" -- Charset: Latin alphabet
DVB-DescriptorTag: 73 (0x49)  [= country_availibility_descriptor]
descriptor_length: 7 (0x07)
country_availability_flag: 1 (0x01)
reserved: 127 (0x7f)
country_code: GBR
country_code: IRL
DVB-DescriptorTag: 95 (0x5f)  [= private_data_specifier_descriptor]
descriptor_length: 4 (0x04)
PrivateDataSpecifier: 2 (0x00000002) [= BskyB 1]
DVB-DescriptorTag: 178 (0xb2)  [= User defined]
descriptor_length: 145 (0x91)
Descriptor-data:
0000: 1d 01 70 04 c0 47 71 35 25 d9 79 d5 5e 3e e0 72 ..p..Gq5%.y.^>.r
0010: 0c 1a 5f 5a e4 b5 26 94 f4 e0 fa 7f 2c b5 71 83 .._Z..&.....,.q.
0020: 4e ab 8c 1a 37 02 ab 8c 09 35 5c 60 cb a4 69 24 N...7....5\`..i$
0030: c5 d5 c6 14 2f 57 18 29 47 aa e3 03 80 b1 b9 3a ..../W.)G......:
0040: fd 2b e1 63 55 c6 08 41 a0 ee ab 8c 0d e4 97 c2 .+.cU..A........
0050: c6 90 d5 71 84 d6 90 dc 3e ae 30 52 8f 55 c6 10 ...q....>.0R.U..
0060: fa ae 30 69 a2 38 7a 4f 3f aa e3 08 dc 1f fa ae ..0i.8zO?.......
0070: 30 7e d5 71 83 46 ab 8c 21 f5 66 0d 97 9a b8 c1 0~.q.F..!.f.....
0080: a5 79 d5 71 83 e8 6a b8 c1 a3 17 f3 ee da 23 03 .y.q..j.......#.
0090: b5 .
Service_id: 3861 (0x0f15)  [=  --> refers to PMT program_number]
reserved_1: 63 (0x3f)
EIT_schedule_flag: 1 (0x01)
EIT_present_following_flag: 1 (0x01)
Running_status: 4 (0x04) [= running]
Free_CA_mode: 1 (0x01) [= streams [partially] CA controlled]
Descriptors_loop_length: 162 (0x00a2)
DVB-DescriptorTag: 72 (0x48)  [= service_descriptor]
descriptor_length: 15 (0x0f)
service_type: 25 (0x19) [= advanced codec HD digital television service]
service_provider_name_length: 5 (0x05)
service_provider_name: "BSkyB" -- Charset: Latin alphabet
service_name_length: 7 (0x07)
Service_name: "Sky1 HD" -- Charset: Latin alphabet
DVB-DescriptorTag: 73 (0x49)  [= country_availibility_descriptor]
descriptor_length: 7 (0x07)
country_availability_flag: 1 (0x01)
reserved: 127 (0x7f)
country_code: GBR
country_code: IRL
DVB-DescriptorTag: 95 (0x5f)  [= private_data_specifier_descriptor]
descriptor_length: 4 (0x04)
PrivateDataSpecifier: 2 (0x00000002) [= BskyB 1]
DVB-DescriptorTag: 178 (0xb2)  [= User defined]
descriptor_length: 128 (0x80)
Descriptor-data:
0000: 1d 01 70 04 c0 47 59 f5 57 8f a9 f2 90 d5 71 84 ..p..GY.W.....q.
0010: 3e ab 8c 26 35 5c 60 a5 aa e3 08 ed ee de 4d 35 >..&5\`.......M5
0020: 71 82 95 7e ed aa e3 0a 2d 23 49 26 2e ae 30 a1 q..~....-#I&..0.
0030: 7a b8 c1 4a 3c 64 b1 d5 c6 0a 53 4d 57 18 3a d5 z..J<d....SMW.:.
0040: c6 0a 51 e1 e9 68 6a b8 c2 1f 70 f0 6d 57 18 12 ..Q..hj...p.mW..
0050: 6a cc 1b 55 c6 0e 7a ae 89 d5 71 81 c0 6a b8 c0 j..U..z...q..j..
0060: 93 72 75 fa 57 c2 c6 73 1b 55 c6 0f b5 71 82 94 .ru.W..s.U...q..
0070: 78 3e 9f cb 7a 75 5c 60 f7 aa e3 05 2d 55 e3 d5 x>..zu\`....-U..
Service_id: 3865 (0x0f19)  [=  --> refers to PMT program_number]
reserved_1: 63 (0x3f)
EIT_schedule_flag: 1 (0x01)
EIT_present_following_flag: 1 (0x01)
Running_status: 4 (0x04) [= running]
Free_CA_mode: 1 (0x01) [= streams [partially] CA controlled]
Descriptors_loop_length: 162 (0x00a2)
DVB-DescriptorTag: 72 (0x48)  [= service_descriptor]
descriptor_length: 15 (0x0f)
service_type: 25 (0x19) [= advanced codec HD digital television service]
service_provider_name_length: 5 (0x05)
service_provider_name: "BSkyB" -- Charset: Latin alphabet
service_name_length: 7 (0x07)
Service_name: "Sky1 HD" -- Charset: Latin alphabet
DVB-DescriptorTag: 73 (0x49)  [= country_availibility_descriptor]
descriptor_length: 7 (0x07)
country_availability_flag: 1 (0x01)
reserved: 127 (0x7f)
country_code: GBR
country_code: IRL
DVB-DescriptorTag: 95 (0x5f)  [= private_data_specifier_descriptor]
descriptor_length: 4 (0x04)
PrivateDataSpecifier: 2 (0x00000002) [= BskyB 1]
DVB-DescriptorTag: 178 (0xb2)  [= User defined]
descriptor_length: 128 (0x80)
Descriptor-data:
0000: 1d 08 70 04 c0 47 59 f5 57 8f a9 f2 90 d5 71 84 ..p..GY.W.....q.
0010: 3e ab 8c 26 35 5c 60 a5 aa e3 08 ed ee de 4d 35 >..&5\`.......M5
0020: 71 82 95 7e ed aa e3 0a 2d 23 49 26 2e ae 30 a1 q..~....-#I&..0.
0030: 7a b8 c1 4a 3c 64 b1 d5 c6 0a 53 4d 57 18 3a d5 z..J<d....SMW.:.
0040: c6 0a 51 e1 e9 68 6a b8 c2 1f 70 f0 6d 57 18 12 ..Q..hj...p.mW..
0050: 6a cc 1b 55 c6 0e 7a ae 89 d5 71 81 c0 6a b8 c0 j..U..z...q..j..
0060: 93 72 75 fa 57 c2 c6 73 1b 55 c6 0f b5 71 82 94 .ru.W..s.U...q..
0070: 78 3e 9f cb 7a 75 5c 60 f7 aa e3 05 2d 55 e3 d5 x>..zu\`....-U..

CRC: 2309035531 (0x89a1160b) ==========================================================

PS for anyone else interested in this the EPG data is also found with: dvbsnoop -nph -n 500 0x12

Sry for the long post :p

RE: Sky Auto Channel Numbering - Added by Jonathan Kempson over 8 years ago

Simon,

If Network Discovery is turned on in TVH, does this not automatically add new muxes?

RE: Sky Auto Channel Numbering - Added by Simon D over 8 years ago

Hi Jonathan,

Yes it does, to be honest i'm not really bothered about it adding additional muxes and the discovery tends to add muxes that aren't needed or dont work. I thought it would be a great option from a new install/clean config perspective where you have nothing configured, if there was an option to run the script and populate everything muxes,services and channels using the opentv data.

Obviously if this was possible it could be run on a schedule to keep everything up to date with out relying on service/mux discovery; currently tvheadend doesn't seem to be updating service changes at all, i'm keeping an eye on king of sat and doing them manually.

Cheers

(26-50/142)