Log in

View Full Version : Kodi Playercorefactory question


THX-UltraII
13th October 2015, 11:37
Guys, I managed to get it working that MPC-BE plays my .m2ts (2D) movies as external player. What do I need to add to my playercorefactory to make it work so it keeps running my 2D movies (.m2ts files) with MPC-HC and my .ISO (3D) movies with PowerDVD? My playercorefactory now looks like this:

<playercorefactory>

<players>

<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">

<filename>C:\Program Files (x86)\MPC-BE\mpc-be.exe</filename>

<args>"{1}" /fullscreen /close</args>

<hidexbmc>false</hidexbmc>

<hideconsole>false</hideconsole>

<warpcursor>none</warpcursor>

</player>

</players>

<rules action="prepend">

<rule filetypes="mkv|m2ts|mov|bdmv|mpls" player="MPC-BE"/>

</rules>

</playercorefactory>

huhn
13th October 2015, 17:26
there is no way to know if a m2ts is 3D or not by just looking at the file name.

ashlar42
18th October 2015, 15:03
If I understand correctly and you have ISOs only for 3D Movies, you could use something like:

<playercorefactory>
<players>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\MPC-BE\mpc-be.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\(YOUR DETAILS HERE)\AppData\Roaming\Kodi\userdata\PowerDVD.bat</filename>
<args>"{1}"</args>
<hidekodi>false</hidekodi>
</player>
</players>

<rules action="prepend">
<rule filetypes="mkv|m2ts|mov|bdmv|mpls" player="MPC-BE"/>
<rule filetypes="iso" player="PowerDVD"/>
</rules>
</playercorefactory>


Where PowerDVD.bat should be similar to this:

Set file=%1
Set dummy=%file:iso=%
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\Cyberlink\PowerDVD14\PowerDVD.exe" E:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
exit

Check here http://forum.kodi.tv/showthread.php?tid=43511&pid=2006211#pid2006211, I might have butchered the bat file by trying to make it work just for ISOs.