2018-01-08, 21:02
Yes, that's what I've been using for a while. The other color space method works as well.
(2018-01-06, 05:08)brazen1 Wrote: This will open PowerDVD for 2D iso's so you have menus. Kodi now has menus also btw.
This will open MPC-BE for UHD HDR's.
This will open Kodi internal video player for everything else.
You didn't want 3D so I didn't include anything.
You can still manually select any player using the 'play using' tab after pressing 'C' aka context menu.
Code:<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-BE\mpcbe.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filename=".*HDR10.*|.*HDR.*|.*hdr.*" player="MPC-BE"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="PowerDVD"/>
</rules>
</playercorefactory>
This is the same as above but includes 3D opened with PowerDVD. As stated above, you can still manually select a different player.
Code:<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\YOURUSERNAMEGOESHERE\AppData\Roaming\Kodi\userdata\PDVD3DISO.bat</filename>
<playcountminimumtime>1140</playcountminimumtime>
</player>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\YOURUSERNAMEGOESHERE\AppData\Roaming\Kodi\userdata\MPCBE3DISO.bat</filename>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filename=".*HDR10.*|.*HDR.*|.*hdr.*" player="MPC-BE"/>
<rule filetypes="iso|bdmv|mpls|m2ts|.*3D.*|.*.3D.iso|3D.*" player="PowerDVD"/>
</rules>
</playercorefactory>
(2018-01-06, 04:38)bsoriano Wrote: Hello,@brazen1 & @bsoriano :
I think you should just leave the filename rule for MPC and remove the filetype part, since it is the same as the rule for PowerDVD, and it is evaluated last, so that's the one Kodi will use.
Please let me know how it goes, since I need to do something quite similar to this. Thanks.
Regards,
Bart
<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-BE x64\mpc-be64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filename=".*4K.*|.*4K.*|.*4K.*|*4K*.*" player="MPC-BE"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="PowerDVD"/>
</rules>
</playercorefactory>
(2018-01-08, 23:15)brazen1 Wrote: Working perfectly here. Maybe someone else will confirm.I hear you brazen1 - I'm as confounded as fathomable. It should be working, but it isn't. I don't see any logical mistake in the code.
I see you altered the code and it looks like it should work. At the very least PDVD should be opening all of those file types and Kodi everything else but a file name containing HDR.... not MPC even with your alteration. You have something else screwy directing all files to be played back using MPC. Maybe your Windows default player action? I couldn't tell you? Only you know how your system is setup. The only logical thing that makes any sense is if you have 4K as part of every file name for every title you have or at least tested but I doubt that. I also know how easy it is to have a bunch of playercorefactory.xml's on hand renaming them as you go. Are you sure this one is named proper and is indeed the one in use? Give some examples of your file names and how they fail to open the proper default player. Maybe we can see something.
<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="iso|bdmv|mpls|m2ts" player="PowerDVD"/>
</rules>
</playercorefactory>
<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-BE x64\mpc-be64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filename="*(4K).*|.*4K.*|.*4K.*|.*4k.*" player="MPC-BE"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="PowerDVD"/>
</rules>
</playercorefactory>
(2018-01-08, 23:24)bsoriano Wrote: luci5r,Changing the code & checking right now!!
I am also not sure of what is going on in your case. I think you can (but this should not affect what you are seeing) change the line in the xml with the rule for MPC to this:
<rule filename=".*4K.*" player="MPC-BE"/>
Since it is not needed to have multiple times, and also there is an error in the last 4K entry in your line, since there should be a period (.) before the asterisk (*) before 4K as well.
Again, I don't think this will change your current situation, but will be a syntactically shorter and correct xml file.
I know this might sound like a dumb question, but are you sure (besides what @brazen1 pointed out about Windows default player for the type of files your are playing) you have the xml in the right place?
Regards,
Bart
(2018-01-08, 23:24)bsoriano Wrote: luci5r,Bart,
I am also not sure of what is going on in your case. I think you can (but this should not affect what you are seeing) change the line in the xml with the rule for MPC to this:
<rule filename=".*4K.*" player="MPC-BE"/>
Since it is not needed to have multiple times, and also there is an error in the last 4K entry in your line, since there should be a period (.) before the asterisk (*) before 4K as well.
Again, I don't think this will change your current situation, but will be a syntactically shorter and correct xml file.
I know this might sound like a dumb question, but are you sure (besides what @brazen1 pointed out about Windows default player for the type of files your are playing) you have the xml in the right place?
Regards,
Bart
<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD17\PowerDVD.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-BE x64\mpc-be64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filename=".*4K.*" player="MPC-BE"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="PowerDVD"/>
</rules>
</playercorefactory>
(2018-01-09, 04:19)brazen1 Wrote: Yeah, you're deviating from working code trying to accomplish what has already been accomplished using a different mouse trap. Why mess with a good thing?Thanks brazen1! You are correct, since I don't use 3D or iso with menus, I was doing away with PDVD (which I don't own), and just want to use MPC-BE to play files which have 4K in the name. No other files which are not 4K rips have 4K in the name.
1. You're trying to add 2 separate rules into 1.
2. You're trying to do it on the same line of code instead of new line.
3. 4K is not a file type.
4. An mkv falls under too many commons.
It looks like you're trying to eliminate PDVD, open 4k.mkv's with MPC-HC and everything else plays using Kodi videoplayer. Make sure 4k is in the title of all your 4k.mkv's and doesn't appear in any others.
No idea what the name your player MPC and remove the -BE is all about? It's just a name.
xml:<playercorefactory>
<players>
<player name="MPC-BE" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\bsori\AppData\Roaming\Kodi\userdata\MPCBE3DISO.bat</filename>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filename=".*4K.*" player="MPC-BE"/>
</rules>
</playercorefactory>
cpp:Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto next)
:next
Set file=%1
Set dummy=%file:mpls=%
IF NOT %dummy% == %file% (GOTO plaympls) ELSE (goto playbdmv)
:playiso
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
timeout /t 2
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files\MPC-BE x64\mpc-be64.exe" A:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end
:plaympls
set pth=%1
set pth=%pth:~1,-25%
"C:\Program Files\MPC-BE x64\mpc-be64.exe" "%pth%" exit
GOTO end
:playbdmv
set pth=%1
"C:\Program Files\MPC-BE x64\mpc-be64.exe" %pth% exit
GOTO end
:end
exit
(2018-01-09, 05:05)brazen1 Wrote: I've been editing here and the guide in other pages. Look at the revised code above again. You guys are too quick LOL! I should do all the editing on desktop but I just do it here. Sometimes it takes me a half hour or so. Bare with me. In this case, I don't think you need any .bats, just the xml. Thanks for testing. I'm not doing it, just putting up the various code.Thanks brazen1, I don't see any changes in the code you posted? Did you change the code in the guide?