[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,544
    8,236
    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,544
    8,236
    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,544
    8,236
    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,544
    8,236
    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

    I noticed there's an updated Visual C++ Runtime (14.50.35710), maybe try to reinstall the runtimes? That's what fixed the issue when I tried 1.38.1
    I noticed there's an updated Visual C++ Runtime (14.50.35710), maybe try to reinstall the runtimes? That's what fixed the issue...
    I just updated from 1.37 to 1.38. MediaPortal 1.38 exits abruptly when stopping video playback. I did three tests; Debug with...
    Replies
    38
    Views
    6K
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    I used to run the TVService under the "NT Service\TVService" account to follow least privileges principal (not exposing my whole...
    Replies
    3
    Views
    1K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    803
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore Windows resolution/size changes" In Codecs and Render, try selecting the specific audio device rather than "Default DirectSound device" Just ideas, no guarantee this will do anything. If this doesn't work, I...
    So, you're power cycling the TV, but not putting the PC to sleep ? In General => Startup/Resume settings, try checking "Ignore...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    4
    Views
    671
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films that have deafening sound effects and music, combined with inaudible dialogue. I have never noticed the problem that you have described, but I also use the EVR renderer, and not the Madvr renderer. So...
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    27
    Views
    4K
    Top Bottom