[solved] Can't play video in debug (1 Viewer)

Stéphane Lenclud

Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    How can I enable video playback in debug mode? It works just fine when running an installed version of MP.
    I get the following error:

    upload_2016-5-6_12-4-27.png
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    If MP is installed and configured appropriately (in particular: codec settings) on the same machine then it should just work. Therefore log files are required...
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    The error is clear:
    [collapse]
    [2016-05-06 12:58:35,804] [Error ] [MPMain ] [ERROR] - VideoPlayer9: Exception while creating DShow graph Unable to load DLL 'dshowhelper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at MediaPortal.Player.VMR9Util.EvrInit(IVMR9PresentCallback callback, UInt32 dwD3DDevice, IBaseFilter& vmr9Filter, UInt32 monitor, Int32 monitorIdx, Boolean disVsyncCorr, Boolean disMparCorr)
    at MediaPortal.Player.VMR9Util.AddVMR9(IGraphBuilder graphBuilder)
    at MediaPortal.Player.VideoPlayerVMR9.GetInterfaces()[/collapse]

    I guess you haven't built the C++ components (DirectShowFilters).
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    I guess you haven't built the C++ components (DirectShowFilters).

    No matter how many times I build them I get the same issue.
    We ought to consolidate our development environment at some point, I'm always having those kind of issues.
    I could not debug my new feature today because of that.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Okay. With the greatest respect, I have the feeling you don't really understand what you're doing...

    If you want to debug MP from within VS:
    1. Compile the DirectShowFilters solution with Debug configuration using either:
      1. The "VS_Rebuild_Debug_DirectShowFilters.bat" script in the repo's Build directory, OR...
      2. VS itself. In this case you have to manually select the correct build configuration.
    2. Open the MediaPortal solution in VS.
    3. Select the Debug build configuration.
    4. Clean the solution.
    5. Build the solution.
    The post-build event configured for the MediaPortal project should take care of copying all the necessary binaries - including the DirectShowFilters - into the output directory. If you haven't built the DirectShowFilters first or you don't trigger the MediaPortal project post-build event (eg. because you only build the RemotePlugins project) then it won't work.
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    Okay. With the greatest respect, I have the feeling you don't really understand what you're doing...
    Are you saying I'm holding it wrong? :)

    Just went through the setup above to make sure and that did not fix it.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Are you saying I'm holding it wrong? :)
    Haha, yes. In NZ we would say "you have to hold your mouth the right way". :D

    Just went through the setup above to make sure and that did not fix it.
    Okay.
    Fresh log file please so we can confirm that the problem is the same.
    Please also check the contents of the DirectShowFilters bin directories (eg. DirectShowFilters\DirectShowHelper\bin\Debug) and mediaportal\MediaPortal.Application\bin\Debug. Like I said in my previous reply, the post-build script for the MediaPortal project should copy the C++ binaries to the mediaportal\MediaPortal.Application\bin\Debug directory. However the binaries have to exist in the first place, and the post-build script must be triggered.
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    Fresh log file please so we can confirm that the problem is the same.

    It is the same issue.
    I opened our DirectShowHelper solution and it fails to build cause it can't find streams.h.
    It looks like I could be missing the Windows 10 SDK. My dev machine was upgraded last year from Windows 7 to Windows 10.
     

    Users who are viewing this thread

    Similar threads

    Hi, First off: there are some issues with the latest Mediaportal (32bits vs 64bits), so that is one of the issues you're stumbling with. If you take the previous version (1.31) it should work as expected. For IPTV there is also a different option (with different pros and cons): Onlinevideos. I'm using that sometimes for my IPTV as...
    Hi, First off: there are some issues with the latest Mediaportal (32bits vs 64bits), so that is one of the issues you're stumbling...
    Hi I am trying to play a m3u file from my IPTV provider, but when I try to install the TV part of Media Portal v1.3.2 I get an...
    Replies
    1
    Views
    674
    Nice you could resolve the issue!
    Nice you could resolve the issue!
    I have MediaPortal 2.5 Server installed on one computer and Mediaportal 2.5 client on another. The client is connected to the...
    Replies
    6
    Views
    605
    I can confirm that. After reinstalling MP1.31(x86) I mistakenly installed the x64 version MpUrlSourcesplitter. Then I got the error. After uninstalling MpUrlSourcesplitter(x64) I installed the MpUrlSourcesplitter(x86). But the error message still comes.
    I can confirm that. After reinstalling MP1.31(x86) I mistakenly installed the x64 version MpUrlSourcesplitter. Then I got the...
    Just completed a clean install of Win 10 followed by MP 1.31. During install the installer hung up because I didn't have .net 3.5...
    Replies
    3
    Views
    556
    That fixed the problem. I just manually installed VC_redist.x64.exe and reinstalled 1.32 64-bit. Thanks for that. A couple of things; the deployment tool for 1.32 doesn't remove the previous version when you're updating from 1.31 to 1.32 and "MediaPortal TV Server" gets installed even when you choose to install the client only. I...
    That fixed the problem. I just manually installed VC_redist.x64.exe and reinstalled 1.32 64-bit. Thanks for that. A couple of...
    I have performed client installations of 1.32 64-Bit on four machines using the central configuration setup on Windows 10 Pro...
    Replies
    2
    Views
    641
    Hi, I found the problem in my configuration without PowerDVD. In the past I had configured the following setting: "Use internal Blu-ray menu player" and it works - slowly but it worked fine. As described, this suddenly stopped working after an update in the last few months. Yesterday, as a test, I deactivated this check box and it...
    Hi, I found the problem in my configuration without PowerDVD. In the past I had configured the following setting: "Use internal...
    Hello english forum! Since my question, which I asked weeks ago in the German-speaking forum, has not been answered until today, I...
    Replies
    43
    Views
    5K
    Top Bottom