2017-11-05, 18:18
I am setting Kodi up to use external players for almost all of the file types I have, including a 3D mkv I had to create , as the iso did not play - ( tmt ceased to function and shutdown ) , the mkv works , from what I can see. Correct me if I am wrong but as it came from a bluray - it will still be encoded in MVC even if in a MKV container ( hence the addition to the playerfactory and 3diso.bat.
I have included payercorefactory and 3dis.bat files below . I think I undersatnd how it is put together , but want verification before I put it to work . There are a couple of lines of code I am not sure of - regarding the path variable for the 3dmkv. Do I have this correct , and if not - what will work? thanks in advance for any assistance given
playercorefactory:
3diso.bat
I have included payercorefactory and 3dis.bat files below . I think I undersatnd how it is put together , but want verification before I put it to work . There are a couple of lines of code I am not sure of - regarding the path variable for the 3dmkv. Do I have this correct , and if not - what will work? thanks in advance for any assistance given
playercorefactory:
Code:
<playercorefactory>
<players>
<player name="3D" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\jeff\AppData\Roaming\Kodi\userdata\PlayISO3D.bat</filename>
<args>"{1}"</args>
<hidekodi>true</hidekodi>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>
</player>
<player name="2D" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\jeff\AppData\Roaming\Kodi\userdata\PlayISO2D.bat</filename>
<args>"{1}"</args>
<hidekodi>true</hidekodi>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>
</player>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>e:\win7\Program Files\MPC-HC\mpc-hc64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidekodi>false</hidekodi>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|avi" player="VideoPlayer"/>
<rule filename=".*.3D.iso" player="3D"/>
<rule filename=".*3d.mkv*" protocols="*3d.mkv*" player="3D"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="2D"/>
<rule filetypes="mkv|ts|" player="MPC-HC"/>
<rule filetypes="strm" player="VideoPlayer"/>
</rules>
</playercorefactory>
3diso.bat
Code:
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 next)
:next
Set file=%1
Set dummy=%file:bdmv=%
IF NOT %dummy% == %file% (GOTO playbdmv) ELSE (goto playmkv)
:playiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
timeout /t 10
"e:\win7\Program Files (x86)\arcsoft\TotalMedia Theatre 5\uMCEPlayer5.exe" A: exit
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
"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 (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
"e:\win7\Program Files (x86)\arcsoft\TotalMedia Theatre 5\uMCEPlayer5.exe" "%pth%" exit
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
GOTO end
:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
"e:\win7\Program Files (x86)\arcsoft\TotalMedia Theatre 5\uMCEPlayer5.exe" %pth% exit
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
GOTO end
:playmkv
@echo off
set pth=%1
set pth=%pth:3D.MKV\3d.mkv=%
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
timeout /t 10
"e:\win7\Program Files (x86)\arcsoft\TotalMedia Theatre 5\uMCEPlayer5.exe" %pth% exit
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
goto end
:end
exit