MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Improvement Suggestions


Improvement Suggestions Got idea how the TV-Server can be improved? Post it here!

Reply
 
Thread Tools Display Modes
Old 2006-11-04, 22:19   #11 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 36
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

Quote:
The broadcsters don't guarantee that all data is present and error free.
The epg grabber already grabbed millions of epg data for all kinds of countries and users (in both the tvengine of MP and in the new tvserver)
I didnt hear any complains that it receives a partial EPG or
that the EPG is corrupted. So i think we can skip this point.

Only thing i know is that for the UK we need to increase the timeout value
to make sure the epg-grabber does not prematurely times out.
since they transmit epg with a much lower bandwidth than other counties
As the tvserver is still in beta this is we're currently working on.
Once we that is solved, the current method for grabbing the epg should ensure
that a full error-free epg will be received always

Quote:
>does not simply scans all channels in any mux (as you say it does).
It does if every channel times out
Correct and i explained why it does this.
If one channel times-out, then this doesnt mean that the whole mux can be skipped. The other channels in the mux can contain epg
Not everyone lives in the UK

Quote:
>it skips channels for which epg has been received
In skipping a channel for data received there is NO guarantee that the EPG is now fully populated for that channel
This is repeating the first point.

About worse case scenario's and performance
- your solution is not faster (providing the epg grabber always grabs a full epg
and does not prematurely times-out)

- worse case scenario? Well the fact that the epg grabber as it is now works
for all countries/users tells me that its pretty capable of dealing with worse case scenario's. Unfortunaly your proposed method isnt since it only works in the UK situation.
frodo is offline   Reply With Quote
Old 2006-11-04, 22:19   #12 (permalink)
Portal Developer
 
Join Date: Apr 2006
Posts: 190
Thanks: 0
Thanked 1 Time in 1 Post


Default

Here is what you said first :

Quote:
At the moment the broadcast EPG grab cycles through channels .

A better option would be to cycle through the broadcast/mux frequencies.
You explicitly told that a best way would be to grab EPG through mux , rather than through channels.
Again , this method won't work for many users.
However , maybe we misunderstood some things, feel free to code it this way and submit us your code : be sure we will test it.
Broceliande is offline   Reply With Quote
Old 2006-11-04, 22:41   #13 (permalink)
Portal Tester
 
Join Date: Feb 2005
Location: England
Posts: 1,035
Thanks: 5
Thanked 8 Times in 8 Posts

My System

Default

That was unnecessasary.

You reasoning is wrong .

I will try and make it simple

There are one hundred boxes in a room .
It takes five mins fo check a box .

The total time to check every box is 500mins, and there is no way that it can be done quicker whatever order you check the boxes.

NOW There are one hundrded boxes in a room BUT now the boxes are grouped into ten groups of ten boxes .
By checking any box in a group automaticly checks the other nine in the group and still takes only five minutes .

Now what is the quickest time to chekh every box ?


If the room has one hundred boxes some individual and some in groups which method is the best method to use ?

The MAX time is still 500mins but is there a quicker way ?
SciDoctor is offline   Reply With Quote
Old 2006-11-04, 22:47   #14 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 36
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

SciDoctor,

If there is a faster, better way to grab epg, i'm all for it.
But this discussion is leading to nothing (i guess i just dont understand you)
Perhaps you can do us both a favor:

1. Please tell me exactly with a good example how your method works.
2. make sure it works for both situations that is:

Situation 1 : UK
- each channel in a mux contains the epg data for all channels in that mux

Situation 2 : Netherlands/france
- Channels in a mux contain only their own epg data and not the epg data for other channels in that mux

Please describe
- exactly how it works
- how errors are handled
- how partial epg receival is handled
- how this leads to a faster fullepg grab.
frodo is offline   Reply With Quote
Old 2006-11-04, 22:58   #15 (permalink)
Portal Tester
 
Join Date: Feb 2005
Location: England
Posts: 1,035
Thanks: 5
Thanked 8 Times in 8 Posts

My System

Default

About worse case scenario's and performance
- your solution is not faster (providing the epg grabber always grabs a full epg
and does not prematurely times-out)

(There is a max time to grab all channels BUT there is also a min time when a channel carries data for other channels)

- worse case scenario? Well the fact that the epg grabber as it is now works
for all countries/users tells me that its pretty capable of dealing with worse case scenario's. Unfortunaly your proposed method isnt since it only works in the UK situation.[/quote]


My method still works for every possible combination of MUX and channels on MUX.
All I have proposed is a change in the order of the grab .

Instead of cycling through every channel on a MUX and then moving to the next MUX and so on.

Cycle the MUX and then increment the channel.
SciDoctor is offline   Reply With Quote
Old 2006-11-04, 23:09   #16 (permalink)
Portal Tester
 
Join Date: Feb 2005
Location: England
Posts: 1,035
Thanks: 5
Thanked 8 Times in 8 Posts

My System

Default

Your grab.

MUX A CH1 ,MUX A CH2 ,MUX A CH3......MUX A CH (last channel)
MUX B CH1, MUX B CH 2, MUX B CH3 .....MUX B CH (last channle)
MUX C CH1, MUX C CH2 etc
MUX D etc

AT END OF AVAILABLE MUX REPEAT FROM MUX A CH 1

My proposed grab

MUX A CH 1, MUX B CH 1 ,MUX C CH 1, MUX D CH1 ........MUX (last mux) CH 1
MUX A CH 2, MUX B CH 2, MUX C CH 2, MUX D CH2 ........MUX (last mux) CH 2
MUX A CH 3 ,MUX B,CH 3 ................................................MU X (last mux) CH 3

AT END OF AVAILBLE CHANNELS REPEAT FROM MUX A CH 1


Errors are handle the same way .
A grab is a grab whatever data is received is put in the database in the same way as your existing mehtod.
You can still choose to miss a channel if the previous grab has contained data that has populated the databse if you want , i wouldn't so as to catch as much data as possible.


NO MUX is being missed NO CHANNEL is being missed , so this is a universal grab.

As I have tried to explain there is no way to change the MAX time if every channel is EPG data independent BOTH methods take the same time BUT where channels share EPG data the time is reduced .

Last edited by SciDoctor; 2006-11-04 at 23:25.
SciDoctor is offline   Reply With Quote
Old 2006-11-05, 11:17   #17 (permalink)
Portal Member
 
funkstar's Avatar
 
Join Date: Aug 2005
Location: Home
Posts: 362
Thanks: 4
Thanked 2 Times in 2 Posts

Country:


Default

I can't understand how this would be quicker. It's a different order, but as both methods are clever enough to not check chanels that are already updated i don't get how it is quicker.
funkstar is offline   Reply With Quote
Old 2006-11-05, 12:58   #18 (permalink)
Portal Tester
 
Join Date: Feb 2005
Location: England
Posts: 1,035
Thanks: 5
Thanked 8 Times in 8 Posts

My System

Default

Quote:
Originally Posted by funkstar View Post
I can't understand how this would be quicker. It's a different order, but as both methods are clever enough to not check chanels that are already updated i don't get how it is quicker.
The method as is doesn't take in to account the possibilty that if the first channel on a MUX that is checked 'times out' that ALL channels on this MUX could be in a situation NOW to 'time out' .Thus checking them NOW would waste time .(you do revisit the next channel on a MUX the next cycle)

In a situation where a 'time out' occurs a move to start to grab the channels on the next MUX instead of repeatedly trying every channel on the original MUX would be benefical

This situation ocured this weekend as the power to two MUXs had been reduced rendering reception poor and the EPG data unavailable.

These two MUXs (A and B) contain thirty channels.

The EPG grabber spent 30x10 = 300mins trying every channel, getting a 'time out' on all and the EPG database recived no data .

Changing the grab order would have allowed a 'time out' on MUX A CH 1 and then 'time out' on MUX B CH 1 (only 20 mins wasted for no EPG) and then MUX C CH 1 where a succesful garb would have occured.

The difference 300 mins for no data or 30 mins and at least data for one channel (possibly more than one or all channels depending on broadcasters EPG data)

We both agree that in perfect no error conditons both grab orders will take about the same time.

Now the problem with not grabbing any channel because you received data within a previous grab on another channel doesn't take into account that the data recieved may not be complete.
SciDoctor is offline   Reply With Quote
Old 2006-11-05, 13:57   #19 (permalink)
Portal Member
 
chenks's Avatar
 
Join Date: May 2006
Location: Scotland
Age: 32
Posts: 727
Thanks: 1
Thanked 1 Time in 1 Post

Country:

My System

Default

maybe a more relevant point is this...

why does the EPG grab work with the present tv engine for UK DVB-T.. but not with the new engine ?
chenks is offline   Reply With Quote
Old 2006-11-10, 23:54   #20 (permalink)
Portal Member
 
funkstar's Avatar
 
Join Date: Aug 2005
Location: Home
Posts: 362
Thanks: 4
Thanked 2 Times in 2 Posts

Country:


Default

SciDoctor,

OK, now i understand where you are coming from. Is this really a problem though? Does this happen a lot?
funkstar is offline   Reply With Quote
Reply

Bookmarks

Tags
epg, grab, improvement

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerShedule does not suspend after WebEPG grab gloomyandy fixed 0.2.2.0 bugs 8 2007-01-02 01:58
Why can't I see scrambled chanels?? tt dvb-c 1500, viaaccess kingkjelds General Support 14 2006-08-02 12:20
WebEPG crash with 0.2+svn tomtom21000 WebEPG 14 2006-07-20 18:10
SVN 06-22-2006--01-02: NO DVB-T EPG-Grapping McHep General Support 8 2006-06-23 23:22
EPG Grab by Channel Group infinityloop Improvement Suggestions 1 2005-04-24 12:29


All times are GMT +1. The time now is 12:58.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress