Dual Twinhans - bug status? - And what can i do to help? (1 Viewer)

ziphnor

Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Taipan said:
    I suggest you use Radlight Filter Manager to verify that the latest version of mpeg2data.ax is the currently registered one (it is called "MPEG Sections and Tables") - deleting the "old" files will not help as Windows File Protection will immediately restore them.

    It sounds to me like these new files are not being used.... :?

    In case you didnt notice, i installed MCE2005 instead, and i have checked that the file versions are those in the patch. But before doing that i *did* check with radlight, and it was the correct files that were registrered(anyway i have WFP disabled, and a search for the two files revealed only those from the patch).

    I think this is a different problem than the normal dual dvb issue. Maybe the problem before was that the microsoft filters couldnt run in multiple instances or something, but the current problem is that the wrong filters are being added to the graph, as described in the mantis bug report and seen from the log files above.

    Im wondering whether or not its something simple like the wrong filter being added because its being matched on its name and not its identifier or something.

    StuartH said:
    I'm also suffering from the same problem and can confirm the status of the bug.

    Glad to hear im not alone :) Could you perhaps also supply your mediaportal.log and capture.log file? (dont paste them here, use mp.pastebin.com and give the link here).

    Are you also using Twinhans?
     

    Taipan

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    ziphnor said:
    In case you didnt notice, i installed MCE2005 instead,
    Ooops - no I hadn't noticed.... :oops:

    ziphnor said:
    the correct files were registrered
    Good, so that eliminates my suggestion.... :?

    Since you have MCE2005 installed, I assume that these 2 cards play happily together within MCE, and it is only in MediaPortal where they mis-behave?
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Taipan said:
    Since you have MCE2005 installed, I assume that these 2 cards play happily together within MCE, and it is only in MediaPortal where they mis-behave?

    MCE itself doesnt support DVB-C yet, but using MyTheatre i can use both by starting 2 instances of the program. I can also have MyTheatre use one card while MediaPortal uses the other, like this:


    Judging from the behavior of MediaPortal in choosing filters im almost sure its some simple bug in MediaPortal, you can clearly see that it says its going to use card 2, and correctly identifies the card 2 filters, but then it goes on to add the card 1 filters instead.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    This is seriously strange. I had a look at the code, and made a small change so that in GraphHelper.LoadDefinitions the correct filters are placed into _captureCardDefinition.Tv.FilterDefinitions. Two GraphHelper objects are created, one for each card, and both FilterDefinitions are set to point to the correct monikers. However, when DVBBDAGraph iterates through them later on the contents have been altered so the filter definitions are the same for the two GraphHelper objects, obviously resulting in the second graph failing to start.

    UPDATE: Ah, as far as i can see this occurs because the FilterDefinition objects stored in the two ArrayLists are the same, so when the second GraphHelper calls LoadDefinition it overwrites the moniker values in the arraylist in the first graphhelper!

    UPDATE 2: Yeah! Got it working, i just copied the FilterDefinition before adding it to _captureCardDefinition.Tv.FilterDefinitions !!

    Will now check to see if the other change i made is also necessary, or if the above mentioned fix is enough.

    UPDATE 3: The other fix is also necessary, not sure how to fix that problem in a non-hacky way though.
     

    Callifo

    Retired Team Member
  • Premium Supporter
  • December 7, 2004
    1,439
    21
    Adelaide, Australia
    Home Country
    Probably good idea to talk to the dev's on irc about this and get it hammered out. Sounds like you know your stuff, thought of joining the dev team?
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Callifo said:
    Probably good idea to talk to the dev's on irc about this and get it hammered out. Sounds like you know your stuff, thought of joining the dev team?

    Im currently working on a Ph.D in Computer Science, so i do have a clue about programming :) Unfortunately i dont really know anything about DirectShow etc, and i have precious little time available for stuff like this.

    Anyway, i think i found the correct way to implement the other fix as well. Apart from the overwriting bug, the search for the Tuner filter to match to the capture filter fails for some reason, and just chooses the first Tuner filter all the time, causing a problem. However i fixed this by getting the hardware location of tuner filters and matching them according to their hardware location.

    I will submit a patch later today to hopefully fix the whole thing.

    UPDATE:
    Patch submitted:
    http://nolanparty.com/mediaportal.sourceforge.net/phpBB2/viewtopic.php?t=13074
     

    StuartH

    New Member
    February 7, 2006
    4
    0
    Thanks

    Just thought id add my thanks for the resolution to this issue.

    Downloaded and installed the cvs last night, and both my Twinhans tuned first time.

    I'll let the forum know if there's anu more issues with this, although, by the look of things - it's all good!

    :lol:
     

    Users who are viewing this thread

    Top Bottom