Vista and EVR support (2 Viewers)

Status
Not open for further replies.

Eabin

Retired Team Member
  • Premium Supporter
  • September 18, 2006
    465
    43
    ok, so someone else already did the dynamic loading for me. thanks :)
    i removed the dependecy on mf.dll, so evr should work on XP to now (without acceleration that is).

    as i said, i did some work on aspect ratio. if you have troubles with AR after the attached files have been committed, please let me know in this thread, and - if possible - provide a video which does not work correctly, so i can test and fix it.


    frodo: please commit the attached changes.
     

    Frodo

    Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,517
    121
    54
    The Netherlands
    Home Country
    Netherlands Netherlands
    Looking good to me;-)
    Its in SVN at the moment

    Are your also planning to make exclusive mode to work with EVR??

    Frodo
     

    Eabin

    Retired Team Member
  • Premium Supporter
  • September 18, 2006
    465
    43
    i am, but it is not an important point on my todo list, since i don't see any tearing (i think this is because of vista's aero).

    the list is looking something like this (ordered by importance):
    *) fixing bugs that get reported here
    *) switch scheduler to high resolution multimedia timer, for smoother playback and less (hopefully: none) skipped frames.
    *) better media-type negotiation (at the moment i create a default D3D-surface, which may lead to black screens for some, but nobody provided any logs so far, so i will stick to documentation)
    *) things i haven't thought of yet, like exclusive mode support.

    comments and suggestions are always welcome.

    btw: have you tried it on XP?
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    comments and suggestions are always welcome.

    First off, nice work.

    Secondly, i noticed that the frame grabbing functionality that i use for capturing video frames for the autocropper doesnt work when EVR playback is used.

    What i do is take the surface handed to PresentSurface in PlaneScene.cs and hand that over to the OnFrame method in FrameGrabber.cs. In there i call a helper method "VideoSurfaceToRGBSurface" in DXUtil.dll to convert the surface to an RGB surface from which a bitmap can be obtained.

    The source for that method is:
    VideoSurfaceToRGBSurface(IDirect3DSurface9* source, IDirect3DSurface9* dest)
    {
    IDirect3DDevice9* device = NULL;
    HRESULT hr = source->GetDevice(&device);
    if(!FAILED(hr)){
    hr = device->StretchRect(source,NULL,dest,NULL,D3DTEXF_NONE);
    }
    return hr;
    }

    When in EVR mode this call fails returning D3DERR_INVALIDCALL. Is there something special about the surface that gets handed to PresentSurface when using EVR compared to VMR9?
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Looking good to me;-)
    Its in SVN at the moment

    Are your also planning to make exclusive mode to work with EVR??

    Frodo

    To my knowledge there isn't any need for the exclusive mode with EVR (it's one of it's new 'features'). Full screen and windowed modes should be both tear free automatically.
     

    Eabin

    Retired Team Member
  • Premium Supporter
  • September 18, 2006
    465
    43
    Looking good to me;-)
    Its in SVN at the moment

    Are your also planning to make exclusive mode to work with EVR??

    Frodo

    To my knowledge there isn't any need for the exclusive mode with EVR (it's one of it's new 'features'). Full screen and windowed modes should be both tear free automatically.

    i would say, that depends on how you use EVR. the default presenter is tear-free by design, but as MP does it's own D3D rendering, it may very well result in tearing. AERO-drawn windows are again synchronized to v-blank automatically by default, so with AERO --> no tearing. if you turn it off, there should be tearing again in MP (note to self: try this yourself, and say the word tearing a thousand times for using it in every single sentence...).

    edit: there are a few methods how one can tweak the presentation scheduler to get a tear-free experience, which i plan to have a look at sooner or later.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    i'm running evr/mp on vista (with areo) and i do see tearing

    Frodo

    Do you have v-sync enabled in the driver config? (I'm just guessing, as I haven't even installed Vista yet.)
     

    spuck

    Community Skin Designer
    April 6, 2007
    397
    59
    Home Country
    Sweden Sweden
    Well I've got v-sync enabled and I get a lot of tearing, same with the MPC mod with EVR. Well with Direct3D Fullscreen option tearing disappears.

    A question. Can EVR do Video->PC levels? That'd be a neat option in configuration.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Similar threads

    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV Server development looks dead so I'm afraid you're going to have to figure that out by yourself if it's even possible.
    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV...
    Hi everyone, I've set up Mediaportal TV Server on a Windows 11 box, tuner deteced okay, scanned channels, can preview, all seems...
    Replies
    8
    Views
    1K
    I would have to know more details, and ultimately, I'll have to test it when I get my new display, but an AI answer I got (I don't trust AI and this may not be correct) was that HDR is encoded with the HEVC codec and I know MePo uses the HEVC codec to play 4K UHD Blue-ray discs. So, there is at least the possibility that it will work...
    I would have to know more details, and ultimately, I'll have to test it when I get my new display, but an AI answer I got (I don't...
    Does MePo 1 pass the HDR metadata, Dolby Vision, HDR10, etc., along to the display when playing 4K UHD Blu-ray discs? If not, are...
    Replies
    2
    Views
    1K
    MP1 MP2 TVGuide Users DE
    Greetings Fellow MP'rs. Does anyone out there use tvguide.com to access TV listings..? :unsure: If so, can you advise on how it is set up for use with MediaPortal..? I havebeen using Zap2XML / GraceNote but that just died (for me alone seemingly) and I am out of listings. :( Would appreciate any help - Thanks.
    Greetings Fellow MP'rs. Does anyone out there use tvguide.com to access TV listings..? :unsure: If so, can you advise on how it...
    Greetings Fellow MP'rs. Does anyone out there use tvguide.com to access TV listings..? :unsure: If so, can you advise on how it...
    Replies
    0
    Views
    767
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others) have been using the latest NewZap2xml_6 and it has worked flawlessly. A few days ago it all died. I wonder if anyone is working a solution to save the masses. I am hoping the good citizen of past is...
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others)...
    Greetings to all Denizens of the land of MediaPortal... It seems our Zap2XML/GraceNote access is broken again. I (as many others)...
    Replies
    0
    Views
    775
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    656
    Top Bottom