Kodi Community Forum
how do i set up vlc as external player in kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: how do i set up vlc as external player in kodi (/showthread.php?tid=215394)



how do i set up vlc as external player in kodi - Allycuk - 2015-01-18

hi,I am new to kodi and would like to set up vlc as external player but don't know how to set up playercorefactory.xml.
I searched online for a playercorefactory.xml and found one which i tried but it didn't work and most of the ones I have found online are written for xmbc can anyone show me where I can get an already written file for vlc?
any help appreciated.
thanks


RE: how do i set up vlc as external player in kodi - k4sh1n - 2015-01-18

You can use this as a base:
PHP Code:
<playercorefactory>
 <
players>
   <
player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <
filename>C:\Program Files\MPC-HC\mplayerc.exe</filename>
     <
args>"{1}" /fullscreen /close</args>
     <
hidexbmc>false</hidexbmc>
     <
hideconsole>false</hideconsole>
     <
warpcursor>none</warpcursor>
   </
player>
 </
players>
 <
rules action="prepend">
   <
rule filetypes="mkv" filename=".*720p.*" player="MPC-HC"/>
 </
rules>
</
playercorefactory

and amend to the .xml file rules as required

See link: External players


RE: how do i set up vlc as external player in kodi - Allycuk - 2015-01-19

that's a bit complicated for me.....I'm not very tech savy.
I'll give it a go though,
thanks.


RE: how do i set up vlc as external player in kodi - david1958 - 2015-01-19

(2015-01-18, 11:26)k4sh1n Wrote: You can use this as a base:
PHP Code:
<playercorefactory>
 <
players>
   <
player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <
filename>C:\Program Files\MPC-HC\mplayerc.exe</filename>
     <
args>"{1}" /fullscreen /close</args>
     <
hidexbmc>false</hidexbmc>
     <
hideconsole>false</hideconsole>
     <
warpcursor>none</warpcursor>
   </
player>
 </
players>
 <
rules action="prepend">
   <
rule filetypes="mkv" filename=".*720p.*" player="MPC-HC"/>
 </
rules>
</
playercorefactory

and amend to the .xml file rules as required

See link: External players

i got one question and i have a thread started also on this here is what i got in for the playlist

Code:
<?xml version="1.0" encoding="UTF-8"?>
<playercorefactory>
  <players>
    <!-- These are compiled-in as re-ordering them would break scripts
    The following aliases may also be used:
      audiodefaultplayer, videodefaultplayer, videodefaultdvdplayer
    <player name="DVDPlayer" audio="true" video="true" />
    <player name="DVDPlayer" /> placeholder for MPlayer
    <player name="PAPlayer" audio="true" />
    -->
  </players>

  <rules name="system rules">
    <rule name="rtv" protocols="rtv" player="DVDPlayer" />
    <rule name="hdhomerun/myth/mms/udp" protocols="hdhomerun|myth|cmyth|mms|mmsh|udp" player="DVDPlayer" />
    <rule name="lastfm/shout" protocols="lastfm|shout" player="PAPlayer" />
    <rule name="rtmp" protocols="rtmp" player="videodefaultplayer" />

    <!-- dvdplayer can play standard rtsp streams -->
    <rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)"  player="PAPlayer" />

    <!-- Internet streams -->
    <rule name="streams" internetstream="true">
      <rule name="aacp/sdp" mimetypes="audio/aacp|application/sdp" player="DVDPlayer" />
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
    </rule>

    <!-- DVDs -->
    <rule name="dvd" dvd="true" player="DVDPlayer" />
    <rule name="dvdimage" dvdimage="true" player="DVDPlayer" />

    <!-- Only dvdplayer can handle these normally -->
    <rule name="sdp/asf" filetypes="sdp|asf" player="DVDPlayer" />

    <!-- Pass these to dvdplayer as we do not know if they are audio or video -->
    <rule name="nsv" filetypes="nsv" player="DVDPlayer" />

    <!-- pvr radio channels should be played by dvdplayer because they need buffering -->
    <rule name="radio" filetypes="pvr" filename=".*/radio/.*" player="DVDPlayer" />
  </rules>
</playercorefactory>

per the code you posted

PHP Code:
<playercorefactory>
 <
players>
   <
player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <
filename>C:\Program Files\MPC-HC\mplayerc.exe</filename>
     <
args>"{1}" /fullscreen /close</args>
     <
hidexbmc>false</hidexbmc>
     <
hideconsole>false</hideconsole>
     <
warpcursor>none</warpcursor>
   </
player>
 </
players>
 <
rules action="prepend">
   <
rule filetypes="mkv" filename=".*720p.*" player="MPC-HC"/>
 </
rules>
</
playercorefactory


are you saying to replace the original with this script?

tks

david


RE: how do i set up vlc as external player in kodi - k4sh1n - 2015-01-20

There is no original playercorefactory.xml file in the userdata folder. To customize playback behaviour, users need to create an extra playercorefactory.xml file inside their userdata folder.


RE: how do i set up vlc as external player in kodi - k4sh1n - 2015-01-20

(@ Allycuk)

PHP Code:
<playercorefactory>
  <
players>
    <
player name="VLC" type="ExternalPlayer">
     <
filename>C:\Program Files (x86)\VideoLAN\VLC\vlc.exe</filename>
     <
args>"{1}"</args>
     <
hidexbmc>false</hidexbmc>
     <
hideconsole>false</hideconsole>
     <
warpcursor>none</warpcursor>
    </
player>
  </
players>

  <
rules action="prepend">
    <
rule name="Playtype" filetype="mkv|mp4|avi" player="VLC"/>
  </
rules>
</
playercorefactory

Here is a sample of one with vlc, the fileype rules are which files you want to be played via vlc.


RE: how do i set up vlc as external player in kodi - Allycuk - 2015-01-21

thanks very much mate,your a diamond.
I'm guessing I just change where it says xbmc to kodi...i'll give that a try today.


RE: how do i set up vlc as external player in kodi - hd789 - 2015-04-22

Thank you k4sh1n!

I'm using Ubuntu Mate 14.10.

Put this in "~/.kodi/userdata/playercorefactory.xml" and it works with Kodi 14:

Code:
<playercorefactory>
    <players>
        <player name="VLC" type="ExternalPlayer" audio="false" video="true">
            <filename>/usr/bin/vlc</filename>
            <args>"{1}" -f --video-on-top</args>
            <hidexbmc>true</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
        </player>
    </players>

    <rules action="prepend">
        <rule name="Playtype" filetype="mkv|mp4|avi" player="VLC"/>
    </rules>
</playercorefactory>



RE: how do i set up vlc as external player in kodi - vtwin0001 - 2016-02-21

Hello

this is very interesting...

how can I change the rule so it plays those blurays I pop into the bluray player? (assuming my blurays are not encrypted)


RE: how do i set up vlc as external player in kodi - redkoatz - 2019-07-31

(2016-02-21, 00:48)vtwin0001 Wrote: Hello

this is very interesting...

how can I change the rule so it plays those blurays I pop into the bluray player? (assuming my blurays are not encrypted)

I'm not following this at all, but want VLC to be the default player for videos.

First. There doesn't seem to be a "user data" folder. There's an addon data though?

Second what would I do with those bunches of text?
I gather I'm putting them into a file called "playercorefactory.xml" and dumping it into some folder? But why are there so many bunches of text. Which shall I use and where does it go?


RE: how do i set up vlc as external player in kodi - DarrenHill - 2019-07-31

The addon_data folder should be in the userdata (wiki) folder.

For the other question, see the wiki page on playercorefactory.xml (wiki) for more info. The file should be created and placed in the userdata (wiki) folder, as noted above (it's an xml file, which is basically just a text file with a .xml ending).