Automatically Tune to Strongest Duplicate Channel (5 Viewers)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,504
    523
    South of France
    France France
    Country flag
    I invented the numbers to illustrate the principle; I was not suggesing that they were reasonable! :D
    That's why I just gave informations, not disagree with ;)

    (1) Rename the first section from "Tune to strongest channel" to "Duplicate channels". This makes it clearer that we are specifically addressing channels where two identical versions are found during the scan.
    This should be vapourEyes work, I just translated your posts in GFX :)

    (2) Is "Enable this alternative tune" needed? If "Retain strongest channel" is not selected, isn't the eliminate-duplicates processing disabled? Or is there still some other processing occurring that should be disabled? o_O
    YES, in that case, you could see what happen (if needed) when scanning at the first time (for trying).
    If no more channels are detected on first scan, why increase the scan delay after and definitively ? (wich can already take a while...).
     

    vapourEyes

    Portal Pro
    July 31, 2013
    139
    41
    United Kingdom United Kingdom
    Country flag
    I've got some code for strongest channel selection. It inserts here in the code-base.
    I've also provided a default path for the pre-existing behaviour.

    I enriched the channel object adding a quality field, set and used for comparison. I have ignored signal level.

    I'll see how testing goes. If it goes well, then I have an integration job to complete with @framug's pretty good UI stuff, if that is deemed ok.

    @framug, Your UI,
    1586133309321.png


    Only needs Retain Strongest Channel. Nothing else is required, for the strongest channel stuff to be enabled.

    We could optionally filter weaker ones, below a certain threshold, but as @ajs and @CyberSimian have pointed out, this is very dependent on individual set-ups and would need to vary over the course of the day too. Best we drop this I think.

    At present, all available channels will be brought in, regardless of quality, then each channel will compete to make it into the list presented for mapping and EPG grabbing.

    I've completed as full a test as I could here and I am super-happy with the results !
     
    Last edited:

    vapourEyes

    Portal Pro
    July 31, 2013
    139
    41
    United Kingdom United Kingdom
    Country flag
    Hello MediaPortalites,

    I think the code is working out well. I've re-tuned many times and now don't care much for which order I set the regional tuning off.
    I run 3 cards here - so can set them all off at the same time.

    Channels enter a competitive-displacement algorithm and get ejected as the stronger channels win.
    Reminds me of the AI days....

    I think we just need to integrate the UI element to this and then this ones complete ?

    Did he say 'just' ? :cautious:
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    1,980
    1,229
    Southampton
    United Kingdom United Kingdom
    Country flag
    Channels enter a competitive-displacement algorithm and get ejected as the stronger channels win.
    That sounds fine. (y)

    I think we just need to integrate the UI element to this and then this ones complete ?
    I have never looked at the user interface code in MP, but if I were coding this, I would copy and adapt some of the existing UI code. With any luck, that does not require too much understanding of how it works :eek:. Possibly @framug can offer you some advice if you get stuck? o_O

    -- from CyberSimian in the UK
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,504
    523
    South of France
    France France
    Country flag
    If you want to integrate UI, you need to look in MP code TVlibrary.sln in this case.
    Look inside settings... forms...
    You have to check the properties.
    In MP, labels, variables, most parts of UI elements are named (no checkbox457, etc...)
    I can give you the Windows Form app I made to illustrate what CyberSimian had explained but, since it's not MP embedded, I don't think you will have utility for this.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    139
    41
    United Kingdom United Kingdom
    Country flag
    Ok - once again - thanks for the great advice.

    I need to get my Visual Studio environment up and running somehow and then can make some more progress.
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,351
    4,980
    France - IDF
    France France
    Country flag
    hello @vapourEyes
    i'm the bored guy's, :whistle:

    if i can suggest you something, can you fork MP1 github on your own account, and push your code inside a dedicated branch.
    at least everybody can have acces to your code, but in final stage, i suggest to have combined every commits, specially with TVserver, because other work on TVE3.5, and merging stuff will be very complicated.

    thank you.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    139
    41
    United Kingdom United Kingdom
    Country flag
    hello @vapourEyes
    i'm the bored guy's, :whistle:

    if i can suggest you something, can you fork MP1 github on your own account, and push your code inside a dedicated branch.
    at least everybody can have acces to your code, but in final stage, i suggest to have combined every commits, specially with TVserver, because other work on TVE3.5, and merging stuff will be very complicated.

    thank you.
    Its probably past time I did this. I'll get this bit sorted at some stage.
    Thanks.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    139
    41
    United Kingdom United Kingdom
    Country flag
    At long last I have a .NET dev env, GIT account and, I hope, decent GIT tooling.

    I'll make some attempt to integrate my work with @framug 's UI stuff.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    4,504
    523
    South of France
    France France
    Country flag
    Well, please, don't talk about an example of UI for my side, as explained before, it was just a "proof of concept".
    Even if my UI helped you, I'm happy but, it will not be a "major" thing to help decision.
    What we need is, entire clear code you propose (for treatment and UI) then, Team will discuss about it, see if it's useful or not for worldwide people, etc... and finally decide if it could be integrated or not.

    BTW, THX for all your work ! (y)
     

    Users Who Are Viewing This Thread (Users: 1, Guests: 4)

    • ajs
    OP Similar threads Forum Replies Date
    vapourEyes Automatically Re-Tune Periodically Improvement Suggestions 1
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    W [solved] [FIXED] Survivor season 40 not automatically matching My TVSeries 1
    G Switch to new channel at begining of program automatically Feature Requests 0
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    H MP1.21F video database scan, can it be scheduled to automatically run in background General Support 5
    Steve.Rayner61 Online Videos - Automatic Updates fails 'Automatic update disabled. Check your internet connection' OnlineVideos 10
    greybox 1.20 final does not update video duration automatically 1.20 10
    greybox 1.20 final does not update video duration automatically 1.20 Pre Release 1
    Scheibes MP2 - V2.1 Meta-Data import not complete by automatic import Older releases 3
    M TV Server can't tune to some DVB-S multiplexes while other software can General 0
    bribbon [Pending] DVB-C Tuning Parameters: Switzerland.UPC Cablecom [NID 43020] v.7.xml Submit: EPG-Grabbers and tuningdetails 0
    J DVB-S2 card fails to tune? Subchannel count increasing Television (MyTV frontend and TV-Server) 3
    M Tuning channels with quad tuner question General 6
    E [solved] Vodafone Kabel dvb-c Braunschweig Tuning Liste (Stand 31.01.2019) TV / Streaming 0
    A VB-IP SPAIN Movistar plus tunning details (Update 26 dec 2018) Submit: EPG-Grabbers and tuningdetails 1
    M Wrong DVB-T tuning parameters for Sweden, Vannas - Granlundsberget 1.20 Pre Release 1
    U Client cannot tune channels General 1
    Charlie TV [solved] Channels disappeared after transmitter changes (Midhurst) General Support 4
    The_Stig [solved] Client taking 40 seconds to tune a channel Television (MyTV frontend and TV-Server) 1
    porky996t "No Signal" when tuning TV Cards Installation, configuration support 10
    Similar threads





















    Top Bottom