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.


Benoire

2798 posts

Uber Geek


#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

SJB
2945 posts

Uber Geek
Inactive user


  #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).



Benoire

2798 posts

Uber Geek


  #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

SJB
2945 posts

Uber Geek
Inactive user


  #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.



Benoire

2798 posts

Uber Geek


  #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

SJB
2945 posts

Uber Geek
Inactive user


  #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.



mm1352000
1149 posts

Uber Geek
Inactive user


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

Uber Geek

ID Verified
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.

 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
Benoire

2798 posts

Uber Geek


  #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

SJB
2945 posts

Uber Geek
Inactive user


  #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?

mm1352000
1149 posts

Uber Geek
Inactive user


  #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

SJB
2945 posts

Uber Geek
Inactive user


  #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.

mm1352000
1149 posts

Uber Geek
Inactive user


  #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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

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



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.