Win HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players ISO Menus
(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?
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.
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.

So, following the code you provide in your post, what should I include in the MPCBE3DISO.bat? Would it be just something like the part to play mpls?

Thanks again for your help.

Regards,

Bart


EDIT: I re-created my playercorefactory.xml, following your advice, as follows:

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>

and I created an MPCBE3DISO.bat like this:

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

Unfortunately, the issue persists.  What version of Kodi are you using? I think I will try a different version to see if that has an impact on the issue.



Regards,

Bart
Reply


Messages In This Thread
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:20
RE: Kodi 3D Guide - by brazen1 - 2015-06-15, 22:29
RE: Kodi 3D Guide - by michaelsammler - 2015-06-22, 00:38
RE: Kodi 3D Guide - by brazen1 - 2015-06-23, 17:15
RE: Kodi 3D Guide - by michaelsammler - 2015-06-24, 02:23
RE: Kodi 3D Guide - by brazen1 - 2015-06-24, 17:22
RE: Kodi 3D Guide - by michaelsammler - 2015-06-25, 09:26
RE: HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players - by bsoriano - 2018-01-09, 04:45
HELP! - by brazen1 - 2018-08-22, 18:50
RE: HELP! - by zxaura1 - 2018-08-24, 09:32
Problem with DXVA scaling videos - by obstler - 2018-10-27, 10:13
Logout Mark Read Team Forum Stats Members Help
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players ISO Menus39