External Player (MPC-HC) Not Working
#1
Hi,

I'm having an extremely frustrating problem which I hope you can help with. I have set up media player classic (latest version, following THIS guide). When opening .mkv files in MPC, they run as intended.

When I use XBMC to play .mkv files, they play fine as well.

When I use this script to launch an external player:

<playercorefactory>
<players>
<player name="mpc-hc" type="ExternalPlayer">
<filename>C:\Program Files (x86)\Media Player Classic - Home Cinema\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>

<rules action="prepend">
<rule name="AllVideo" video="true" player="mpc-hc"/>
</rules>
</playercorefactory>

MPC opens, but then says "failed to render file".

At first, I thought it was being directed to the wrong type of file (some fanart or something) by xbmc. However, after deleting everything except for the .mkv file in a movie folder, this error remains.

Any idea what's going on?
Reply
#2
Since you want MPC-HC to playback everything, you can try the codes below-

<playercorefactory>
<players>
<player name="MPCHC_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\Media Player Classic - Home Cinema\mpc-hc.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="*.*" player="MPCHC_Player"/>
</rules>
</playercorefactory>


>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
Reply
#3
Thank you for the reply. I have actually gone through several playercorefactory scripts, thinking there was some idiosyncrasy which was causing the problem I mentioned.

I have used the one you just posted, and the problem persists. Any other ideas?

Reply
#4
Where do you store the files? Locally, network share?

Any special characters in the path or filename?

Test this.

Create a batch-file in the root of C: called mpc.cmd

Add this to it:
Code:
@echo off
:: Echo path and name of file to console
echo %1
:: Echo path and name of file to C:\mpc.txt
>>C:\mpc.txt echo %1
pause
:: Try to start MPC-HC with the file
"C:\Program Files (x86)\Media Player Classic - Home Cinema\mpc-hc.exe" "%1"  /fullscreen

Then this as playercorefactory.xml

<playercorefactory>
<players>
<player name="MPCHC_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\mpc.cmd</filename>
<args>"{1}"</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="*.*" player="MPCHC_Player"/>
</rules>
</playercorefactory>

When the batch file pauses you can se what input MPC-HC gets as path and name.

Post the path and filename from mpc.txt here.
Reply
#5
Thank you, I will try this and report back. I was looking for something like this.
Reply

Logout Mark Read Team Forum Stats Members Help
External Player (MPC-HC) Not Working0