Vista and EVR support (1 Viewer)

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,518
    121
    53
    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

    You can find ton of guide here: https://www.avsforum.com/threads/madvr-player-support-thread.2215490/?post_id=39123050#post-39123050
    You can find ton of guide here: https://www.avsforum.com/threads/madvr-player-support-thread.2215490/?post_id=39123050#post-39123050
    Hi, I have a problem if I set madVR as Video Render. When I try to play my .mkv files I have an 'Unable to play. Video COdec...
    Replies
    3
    Views
    1K
    MP1 MP2 1.31.0 Cannot view Changelog anymore DE
    Hi all, I don't frequently update my MediaPortal and before seeing if it's really useful I used to browse the Changelog to determine if this update is necessary for my system or not. Today I wanted to check the Changelog for version 1.34 (1.31 installed on my system) and I was asked for a “Jira” login. I tried to use the same one as...
    Hi all, I don't frequently update my MediaPortal and before seeing if it's really useful I used to browse the Changelog to...
    Hi all, I don't frequently update my MediaPortal and before seeing if it's really useful I used to browse the Changelog to...
    Replies
    0
    Views
    440
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    2K
    MP1 MP2 1.34 STB blasting for IPTV DE
    I'm downsizing my big honkin' HTPC case to a mini PC, which means the tried and true Hauppauge Colossus card that bridges the set top box into Mediaportal needs replaced with a different solution. I currently have HDMI from the STB to the colossus. Mediaportal is controlling the STB through a USBUIRT blaster and the blaster is...
    I'm downsizing my big honkin' HTPC case to a mini PC, which means the tried and true Hauppauge Colossus card that bridges the set...
    I'm downsizing my big honkin' HTPC case to a mini PC, which means the tried and true Hauppauge Colossus card that bridges the set...
    Replies
    0
    Views
    668
    • Sticky
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    951
    Top Bottom