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

stoked

MP Donator
  • Premium Supporter
  • December 14, 2007
    297
    8
    Home Country
    Canada Canada
    I'm just curious, how would this "hack" interfere with MPs internal sub engine regarding other containers/codecs when trying to show subs.
    The new engine is intended to replace DirectVobSub. So, it will work whenever DirectVobSub was working :)

    So to enable this, do we disable VSFilter loading in Haali media splitter and this will take over?
     

    Pretoriano

    Retired Team Member
  • Premium Supporter
  • October 1, 2007
    526
    133
    Roma, Italia
    Home Country
    Romania Romania
    i'm now using this patch with MP (i compiled the latest svn with the sources from CPP2005 so configuration work to) and i must say that i don't have any issue so far,divx/xvid subtitles are working (i unregistred vsfilter) no conflicts so far.Thx again CPP2005 and i hope this will be integrated soon (and a i dont have to compile MP my own):D
     

    red5goahead

    MP Donator
  • Premium Supporter
  • November 24, 2007
    695
    144
    Italy, North West
    Home Country
    Italy Italy
    i'm now using this patch with MP (i compiled the latest svn with the sources from CPP2005 so configuration work to) and i must say that i don't have any issue so far,divx/xvid subtitles are working (i unregistred vsfilter) no conflicts so far.Thx again CPP2005 and i hope this will be integrated soon (and a i dont have to compile MP my own):D

    I quote you. Flavio e buona serata.

    CPP2005 remember check the sub synch because seem there is some problem. the video/audio seems lags from its sub. the sub hastes for about half second. the internal sub slide delay control seems not work.

    ps:I tried with an MKV 720p h.264/ac3 and its srt files.

    :D again cpp2005.
     

    damaster

    Portal Pro
    November 23, 2007
    412
    35
    Home Country
    Canada Canada
    2 bugs to report
    1: Slight delay as others have reported.

    2: When I close MediaPortal, the MediaPortal.exe process keeps running in the background and I have to kill it with Task Manager. This is due to loading of mpcSubs.dll. As a test, I changed MpcSubtitles.cs to NOT import the DLL and just stubbed out empty methods as below, and then when I exit MediaPortal it exits just fine:

    Code:
        /*
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern unsafe bool SetDevice(void* device, int w, int h);
    
        [DllImport("mpcSubs.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
        public static extern void SetDefaultStyle([In] ref SubtitleStyle style);
    
        [DllImport("mpcSubs.dll", ExactSpelling = true, CharSet = CharSet.Unicode)]
        public static extern bool LoadSubtitles(string filename, IGraphBuilder graphBuilder);
    
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern int GetCount();
    
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        [return: MarshalAs(UnmanagedType.BStr)]
        public static extern string GetLanguage(int i);
    
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern int GetCurrent();
        
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern void SetCurrent(int current);
    
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern bool GetEnable();
        
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern void SetEnable(bool enable);
    
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern void Render();
    
        [DllImport("mpcSubs.dll", ExactSpelling = true)]
        public static extern void FreeSubtitles();
        */
    
        public static unsafe bool SetDevice(void* device, int w, int h) { return true; }
    
        public static void SetDefaultStyle([In] ref SubtitleStyle style) { }
    
        public static bool LoadSubtitles(string filename, IGraphBuilder graphBuilder) { return true; }
    
        public static int GetCount()  { return 1; }
    
        public static string GetLanguage(int i) { return "English"; }
    
        public static int GetCurrent() { return 1; }
        
        public static void SetCurrent(int current) { }
    
        public static bool GetEnable() { return true; }
        
        public static void SetEnable(bool enable) { }
    
        public static void Render() { } 
    
        public static void FreeSubtitles() { }
     

    cpp2005

    Retired Team Member
  • Premium Supporter
  • November 7, 2006
    164
    127
    Ok I'm checking it, tourettes may be you have a hint why it would stay in memory?
    Regarding delay: with what kind of subtitles did you get it (all/external/internal)? And what renderer are you using?

    So to enable this, do we disable VSFilter loading in Haali media splitter and this will take over?
    DirectVobSub is removed automatically from graph, so you don't have to do anything to enable it.

    damaster, mr viggo
    can you check mediaportal logs, if there are any errors after it stays in memory?
     

    Users who are viewing this thread

    Top Bottom