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

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,223
    Home Country
    New Zealand New Zealand
    Did you search the SDK folders for the streams.h file?
    If no, you should.
    If it's not there, I don't know what to suggest. I know what must be done for XP, and the Wiki explains for W7 and W8/8.1, but not W10.
    If it's there, you probably have not created the required environment variables. Note that the EV definitions may need to be modified given that you're using W10. Again, sorry I can't help you with that.
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    I have the missing header in that 7.1 SDK. I have the required environment variables.
    The problem seems to be coming from the fact that the newer Windows 10 SDK, which I'm probably targeting, does not include the samples we are trying to include.
    Thanks for sharing that link. One guy there seems to have found the proper solution:
    Regarding your build advice, I got burned by environment mismatches several times, so I now include the DirectShow base class source files in every DShow project I build. That way, I know the properties all match.

    That would make sense since those are samples apparently.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,223
    Home Country
    New Zealand New Zealand
    We also include the base classes in our repo. They're not samples. The samples are something completely separate. Both the samples and our filters require the base classes in order to compile.
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    We also include the base classes in our repo.
    I see, streams.h is also in our repo. So why do we try to include the version from the SDK?

    They're not samples. The samples are something completely separate. Both the samples and our filters require the base classes in order to compile.
    So why do they live in a subdirectory from "Samples" and why is the full source code provided? Then again I know next to nothing about DirectShow so I'll take your word for it.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,223
    Home Country
    New Zealand New Zealand
    I see, streams.h is also in our repo. So why do we try to include the version from the SDK?
    I've looked at the project config, and I don't think we do. The DShowHelper project config for the debug build says:
    <AdditionalIncludeDirectories>$(SolutionDir)baseclasses;$(WINDOWS_SDK)Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

    streams.h should be picked up by $(SolutionDir)baseclasses.
    Did you try to open and build the DShowHelper project by itself?
    If yes, that is your mistake.
    You must open and build the DirectShowFilters solution (DirectShowFilters\Filters.sln), not the individual projects.

    So why do they live in a subdirectory from "Samples"...
    Ask MS.
    (Sometimes MS do confusing things. ;) )

    ...and why is the full source code provided?
    Again, you'd have to ask MS.
    Perhaps it's necessary to be able to build from source in order to target specific platforms or build specific types of binaries (ie. MBCS, non-MBCS).

    With this stuff it's often easier to just follow the instructions or do what everybody else does rather than try to understand. That's what I do. ;)
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    With this stuff it's often easier to just follow the instructions or do what everybody else does rather than try to understand. That's what I do. ;)

    I would love to do that but since my build is not working I have to look into it.

    I've looked at the project config, and I don't think we do. The DShowHelper project config for the debug build says:
    var rm = "read_more ..."; var o = "... Read Less"; var adjustheight = 20; // 20; // streams.h should be picked up by $(SolutionDir)baseclasses.
    Did you try to open and build the DShowHelper project by itself?
    If yes, that is your mistake.
    You must open and build the DirectShowFilters solution (DirectShowFilters\Filters.sln), not the individual projects.

    I was using the DirectShowHelpers solution rather than the Filters solution and the path to baseclasses is wrong there.
    Though it should work with Filters as you are pointing out.
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    So building the Filters solution from VS 2013 gives me the following errors:

    1>------ Build started: Project: LiveMedia555, Configuration: Debug Win32 ------
    2>------ Build started: Project: DSUtil, Configuration: Debug Win32 ------
    2>D:\Dev\GitHub\MediaPortal\MediaPortal-1\DirectShowFilters\mpc-hc_subs\src\thirdparty\VirtualDub\system\system.vcxproj(52,5): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\vsyasm.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    3>------ Build started: Project: TsWriter, Configuration: Debug Win32 ------
    1> LiveMedia555.vcxproj -> D:\Dev\GitHub\MediaPortal\MediaPortal-1\DirectShowFilters\LiveMedia555\..\shared\LiveMedia555D.lib
    3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1197,5): warning MSB8030: The linker switch "Minimum Required Version" requires "SubSystem" to be set. Without "SubSystem", the "Minimum Required Version" would not be passed to linker and could prevent to the output binary from running on older Operating Systems.
    3> MPTSWriter.vcxproj -> D:\Dev\GitHub\MediaPortal\MediaPortal-1\DirectShowFilters\TsWriter\.\bin\Debug\TsWriter.ax
    4>------ Build started: Project: TsReader, Configuration: Debug Win32 ------
    5>------ Build started: Project: mpcSubs, Configuration: Debug Win32 ------
    4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1197,5): warning MSB8030: The linker switch "Minimum Required Version" requires "SubSystem" to be set. Without "SubSystem", the "Minimum Required Version" would not be passed to linker and could prevent to the output binary from running on older Operating Systems.
    4> TsReader.vcxproj -> D:\Dev\GitHub\MediaPortal\MediaPortal-1\DirectShowFilters\TsReader\.\bin\Debug\TsReader.ax
    5>D:\Dev\GitHub\MediaPortal\MediaPortal-1\DirectShowFilters\mpc-hc_subs\src\thirdparty\VirtualDub\system\system.vcxproj(52,5): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\vsyasm.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    6>------ Build started: Project: MPAudioSwitcher, Configuration: Debug Win32 ------
    6>D:\Dev\GitHub\MediaPortal\MediaPortal-1\DirectShowFilters\mpc-hc_subs\src\thirdparty\VirtualDub\system\system.vcxproj(52,5): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\vsyasm.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    ========== Build: 3 succeeded, 3 failed, 24 up-to-date, 0 skipped ==========
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,223
    Home Country
    New Zealand New Zealand
    I would love to do that but since my build is not working I have to look into it.
    True... but it seems most of the problems you've run into so far could have been avoided if you'd used the build scripts. For example, there would be no confusion about the DShowHelper solution, and so there would also be no confusion about streams.h and SDKs.

    I was using the DirectShowHelpers solution rather than the Filters solution and the path to baseclasses is wrong there.
    Okay. For the record: I do not maintain DShowHelper, but AFAIK the DirectShowHelpers solution is not used.

    So building the Filters solution from VS 2013 gives me the following errors...
    There are only 3 errors there, and they all look approximately the same. All related to YASM. The obvious question would be: have you followed the instructions in the wiki that relate to YASM?
    http://wiki.team-mediaportal.com/1_...ding_MediaPortal_from_source/1_Git_Setup#YASM

    If not, it's no surprise that you're getting the errors.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,223
    Home Country
    New Zealand New Zealand
    I have to go to bed now as it's 00:45 here in NZ. Unfortunately I'm going to be away from home and fully away from keyboard from tomorrow lunch time for approximately 24 hours. If you have further problems/questions, I'll try to reply before I leave. However I still have preparation so I cannot guarantee anything until I get back. Sorry about that. Hopefully other devs will be able to step in if you get stuck again. Good luck! :)
     

    Users who are viewing this thread

    Similar threads

    Just for clarification Cyberlink's PowerDVD is a stand alone media player for Windows which will play just about everything. It is what I use to play Bluray Disks, I have it set up as an external player in MP such that it automatically starts up when a Bluray Disk is inserted into the player when MP-1 is running. I would strongly...
    Just for clarification Cyberlink's PowerDVD is a stand alone media player for Windows which will play just about everything. It is...
    Hello english forum! Since my question, which I asked weeks ago in the German-speaking forum, has not been answered until today, I...
    Replies
    37
    Views
    1K
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live stream from server to MP. If anyone has a similar problem - disable all old plugins and then enable one after another :-)
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live...
    After using MP for more than 10 years with regularly updates - this is the first time that after an update MP is not working...
    Replies
    3
    Views
    470
    MP1 MP2 MP2 - V2.4.1 Resume playback from DE
    Ok, thanks for the User Management tip - I now get what I would expect. Now all I have to do is to figure out how to make Auto Login do what it says on the tin. The only way to make it work is to manually log in each time. Any hints as to what I'm missing with the login system?
    Ok, thanks for the User Management tip - I now get what I would expect. Now all I have to do is to figure out how to make Auto...
    So "Resume playback from" only works when MediaPortal 2 has NOT been turned off, meaning if I shut MediaPortal 2 down, restart it...
    Replies
    10
    Views
    839
    I tried setting the windows screensaver to power off the display on my MP1 HTPC but in fact it only blanks the screen ("no video signal") on the TV I suspect the AVR has something to do with that. If I manually put the TV only into standby when TV is playing but paused then on wakeup I could not immediately take it out of pause and...
    I tried setting the windows screensaver to power off the display on my MP1 HTPC but in fact it only blanks the screen ("no video...
    Hi all, I´m using MP 1.30 at the moment and have a problem which also exists on my system on previous versions. So I don´t think...
    Replies
    3
    Views
    309
    Ok so final update. As in my original post the download of MS SQL Express 2005 fails which in the following posts questioned why it was even needed. And this appears to be a valid point as it appears as though MySQL 5.6 is the preferred option anyway so why try and download it? The other problem with the "download files only option"...
    Ok so final update. As in my original post the download of MS SQL Express 2005 fails which in the following posts questioned why...
    When I was installing MP 1.31 last weekend I selected to download the files and install from a local folder. I got these messages...
    Replies
    7
    Views
    373
    Top Bottom