Win HOW TO - Launch MPC-HC/MPC-BE with madVR as an External Player
#2
2. LIST OF SOFTWARE REQUIRED FOR PLAYBACK WITH MPC-HC & MADVR

The complexity of MPC-HC set up can be intimidating for novice users. However, correct configuration is nothing more than following a series of set up screens with checkboxes. Realistically, this can be completed in an hour or two. If you are at all familiar home theater set up, these settings will be less than intimidating.

All required software is listed below with download links. Note that some software is optional and not necessary for proper audio/video playback. The bonus: Regardless of what you choose, all software is free and widely supported by its respective communities!

Required Software:
Supported Guide

The following configuration guide is recommended to assist with post-installation set up:

Advanced MPC-HC Set up Guide

The inspiration for this guide came from the following AVS Forum post from 2011. Most technical set up from that post has been incorporated in this guide along with supplemental information for each program. It is not required reading, but the Advanced Set up Guide is still recommended for those interested in MPC-HC and its supporting software.

http://www.avsforum.com/forum/26-home-th...guide.html

playercorefactory.xml

Only one software adjustment in Kodi is required to launch an external player. This involves the creation of a playercorefactory file. Instructions inside this file control the behavior of both external and internal players. Basic syntax for launching MPC-HC (64-bit) is as follows:

<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
</playercorefactory>

To create this file, copy and paste the text above into Notepad or Notepad++ and save the document as playercorefactory.xml. The resulting .xml must be stored in the userdata folder located at:

C:\Users\USERNAME\AppData\Roaming\Kodi\userdata

playercorefactory - Suggested Formatting

While the basic version of playercorefactory.xml will do the job of launching and closing MPC-HC, two additions (highlighted in bold below) can make the player behavior friendlier for typical usage:

<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|avi|divx|ogm|mp4|mov|m4v|flv|m2v|mpeg|mpg|mts|m2ts|vob|bdmv|iso" player="MPC-HC">
<rule protocols="http|https" player="MPC-HC"/>
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="VideoPlayer"/>
</rule>
</rules>

</playercorefactory>

<playcountminimumtime> This sets the amount of time (in seconds) a video must be played before its status is changed to “watched” in a user’s library. In the example above, setting the value to 1140 seconds means a video must be played at least 19 minutes before its watched status is changed. Such a number is a good middle ground for handling the runtime of both TV shows and movies. Unfortunately, playcountminimumtime is a universal value for all videos.

Tip: Users of MPC-HC should program a remote key to toggle watched status (W) in Kodi to address the need to change the watched status of library items as videos are stopped and resumed.

<rules action="prepend">
<rule filetypes="mkv|avi|divx|ogm|mp4|mov|m4v|flv|m2v|mpeg|mpg|mts|m2ts|vob|bdmv|iso" player="MPC-HC">
<rule protocols="http|https" player="MPC-HC"/>
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="VideoPlayer"/>
</rule>
</rules>


The final code snippet defines file compatibility with the new player. MPC-HC can be designated as the default player for all videos (video="true"). However, this would conflict with the proper playback of certain streaming content such as live TV. MPC-HC is capable of playing http|https streams from most video add-ons using LAV Splitter Source. All other protocols should be left to VideoPlayer.

Rules Section – Alternative

<rules action="prepend">
<rule video="true" player="MPC-HC">
<rule internetstream="true" player="VideoPlayer" />
</rule>
</rules>


Setting video to "true" and defining MPC-HC as the default player and VideoPlayer as the player of Internet streams is a an alternate way of dividing content between the two players. This eliminates the need to define every file format that is compatible with MPC-HC. Although, if this method is used, some stubborn streaming content will erroneously open with MPC-HC and all Internet sources will be played by VideoPlayer. That makes format #1 the preferred choice.

Launcher4Kodi Users: You must specify all external players in the program and set each to maintain focus during playback by selecting Focus External Player in the External Players tab. Otherwise, mouse and remote control will not work.

Windows 10 App Users: Users of the Kodi app found in the Windows 10 store will find the userdata folder is found in a different directory than standard Kodi.

In this case, place playercorefactory.xml here:

C:\Users\USERNAME\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCach​e\Roaming\Kodi\userdata.
Reply


Messages In This Thread
RE: HOW TO - Launch MPC-HC with madVR as an External Player - by Warner306 - 2014-11-23, 08:07


Logout Mark Read Team Forum Stats Members Help
HOW TO - Launch MPC-HC/MPC-BE with madVR as an External Player7
This forum uses Lukasz Tkacz MyBB addons.