MPC-HC is a DirectX-based video player which has both it's own built-in 'MPC' decoder as well as access to any installed DirectX codec, e.g. Windows 7's DTV decoder.
Along the way I found a lot of gotchas in XBMC's support for external players, so I decided to write it up as this new post.
________
NOTES
- You can't simply edit the original configuration file in-place
- If not done correctly the configuration file will make MPC-HC the default player
- I haven't been able to make this work on Windows XP without MPC-HC becoming the default player -- regardless of the rules I specify.
- The 'rule name' check also applies to the folder name, i.e., a 1080p mkv located in a folder called 'converted from 1080i' will still playback with MPC-HC!
- The formatting is completely unforgiving (and arbitrary)! For instance, you MUST MUST MUST include the extra / character at the end of each new rule you add.
- Locate the 'playercorefactory.xml' in the folder,
<programs>\XBMC\system - Copy it to your personal folder,
<users>\AppData\Roaming\XBMC\Userdata - Edit the new .xml to add the 2 sections below
<player name="MPC-HC" type="ExternalPlayer" audio="true" video="true">*** Add this to the '<rules>' section
<filename>C:\Program Files\Media Player Classic - Home Cinema\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<!-- Play "1080i" and *.m2ts with MPC-HC --> <rules action="prepend">
<rule filetypes="m2ts" player="MPC-HC"/>
<rule name="1080i" player="MPC-HC"/>
FINAL NOTE - Make sure it's inserted before the final </rules> and </playercorefactory> commands!
___________
UPDATE: I found that I had to specify <hidexbmc>True else it interfered with MPC-HC. I've updated the example to use this setting.
___________
No comments:
Post a Comment