[WiP] madVR support in MP1 (8 Viewers)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    and seb, un grand merci à l'avance ;)
    Merci for the good report too :)

    I would like that you test the attached bin :)

    1- dshowhelper_WIP_TEST1.zip is a rework that seems to be better for blankscreen bug (i have added a delay of 5 seconds to display OSD)
    2- dshowhelper_WIP_TEST2.zip is the same as dshowhelper_WIP_TEST1.zip but with the 2 seconds delay on C++ side aka V148.

    If it's not better or if dshowhelper_WIP_TEST2.zip works, i can try to add this delay on current MP1-4781 code for testing.

    My result is :

    If i disable the OSD callback, it's really really hard to trigger the blankscreen, in fact i think i didn't trigger it.
    As soon as one OSD callback is done (for example on video.mkv N°1) something get locked somewhere and then it will trigger the blankscreen.
    I have tested this by delayed OSD callback to 20 secs and i have played a playlist of video until 20 sec was reach, the result was all ok and when one of those video has the OSDCallback -> few video after trigger the issue.

    But in dshowhelper_WIP_TEST1.zip it seems better or maybe it really random lol.

    Edit : Added dshowhelper_WIP_TEST3.zip (To have OSD on TV side, i ahve forgot to add the code for it, i was working on myvideo like i was able to reproduce it here too lol) TEST3 has the 2 sec delay aka V148.
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I have edited the previous post to add TEST3 :)
    But test can be made for TV without OSD too (i use F7/F8 to zap channel lol.
     

    rohnfe

    Portal Pro
    September 9, 2015
    208
    180
    Home Country
    Germany Germany
    Hm so now i am totaly confused:
    • restarted computer , exclusive mode activated (rest of the settings like non exlusive mode),fullscreen, TV switches auto: 3D works
    • non fresh restarted computer (second play of a 3d file), exclusive mode settings same as above,fullscreen, TV switches auto, black screen, switching to windowed mode: 3D works
    • restarted computer, non exclusive mode,fullscreen, TV switches auto, 3D works
    • non fresh restarted computer (second play of a 3d file), non exclusive mode, TV switches auto, picture shows up in 2D, switching from full screen to windowed makes 3D work, switching back to fullscreen 3D works
    so exclusive mode only works when the computer is restarted and no file to was played before
    none exclusive mode works if computer is restarted, or if you switch to windowed mode from fullscreen and back to fullscreen

    All tests only made with MPCH but i guess it will be the same behavior with MP.

    3D settings in nvidia panel and windows settings is enabled automatically for playback and deactivated again when player is closed... as it should be.

    Finaly i am confusedo_O

    I also recognized switching to 3D mode manually for example to watch an SBS file seems to break auto switching completly until next restart of the computer (no 3D signal is recognized anymore)

    Update:
    Always the first file after a reboot seems to work fine, second try if exclusive or non exclusive does not work as expected as something is hindering madvr (or something else) to work correctly, maybe its just something like a timeout/delay
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Yep that's the FUN with madVR and 3D lol

    So on HTPC, for exclusive mode, it was needed to add this option checked : (adding the delay of 3 secs, that is for my projector and Nvidia)
    upload_2016-7-31_19-30-9.png


    On my side to make it works : (Exclusive mode with the 3 secs delay checked)
    1- 3D windows switch must be set to OFF (the nvidia switch is the same as the windows one)
    2- Play a 3D movie
    3- Stop (here we need to wait that 3D windows switch to OFF, it can take few seconds)
    4- Normally a new 3D movie should works but sometimes not. It can failed because madVR was not released correctly.

    But to compare like C# and C++, i wasn't able to do a proper release at time, you need to checked with MPC-HC (like above test) :)
     

    rohnfe

    Portal Pro
    September 9, 2015
    208
    180
    Home Country
    Germany Germany
    Think i found the issue!! Its an Nvidia setting.. at least i think so! Maybe someone else could verify that.
    There is a setting called "Multi Display GPU acceleration" (i dont know if its called like this if you use the english version of the driver) under 3D configuration of the Nvidia control panel.
    This setting is set to "Multiple display performance mode" as default.
    If i change this one to "Single display performance mode" all of the files are working no matter if i restart the computer or if i play two files one after the other.
    10.PNG


    In case this is already known i appologize:D But maybe it might help(y) (hopefully)
    Still need to check wether all of the madvr settings are working now (exclusive/non exclusive mode, windowed or fullscreen)
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    That's a good information, i'm not sure it was already explain here :)
    Ahah maybe GPU Nviidia will works better :)
    I will see what i have in this setting lol
     

    daWooky

    MP Donator
  • Premium Supporter
  • April 3, 2012
    783
    871
    Home Country
    Germany Germany
    tried it, seb

    wip1test:
    -firstrun: crash on iso open, good start :ROFLMAO:
    -secondrun: iso refused to open again with .index popup error occured so i tried the 3dmkv version- it opens but not in 3d(d3d9 mode)
    the next mkv plays in 3d ok, tried the iso from start again and it opens - 3d seems ok too.
    tried some direct 3d to 3d (i can not resist alex^^)-the menu acts weird like on second time or it simply ignores the input. sometimes it still works but with exclusive faild

    wip2test:
    only a quick 3d mkv files run and i forget watchdog so only a bit logs
    tried several times the same file but did not get a real 3d picture until i try to opend a different one
    tada 3d ok again ...

    wip3test:
    tried it a bit longer, not only with 3d
    first with some tv -interlacing on/off ,tuner changes... all good and nice zapping times
    after that some 2d videos play -all nice no errors, rendertimes are close or on mphc level and cc also works
    so back to damn 3d, two runs ok third not - opens as 2d again with d3d9 but maybe im simply too impatient again

    i stay on v3 for a while to see how it behaves.
    about the exclusive 3sec delay switch u need for 3d - if i recall correctly, it was added long time ago for a problem with mphc switching fullscreen blackscreen with sound. i try with some different mad settings and gtx1060 next week

    cheers guys
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Effectively on my side it was set to multi too :)
    I just change it on DEV PC, i will try tonight on HTPC lol
    upload_2016-7-31_20-18-3.png
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    tried it, seb
    cheers guys

    Thanks :) i will upload V152 in first post (this one has no delay on stop but always the delay on OSDCallback. It seems (i say it seems) that it handle a little better the release of madVR.
    I will analyse your logs :p
     

    Users who are viewing this thread

    Top Bottom