Sascha-L / WPF-MediaKit

Microsoft Public License
367 stars 116 forks source link

Could not create IMFVideoPresenter #93

Open Sharkboy-j opened 5 years ago

Sharkboy-j commented 5 years ago

StackTrace:

   at WPFMediaKit.MediaFoundation.EvrPresenter.CreateNew()
   at WPFMediaKit.DirectShow.MediaPlayers.MediaPlayerBase.CreateEnhancedVideoRenderer(IGraphBuilder graph, Int32 streamCount)
   at WPFMediaKit.DirectShow.MediaPlayers.MediaPlayerBase.CreateVideoRenderer(VideoRendererType rendererType, IGraphBuilder graph, Int32 streamCount)
   at WPFMediaKit.DirectShow.MediaPlayers.MediaUriPlayer.oldOpenSource()

InnerException

Can't load library '...\bin\Build\EvrPresenter64.dll'.

Im using MediaUriElement to play RTSP stream. But i got exception: there are no EvrPresenter64.dll in my folder, actually it exists

How can i fix this

henriknc commented 5 years ago

Hi Jeremi, Did you solve this problem. I have the exact same problem when trying to load the EvrPresenter32.dll library. It suddenly stopped working.

Sharkboy-j commented 5 years ago

Hi Jeremi, Did you solve this problem. I have the exact same problem when trying to load the EvrPresenter32.dll library. It suddenly stopped working.

I change platform to x86, and it start working

henriknc commented 5 years ago

Thanks for getting back to me so quickly. I already run on the x86 platform, so the cause of my problem must be different.

vryan95 commented 4 years ago

Got the same problem. Cant load evrpresenter64.dll and when i build as x86, it cant load EvrPresenter32.dll. Both dll's are in the correct folder.

henriknc commented 4 years ago

I our case it was because the C++ 2013 redistributable was not installed on the pc.

vryan95 commented 4 years ago

Tried that but doesn't solve the problem. Guess I'll continue my search. Thanks anyway Edit: after installing, i opened the same installer and performed a repair. Now it does work.