Bluray Playback only with Gabest (1 Viewer)

MJGraf

Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Hi,

    I'm not sure, whether this is a bug, just wanted to mention it somewhere and ask some silly questions :D

    I tried to play a bluray iso with MP2-client and it tells me that there is no player registered for it. When stepping through the code I realized that it's not the player that's missing. It seems to be the fact that I don't have the Gabest sourcefilter installed (only LAV) and Gabest is hardcoded as sourcefilter in the BDHandler plugin for MP2.

    Over my holidays, I tried to understand some more of MP2's code and tried to add support for LAV (i.e. replace Gabest with LAV in the code). And guess what: it worked. As I was starting to code, I wanted to dig deeper and decided to make the sourcefilter for MP2-Client a configurable setting. It worked as well (and I was really proud of myself) but I came across the following question / problem:

    I somehow had to include some sort of default-setting for this sourcefilter, because if I didn't, bluray playback didn't work, when I started up MP2-Client for the first time. I first had to go into settings and chose a sourcefilter. After that it worked. The question is: How to do that. I know I can set a default setting in the attribute of the settings class. The problem with this solution is that there is no hardcoded default for this setting. What I wanted to achieve is that I check whether LAV is installed, if so use LAV as default, if LAV is not installed, check whether Gabest is installed, if so use this one as default. But obviously, I can't set the default attribute to some kind of method to be called. What I tried next is to use the constructor of the respective configuration class. But this class doesn't seem to be instatiated unless you enter the settings.

    Where is the right place to do this? Is it the constructor of the settings class?

    As mentioned, all this happened during my holidays and I wanted to post this question and/or a patch earlier, but then I found the thread in the MP1-forum about native bluray support. I was absolutely sure that it wouldn't take too long until someone ports this to MP2 and I should be right :) (Thanks Morpheus, much appreciated, didn't test, yet, but I will). Anyway, I tried to read some of the code in the new bluray branch and my understanding is that there is a separate sourcefilter for blurays now.

    That means for me that there is no need for Gabest or LAV as sourcefilter for blurays anymore. Am I correct? What are the plans in this direction? Does it still make sense that I finish my patch above?

    ok, that's a lot of text and many questions. Any answer is welcome...

    Michael
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    There are currently two different developments:

    first I had ported the MP1 BDHandler plugin to MP2. this used to work with gabest splitter. In the mean time I added support for Lav splitter as well, but somehow this change got lost.

    But with the recent available NativeBluRay development (incl. Menu) I switched to this version. It can be found in bdplayer branch. Although it is not yet working as good as the MP1 version I will continue with it and won't do on the older BDHandler.

    Sent from my GT-I9000 using Tapatalk
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Regarding your question about the available filters: in my version I did hold a list of known source filters. The playerbuilder than tried to use the first available in this list. So I preferred Lav over gabest. You could change the player builder also this way:
    on first time access find the best matching filter, save it into bdhandler settings if not done before.

    The setting you later can change in mp settings.

    Sent from my GT-I9000 using Tapatalk
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Thanks for the clarification, Morpheus!

    Please find attached a patch that makes the Bluray Source Filter a configurable setting. LAV Filter Source and Gabest are now supported.
    I hope it's useable...

    Thanks again,
    Michael
     

    Attachments

    • 0001-BDHandler-Make-Bluray-Source-Filter-a-configurable-s.patch
      11.2 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Bluray Playback only with Gabest

    Hi Michael,

    I just wanted to include your patch. It seems you have missed the "BDSourceFilterConfig.cs" file. Can you check this?

    It would be enough to attach only this file here, other part of patch worked :D

    Morpheus
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Hi Morpheus,

    sorry, what I definitely need is a "beginners guide for tortoise git"... Forgot to add this new file to my local git repository before creating the patch file.
    Please see attached.

    Thanks a lot,
    Michael
     

    Attachments

    • BDSourceFilterConfig.7z
      1.5 KB

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    :D Morpheus! Works perfectly for me.

    I only get some errors when I try to play a bluray iso over my wlan, but this doesn't seem to have anything to do with the source filter. Getting lots of dokan errors in the log - maybe my wlan (802.11g) is too slow for bluray playback. Will investigate this and report back in another thread.

    Michael
     

    Users who are viewing this thread

    Top Bottom