NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 68 69 70 71 72 … 193 Next »
MDAPI support update

 
  • 0 Vote(s) - 0 Average
MDAPI support update
varesino
Offline

Junior Member

Posts: 34
Threads: 5
Joined: Feb 2005
#1
2008-02-14, 08:22 PM
Hi Sub,
It should be nice if you can find some time to update the MDAPI support to a more recent version of the mdapifilter like the latest released in December by steve77.
I'm available to became a tester in case you need it

Many thanks for your wonderful software.

regards
Varesino
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#2
2008-02-15, 12:04 AM
I've been testing his december version for the last hour or so and it seems to be working fine for me. I didnt have to change anything in the application, but I did have to move the plugins since it now looks ".\MDPlugins\AV1" instead of ".\MDPlugins".
varesino
Offline

Junior Member

Posts: 34
Threads: 5
Joined: Feb 2005
#3
2008-02-15, 07:19 AM
As you can see this new version loads and unloads itself dinamically every time a tv is started/stopped. On my pc I found this problem:
  • Switch on the pc, start pvrx2 and tune a crypted channel
  • Mdapi (new) creates its instance, load the plugin(s) and start its yob.
  • The first channel tuned needs from 10 to 15 seconds to be displayed (old mdapi version needs only 1 or 2 seconds).
  • Tune any other crypted channel works very fast (like old version).
  • Stop live tv
  • Reenter in live tv or start a manual record, pc freeze (sometime not the first time but surely the second).

It seems that after the first initialization your software "thinks" that mdapi is already loaded, but this is not true because the new mdapi version has unloaded by itself and then pc crashes.
Also the time needed to view the first crypted tuned channel is longer than expected and can lead to a timeout error using the timeshift (if the channel is not decrypted in 10 seconds a timeout message appaers, click OK and you go back to main menu)
Please let me know if you can reproduce it or it's only a my local problem, or if you need further detail about configuration, plugins, logs, etc.

Regards
Varesino
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#4
2008-02-15, 04:14 PM
Ok, when I double checked I found I was still using the old filter. Sorry.

I've made sure I'm using the correct filter now, and I'm seeing the slow channel startup you describe (10 - 15 seconds). I seem to be able to stop and re-enter live tv multiple times without the pc freeze you're seeing, but I dont seem to be able to do multiple sequential recordings (first works second fails).

GB-PVR always reuse the multidec filter instance because the old versions of it wouldnt shutdown cleanly, leading to crash the second time you use it. Based on your comments above, I've added an option in the config app so that you can tell it wether to reuse the filter. I've double checked this seems to function fine with this newer december version. I've been able to stop and reenter live tv numerous times, and I've done multiple short recordings without any problem.

The 10-15 second delay seems to be a bug in the multidec filter, and not something GB-PVR isnt going to be able to do much about. As with previous versions, GB-PVR is telling the filter within 50ms the formation it needs to know. This specific version just seems to take a very long time to get started. Have you seen any discussion about the cause of this delay?
varesino
Offline

Junior Member

Posts: 34
Threads: 5
Joined: Feb 2005
#5
2008-02-15, 05:37 PM
I had not seen any discussion about the delay because everybody (developer included) are testing it only in Mediaportal and in this envinroment the problem seems to not appears.
I was the only one testing it in GBPVR and nobody answer to my comments Sad
The only think I know is that this delay appeared with the version 2.05beta, the first released by Agarval as opensource and hosted on sourceforge.
All the following versions inherited this problem with GBPVR.

I'm happy to know that the other problems are solved, I hope new version will be released soon to test the new functionality.

Regards
Varesino
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#6
2008-02-16, 01:30 AM
I've had a good look into the cause of this delay today, and from what I can tell its seems GB-PVR has done everything it needs to almost immediately and the rest of the delays is waiting for the multidec filter to acquire the odd/even keys from the stream so it can start decrypting. I cant see how this is any faster in MP.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#7
2008-02-16, 01:41 AM
Going by the code on sourceforge (which I dont think is as late as that december build), the delay seems to be caused by this function:

Code:
void Decrypter::setKeys(BYTE pBuffer[32])
{
    EnterCriticalSection(&m_csKeys);
    
    for(int i = 0; i < 4; i++)
    {
        m_keys[(pBuffer[4])*8+i*2+0] = pBuffer[6+i*2+1];
        m_keys[(pBuffer[4])*8+i*2+1] = pBuffer[6+i*2+0];
    }

    if(!(m_bOddFound && m_bEvenFound))
    {
        if(pBuffer[4] == 1)
        {
            m_bOddFound = true;
        }
        else
        {
            m_bEvenFound = true;
        }
    }
[b]    else
    {
    
        int result = 0;
        if(m_bOddFound && m_bEvenFound)
            result = m_dll.SetKey((unsigned char *)(&m_keys[0]), (unsigned char *)(&m_keys[8]), m_dll.keys);
    }[/b]

    LeaveCriticalSection(&m_csKeys);
}

If that "else" is changed to the following, then it starts significantly faster:

Code:
[b]    //else
    if (m_bOddFound && m_bEvenFound)
    {
    
        int result = 0;
        if(m_bOddFound && m_bEvenFound)
            result = m_dll.SetKey((unsigned char *)(&m_keys[0]), (unsigned char *)(&m_keys[8]), m_dll.keys);
    }[/b]

The reason this is problem is that even when the odd/even keys are finally known, it doesnt set them in the FFDecsa library until the next keys is received. When I made this change live tv is now starting in about 4 - 6 seconds.

Some broadcasters transmit the keys more often, so these delays may not be a problem for many of the user of this filter, which may explain why you havnt seen discussion about it.

The source code on source forge is not steve77's latest code, so I cant make a new build myself. This version of the code has other problems (like requiring the filter reuse etc).
varesino
Offline

Junior Member

Posts: 34
Threads: 5
Joined: Feb 2005
#8
2008-02-16, 05:28 AM
First of all thank you very much for spending your time examining an external piece of software not directly related with your project.
If you agree I can post the modified code on dvbn, asking to one of the developers that keeps the latest version of the source code to integrate it and release a new version as soon as possible.
Let me know if you agree.

regards
Varesino
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#9
2008-02-16, 05:36 AM
Yeah, thats fine.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#10
2008-02-16, 05:54 AM
There is another annoying problem with this filter. They've changed the definition of the IMDAPIFilter interface several times. This will lead to crashes if you have you use a version of filter that has a different IMDAPIFilter interface definition to that which the application using application was compiled for. Because of this, you cant just update the version of mdapifilter.ax and hope the application will continue to work unchanged. (so I have the choice of leaving it compiled for the old version of the interface, and having it work well with the old version of the filter, and not break existing setups with the next GB-PVR upgrade....or I can compile it for the new version of interface, works better for the new version of the filter, but breaks it for hundreds of people with existing GB-PVR multidec setups.... I cant win...)

They should have instead added additional versioned interfaces like IMDAPIFilter2 or IMDAPIFilterEx or something similiar. Then I could have handled it automagically. Its probably a little late to retrofit this now.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Daily M3U Update SysAdminZ 7 1,012 2025-05-07, 01:36 PM
Last Post: SysAdminZ
  Add the date/timestamp to the EPG Update Complete line.. BigBillSD 3 800 2024-10-10, 09:32 PM
Last Post: mvallevand
  Multi timing EPG update Ghibson 3 1,118 2024-03-20, 01:36 PM
Last Post: Ghibson
  tvg-id support groenator 12 7,761 2023-08-20, 08:55 PM
Last Post: mvallevand
  Update EPG settings - random update time spin35 2 951 2023-05-12, 08:37 PM
Last Post: BrettB
  Feature Request: EIT Support, plus Stop and Save Recording. Chris4877 8 2,047 2022-09-12, 12:58 AM
Last Post: mvallevand
  Automatically update channels Tunes0710 0 1,568 2022-05-07, 09:57 PM
Last Post: Tunes0710
  USTV support buntay20 60 10,597 2021-12-23, 01:53 PM
Last Post: mvallevand
  update dvb epg while watching a channel. eastavin 0 1,296 2021-01-05, 04:56 AM
Last Post: eastavin
  posibility of two or three Automatic EPG Update per day kfmf 3 2,340 2020-12-28, 12:19 PM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode