Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




1922 posts

Uber Geek

Subscriber

# 143581 19-Apr-2014 20:21
Send private message

Evening people!

I need some help from people that know where in the BAT I can find the Sky numbering.  I'm particularly looking at MM1352000 and SJB here give the work on MP TVE3.5 and EPGCollector.

A bit of background:

DJBlu, a developer who has been assisting the main MediaPortal team, has developed a custom plugin system that can make your mediaportal installation act like a sky box.  He unfortunately suffered a HDD failure and lost all his recent code and with being posted of to Afghanistan soon I believe, he doesn't have time to rebuild... So I've taken it on to bring up to do the only source he has as well as deal with the issues plaguing the current NZ plugin.

So, I've solved some of my trouble but I'm a bit stuck with getting the LCN for the sky channels.  I know its in the BAT which is what this plugin is based on as it is only for the OpenTV platform, however the NZ bat location appears to be different to the NZ ones.  So here is the little bit of VB code that tries to get the LCNs:

If (descriptorType = &HB1) Then
                        Dim RegionID As Integer = buffer(currentTransportDescriptor + 3)
                        Do While (currentServiceDescriptor < endOfServiceDescriptors)
                            Dim serviceId As Integer = (buffer(currentServiceDescriptor + 2) * 256) + buffer(currentServiceDescriptor + 3)
                            Dim channelId As Integer = (buffer(currentServiceDescriptor + 5) * 256) + buffer(currentServiceDescriptor + 6)
                            Dim skyChannelNumber As Integer = (buffer(currentServiceDescriptor + 7) * 256) + buffer(currentServiceDescriptor + 8)
                            Dim skyChannel As Sky_Channel = GetChannel(channelId)
                            Dim SkyLCN As New LCNHolder(bouquetId, RegionID, skyChannelNumber)

I've bolded the section that I need assistance with... This works fine for the UK and not NZ and I don't have any decent tools that can step through the stream and look at the payloads decrypted to work out what is where in the buffer...

Can anyone help? I can upload the source if required if people need to look further.

Thanks in advance for assistance,

Chris

Create new topic

SJB

1423 posts

Uber Geek

Trusted
Lifetime subscriber

  # 1028141 20-Apr-2014 13:29
Send private message

I don't have any NZ specific code for processing the Bouquet table for OpenTV.

AFAIK it's the same for UK, NZ and Aus.

And looking at the EPGC code it appears to arrive at the same offsets as you are using (although by a different method).



1922 posts

Uber Geek

Subscriber

  # 1028173 20-Apr-2014 15:41
Send private message

That's cool, thanks :-)

I think I am slowly going to shift (over time as I'm a Civil Engineer and not a programmer so this takes me time) DjBlu's code to align more with TVE3.5's structure and your work in EPGC with respect to dealing with sections and tags rather than blocks of data.

Although the short term is to get the plugins working as expected and then release...

 
 
 
 


SJB

1423 posts

Uber Geek

Trusted
Lifetime subscriber

  # 1028216 20-Apr-2014 16:35
Send private message

The class hierarchy EPGC uses aligns with the structure of the data so I believe it's a better solution.

Much easier to work with.



1922 posts

Uber Geek

Subscriber

  # 1028218 20-Apr-2014 16:38
Send private message

Yes I can see that, far more efficient :-)

May I ask which media system you use?  You developed EPGC to assist with epg grabbing and I'm curious if you've ever thought of taking it further, similar in lines to what DjBlu has done?

Chris

SJB

1423 posts

Uber Geek

Trusted
Lifetime subscriber

  # 1028261 20-Apr-2014 17:46
Send private message

I developed my own.

C#/WPF/DirectShow. It does everything I want for TV/Radio/Movies/Music/Photos and is multi room.

EPGC started life as a small part of the TV subsystem before I spun it off into its own project.



1138 posts

Uber Geek

Trusted

  # 1028566 21-Apr-2014 12:49
Send private message
1534 posts

Uber Geek

Trusted

  # 1028605 21-Apr-2014 15:48
Send private message

If he didn't obfuscate the code the you can rather easily decompile the executable or dll to get the code back.

 
 
 
 




1922 posts

Uber Geek

Subscriber

  # 1028612 21-Apr-2014 16:28
Send private message

Nope, no obfuscation and I've got the original uk code; it all builds and picks up the EPG from the stream but it isn't doing what the rest of the plugin did with respect to getting the channel numbers from the buffer or the channel groups... I've kinda restarted from scratch again now so will try that!

Thanks for the assistance.

MM1352000, I might hit you up for some further conversations regarding TVE3.5 as I want to alter the custom data grabber and plugin code to more reflect how EPGC and TVE3.5 operate and by going down that route it might be easier to implement it in TVE3.5 in a more 'native' manner than DjBlu approached with TVE3.

SJB

1423 posts

Uber Geek

Trusted
Lifetime subscriber

  # 1028629 21-Apr-2014 17:07
Send private message

mm1352000: The details are here:
https://github.com/MediaPortal/MediaPortal-1/blob/EXP-TVE3.5-MP1-MP2/DirectShowFilters/TsWriter/source/NitParser.cpp#L425


Standard Nordig format descriptor, custom descriptor tag.


A question:

EPGC processes tag 0xb1 as the OpenTV channel descriptor in the BAT table and tag 0xe2 as the 'generic' Freeview channel descriptor. The code you pointed to doesn't reference tag 0xb1, just 0xe2.

Any comments?

1138 posts

Uber Geek

Trusted

  # 1029950 23-Apr-2014 17:10
Send private message

SJB: Any comments?

I was trying to find channel numbers. I found that descriptor by stream examination and without reference to or previous knowledge of OpenTV. It contained the information I needed, so I coded support for it. As far as I'm aware Freeview use tag 0x83 for the LCN descriptor. That would match Nordig specifications. That's why I figured it related to OpenTV. From memory it certainly seemed to have all the Sky channel numbers and was not carried on Freeview transponders.


SJB

1423 posts

Uber Geek

Trusted
Lifetime subscriber

  # 1029986 23-Apr-2014 18:11
Send private message

That wouldn't work for Sky UK. The NIT doesn't carry that tag, just 0xb1 in the BAT.

In fact the UK Sky NIT doesn't even carry the service ID's, only the satellite delivery info.

1138 posts

Uber Geek

Trusted

  # 1030383 24-Apr-2014 09:43
Send private message

SJB: The NIT doesn't carry that tag, just 0xb1 in the BAT.

In fact the UK Sky NIT doesn't even carry the service ID's, only the satellite delivery info.

Don't be confused by the name of the class. The class is used as both an NIT and BAT parser. Not saying that Sky UK BAT does carry that tag. Just that I know it works for NZ.

Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Microsoft New Zealand Partner Awards results
Posted 18-Oct-2019 10:18


Logitech introduces new Made for Google keyboard and mouse devices
Posted 16-Oct-2019 13:36


MATTR launches to accelerate decentralised identity
Posted 16-Oct-2019 10:28


Vodafone X-Squad powers up for customers
Posted 16-Oct-2019 08:15


D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31


Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.