2019-05-02, 13:29
I followed the guide to enable playing ISO files on my Windows HTPC, but I am running into an issue where the ISO file isn't actually being mounted, so MPC-HC continues to error out "cannot render file" and I don't see the ISO being mounted in the Windows Explorer either. Here is the BAT file and the PCF file respectively. Please take a look and let me know where the issue is:
PCF file:
<playercorefactory>
<players>
<player name="isoPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\XYZ\AppData\Roaming\Kodi\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<forceontop>false</forceontop>
<playcountminimumtime>1140</playcountminimumtime>
</player>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<forceontop>false</forceontop>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filetypes="iso" player="isoPlayer"/>
<rule filetypes="mkv|avi|bdmv|mpls|m2ts" player="MPC-HC"/>
<rule internetstream="true" player="VideoPlayer"/>
</rules>
</playercorefactory>
PlayISO.bat file:
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)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
timeout /t 3
"C:\Program Files\MPC-HC\mpc-hc64.exe" A:
"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\MPC-HC\mpc-hc64.exe" "%pth%" exit
GOTO end
:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files\MPC-HC\mpc-hc64.exe" %pth% exit
GOTO end
:end
exit
Where am I going wrong? Please help.
PCF file:
<playercorefactory>
<players>
<player name="isoPlayer" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\XYZ\AppData\Roaming\Kodi\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<forceontop>false</forceontop>
<playcountminimumtime>1140</playcountminimumtime>
</player>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<forceontop>false</forceontop>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filetypes="iso" player="isoPlayer"/>
<rule filetypes="mkv|avi|bdmv|mpls|m2ts" player="MPC-HC"/>
<rule internetstream="true" player="VideoPlayer"/>
</rules>
</playercorefactory>
PlayISO.bat file:
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)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
timeout /t 3
"C:\Program Files\MPC-HC\mpc-hc64.exe" A:
"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\MPC-HC\mpc-hc64.exe" "%pth%" exit
GOTO end
:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files\MPC-HC\mpc-hc64.exe" %pth% exit
GOTO end
:end
exit
Where am I going wrong? Please help.