Kodi Community Forum

Full Version: Help with playing video through an external player
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using version 10.0 of XBMC on an iMac running OSX 10.6.6. I want to play all videos using an external player (MPlayer OSX Extended). I've read the wiki article about creating an playercorefactory.xml file, but I can't seem to get it working.

Here's the file I've created:

<playercorefactory>
<players>
<player name="MPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/Applications/Other Programs/MPlayer OSX Extended.app</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>

<player name="VLC" type="ExternalPlayer" audio="false" video="true">
<filename>/Applications/Other Programs/VLC.app</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>

<rules action="prepend">
<rule video="true" player=MPlayer">
<rule dvd="true" player="MPlayer" />
</rules>
</playercorefactory>

What am I doing wrong? I put the file in /Users/Me/Library/Application Support/XBMC/userdata/

Is my syntax incorrect somewhere? Should "/" in the file name be "\"? Should I be pointing to the app or somewhere inside the package contents?

Any help would be greatly appreciated.
I think you need to change your paths to;

/Applications/Other\ Programs/MPlayer\ OSX\ Extended.app

/Applications/Other\ Programs/VLC.app
So I need to replace the spaces with "\ "(backslash space)?

EDIT: That's not what I needed to do. I was missing a " in <rule video="true" player="MPlayer"> and I needed to point at a file within the package contents.

So here's my xml file now:

<playercorefactory>
<players>
<player name="MPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>/Applications/Other Programs/MPlayer OSX Extended XBMC.app/Contents/MacOS/MPlayer OSX Extended</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>

<player name="VLC" type="ExternalPlayer" audio="false" video="true">
<filename>/Applications/Other Programs/VLC.app/Contents/MacOS/VLC</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>

<rules action="prepend">
<rule video="true" player="VLC" />
</rules>
</playercorefactory>

The external players now show up under "Play using..." and when I select one of the players, it opens but doesn't play the file. This is the what I get in XBMC:
Image
Notice that it shows the video playing the top left corner, but it's only 1 second long (no video actually plays, however).

Next is the error VLC gives me:
Image
Sorry about the small size. If you can't read it, it says "File reading failed, VLC could not open the file "/close." Your input can't be opened, VLC is unable to open the MRL 'file:///close'. Check the log for details."

When I click "Show details," I get this debug log.
Im bumping this. I am using ubuntu 10.04 but I am getting the same error when I try running dvd with vlc from xbmc.

ANyone have any new information on this subject?

Thanks