Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
how do i set up vlc as external player in kodi
#1
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
Reply
#2
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
Reply
#3
that's a bit complicated for me.....I'm not very tech savy.
I'll give it a go though,
thanks.
Reply
#4
(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
Reply
#5
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.
Reply
#6
(@ 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.
Reply
#7
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.
Reply
#8
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>
Reply
#9
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)
Reply
#10
(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?
Reply
#11
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).
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
how do i set up vlc as external player in kodi0