Integration of MPC-HC subtitle's engine (1 Viewer)

cpp2005

Retired Team Member
  • Premium Supporter
  • November 7, 2006
    164
    127
    Hi
    I managed to integrate MPC-HC subtitle's engine to Mediaportal. The main advantage of such integration that it allows hardware acceleration - DirectVobSub is not required and video decoder is connected directly to video renderer.
    There are only few changes needed to mediaportal itself - the library is fully contained, including subtitles management and selection. There are some additional features as well:
    - modified subtitles configuration to include more options
    - both external and internal (embedded) subtitles can be used at the same time. Currently in Mediaportal, in such case only internal subtitles will be used.
    Please report your results here!

    Attached are the sources and binaries for svn 22244.
    mpc-hc_subs_Src.zip - Visual Studio 2008 solution to build mpcSubs.dll for mediaportal
    mp_Src.zip - modifications for mediaportal itself


    When building mediaportal, note that dshowhelper.dll (from Core\DirectShowHelper\DirectShowHelper) need to be built as well.

    Build instructions for mpcSubs.dll:
    Download MPC-HC sources (https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk)
    Visual Studio 2008 is needed with BaseClasses from SDK samples (Samples\Multimedia\DirectShow\BaseClasses)
    Only the following MPC-HC projects are used: BaseClasses, dsutil, subpic, subtitles, libssf.
    Extract zip to root directory and use mpc-hc_subs.sln solution file.

    The binaries were compiled with Visual Studio 2008 so if you have issues with video playback please install "Visual C++ 2008 Redistributable Package" from here: Download details: Visual C++ 2008 SP1 Redistributable Package (x86)
    Download details: Visual C++ 2008 Redistributable Package (x86)

    Remember if you have issues with this SVN and you are using the MPC subtitle engine please post them only in this thread because the new engine is not supported by team mediaportal yet.THX
     

    Attachments

    • mpc-hc_subs_Src.zip
      30.6 KB
    • mp_Src.zip
      30.6 KB
    • MPC subs engine - Binaries for MP 1.0.2.rar
      30.7 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Nice work! I think if testing goes well this should be included in MP 1.0.2 (as 1.0.1 has just gone into feature freeze few days ago).

    I didn't yet check the code (or MP changes) but intend to do so in near future. Here are few things that should be noted:

    - We are already using a specific BaseClasses version for you DirectShow filters, MPC code should be ported to use the same version (we don't want to have duplicate / different versions in SVN / MP)
    - If possible please provide .patch files for MP side changes (makes easier to check the diffs as you can base those on different SVN version)
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    I'm getting weird errors when trying to run attached Configuration.exe, it doesn't run at all.

    Should this work with 1.0 final (if not, binaries for it would be nice)?
     

    cpp2005

    Retired Team Member
  • Premium Supporter
  • November 7, 2006
    164
    127
    tourettes
    Ok, I included the patch file in mp_Src.zip.

    seco
    21527 is the latest svn.
     

    Pretoriano

    Retired Team Member
  • Premium Supporter
  • October 1, 2007
    526
    133
    Roma, Italia
    Home Country
    Romania Romania
    Hi,i have the same problem like seco,when i run "configuration.exe" windows give me the "program stoped working " error and i'm using MediaPortal with the latest SVN (in fact my original "configuration.exe" and "core.dll" says version 1.0.0.21527 but the attached files are version 1.0.0.0).:(
     

    cpp2005

    Retired Team Member
  • Premium Supporter
  • November 7, 2006
    164
    127
    Thanks, how about unifying the baseclasses version / usage? :)
    What baseclasses are used in mediaportal? In DirectShowFilters readme it is specified to use latest from C:\Program Files\Microsoft SDKs\Windows\v61. I used the same, so it should not be a problem.

    Pretoriano
    Both configuration and mediaportal didn't work? You don't have to use configuration, if you had subtitles enabled it should work right away.
     

    Users who are viewing this thread

    Top Bottom