Codec merit problem... (1 Viewer)

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    Merits
    The whole merit discussion leads to nothing.

    If the current Merit settings were not working on your system you can simply change them with radlight

    or do not install MPV and MPA during the MediaPortal installation if you are going for Nvidia Purevideo.

    Gabest uses high merit setting?
    NO

    MPV uses 0x40000002 and thats just fine because it is not a high merit. in fact it is far below normal.

    STANDARDIZED MERIT VALUES

    MERIT_PREFERRED = 0x800000
    MERIT_NORMAL = 0x600000
    MERIT_UNLIKELY = 0x400000
    MERIT_DO_NOT_USE = 0x200000
    MERIT_SW_COMPRESSOR = 0x100000
    MERIT_HW_COMPRESSOR = 0x100050

    conclusion
    The main problem is never the merit setting.
    the problem is that some applications let windows decide which codec is best to be used based on the merits, instead of providing an option where the user can select the prefered codec.

    thats also exactly the problem GBPVR has.
     

    zombiepig

    Portal Pro
    March 21, 2005
    408
    0
    Melb, Aus
    Home Country
    i actually noticed a similar problem 2 nights ago - i was trying to play a video file through mp, and wasn't getting any sound from it. from wmp and everything else sound was working fine.
    after some troubleshooting with graphedit, i discovered that regardless of the setting for audio codec in video configuration, mp was using the mpa codec (which wasn't set for spdif output - hence no sound). when i set the mpa codec to use spdif the video file played correctly, even though i had the nvidia codec set in mp config :?
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,994
    29
    Melbourne
    infinityloop said:
    Merits

    MPV uses 0x40000002 and thats just fine because it is not a high merit. in fact it is far below normal.

    STANDARDIZED MERIT VALUES

    MERIT_PREFERRED = 0x800000
    MERIT_NORMAL = 0x600000
    MERIT_UNLIKELY = 0x400000
    MERIT_DO_NOT_USE = 0x200000
    MERIT_SW_COMPRESSOR = 0x100000
    MERIT_HW_COMPRESSOR = 0x100050

    Much as I hate to admit it, I think there may be an issue with MP here.
    Provided the people posting haven't made any mistakes (ie, I haven't checked this for myself)

    the value quoted above 0x40000002 has six zeros followed by a 2. The value given by InfinityLoop as unlikely 0x400000 has only five zeros. This means that rather than unlikely, it is actually marked as the highest choise ever (100 times greater than Unlikely.

    Am I on the right track here?
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    Marcusb said:
    the value quoted above 0x40000002 has six zeros followed by a 2. The value given by InfinityLoop as unlikely 0x400000 has only five zeros. This means that rather than unlikely, it is actually marked as the highest choise ever (100 times greater than Unlikely.
    i have totally missed that :shock:

    that could be possible.

    Glith
    could you set the merit to -> 0x400000 with radlight ??
     

    samuel337

    Portal Pro
    August 25, 2004
    772
    0
    Melbourne, Australia
    infinityloop said:
    Merits
    The whole merit discussion leads to nothing.

    If the current Merit settings were not working on your system you can simply change them with radlight

    or do not install MPV and MPA during the MediaPortal installation if you are going for Nvidia Purevideo.

    ...

    conclusion
    The main problem is never the merit setting.
    the problem is that some applications let windows decide which codec is best to be used based on the merits, instead of providing an option where the user can select the prefered codec.

    thats also exactly the problem GBPVR has.

    Much as I hate to disagree, I have to say I do.

    There is merit in the merit discussion because the installation of MP should not in theory affect the running of any other programs. Not everyone is going to know to download radlight and change it if a problem occurs - and there's no point telling them to do so because a) you're inconveniencing the user, and b) they're effectively fixing a problem that we created to start off with.

    You concluded that the problem lies with the way the programs trust DirectShow to pick the correct filters. While MP's solution does ensure it always works, MP should not be doing something that causes DirectShow's merit system to not work properly. Sure DirectShow's merit system may not be perfect, but the system is there, is a Windows standard and is known to 'generally work' (if all apps complied with the rules), so there's no reason why we should go in there and stuff it up.

    My 2 cents... anyway, it looks like we've worked out why the problem is occurring so it shouldn't be hard to fix it.

    Sam
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    samuel337 said:
    MP should not be doing something that causes DirectShow's merit system to not work properly.
    MediaPortal is not reposible for that.

    Problem 1:
    The Merit for MPV and MPA is set by Gabest's codec, NOT by the installer of MediaPortal.
    Everyone who uses the codecs from Gabest will be effected, not only MediaPortal users who choose to install this codecs during the installation.

    Problem 2:
    It would be possible to change the value with a special script, BUT we do not know why Gabest has choosen this Merit value.


    0x00400000 = MERIT_UNLIKELY
    0x40000002 = Merit used for MPV
     

    samuel337

    Portal Pro
    August 25, 2004
    772
    0
    Melbourne, Australia
    infinityloop said:
    samuel337 said:
    MP should not be doing something that causes DirectShow's merit system to not work properly.
    MediaPortal is not reposible for that.

    Problem 1:
    The Merit for MPV and MPA is set by Gabest's codec, NOT by the installer of MediaPortal.
    Everyone who uses the codecs from Gabest will be effected, not only MediaPortal users who choose to install this codecs during the installation.

    Problem 2:
    It would be possible to change the value with a special script, BUT we do not know why Gabest has used this Merit value.[/b]

    oh. my apologies then. :oops: I should read the entire thread next time :lol:

    Sam
     

    zombiepig

    Portal Pro
    March 21, 2005
    408
    0
    Melb, Aus
    Home Country
    i'm wondering if it's not possible to make the mpa/mpv decoders optional during mp install. i'm a pretty big fan of only installing filters i REALLY need :wink:
     

    Marcusb

    Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,994
    29
    Melbourne
    as of .2 they are optional. I think it's the first question you are asked.

    Even if the fault lies with Gabest, it's probably best if we contact the maker and see if they are aware.
    If nothing is done, then it probably is a good idea for us to script a correction.
    It's all very well for us to say "It's not our fault" but since MP was the app that is installed, that's all people will think. "MP broke my setup" which is not a good thing to have people think.

    (my 2 cents)
     

    Users who are viewing this thread

    Top Bottom