Kodi Community Forum
Another External Player Code, but Very Simple to Setup - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Another External Player Code, but Very Simple to Setup (/showthread.php?tid=116724)



RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-14

Anyone there or is this thread closedHuh


RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-14

After hours of messing around I have discovered the issue is with DVDFab which no longer appears to mount the image. I am now using the Elaborate Bytes virtual drive which mounts the image but sometimes results in XBMC minimising to the desktop and shows a command prompt for a few seconds before PowerDVD starts...

C:\Program Files (x86)\XBMC\GO TO unmounted
C:\Program Files (x86)\XMBC>IF EXIST E:\BDMV\. GOTO mounted

Is there any way to prevent this annoyance from occuring??


RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-15

Ok, this is my last update in the hope that someone will offer some advice on this forum. The code still doesn't work correctly. The ISO gets mounted but the windows command prompt continuously loops in the background. When I close PowerDVD the windows command prompt has to be closed before it returns to XMBC. Still looking for some help please from this forum :-(


RE: Another External Player Code, but Very Simple to Setup - bruce7373 - 2014-08-16

OK, keeping in mind I know next to nothing about writing this kind of code, looking at this line:

IF EXIST E:\BDMV\. GOTO mounted

Is that a period after "BDMV\" and should it be there?


RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16

Hi Bruce, I've tried everything I can but still no good. I've just downloaded a trial version of TMT to see if that made any difference. Again the image gets mounted but excatly the same issue with the 'looping' windows command message.

Come on people, I thought this was a forum to help people like me. That's why I joined! Someone must have an idea what is wrong with the code? ;-(


RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16

i will try and find a moment today to test iso mounting as I've not used it for a while and then post my code up but i believe it does work from memory


RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16

Thanks Orby really appreciate some help. I've been trying for hours to fix this. I need to use the external player for my 3D Blu-rays so I thought that I may as well use for all my ISO's (Dvd's & Blurays).


RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16

had a quick play and i cannot get the iso to mount at the moment


RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16

for me at the moment and i'm not sure why it is ignoring my iso rule and is using my BDMV player/bat file


RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16

well i had mine all working as wanted, just about to post my files and now it's ignoring the playiso rule again and using BDMV.bat instead of playiso.bat for ISO's


RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16

okay starting from scratch as i couldn't get my old set up working so tested yours i changed the player core factory to

Code:
<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\************\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
</rules>
</playercorefactory>

any my play iso is this
Code:
@echo off
rem you can place your PlayISO file in \Roaming\XBMC\userdata\
rem you need to put the correct VCDMount drive letter in the command below

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)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.exe" F:
"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)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe" "%pth%" exit
GOTO end

:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe" %pth% exit
GOTO end

:end
exit


all working and much easier to manage than the old way i used to do it


RE: Another External Player Code, but Very Simple to Setup - halfe - 2014-08-16

Now i got a code thats working great with PDVD14.

PlayBD.bat
Code:
@echo off
rem you can place your PlayDisc file in \Roaming\XBMC\userdata\

"C:\Program Files (x86)\CyberLink\PowerDVD14\PDVDLP.exe" AUTOPLAY BD G:\

PlayDVD.bat

Code:
@echo off
rem you can place your PlayDisc file in \Roaming\XBMC\userdata\

"C:\Program Files (x86)\CyberLink\PowerDVD14\PDVDLP.exe" AUTOPLAY DVD G:\

playercorefactory

Code:
<playercorefactory>
<players>
<player name="BD_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\XBMC\AppData\Roaming\XBMC\userdata\playBD.bat</filename>
<args>"{1}" /fullscreen</args>
<forceontop>false</forceontop>
<hidexbmc>false</hidexbmc>
<hidecursor>false</hidecursor>
</player>
<player name="DVD_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\XBMC\AppData\Roaming\XBMC\userdata\playDVD.bat</filename>
<args>"{1}" /fullscreen</args>
<forceontop>false</forceontop>
<hidexbmc>false</hidexbmc>
<hidecursor>false</hidecursor>
</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="false">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD14\PowerDVD14.exe</filename>
<args>"{1}" /fullscreen</args>
<forceontop>false</forceontop>
<hidexbmc>false</hidexbmc>
<hidecursor>false</hidecursor>
</player>
</players>
<rules action="prepend">
<rule bd="true" player="BD_Player"/>
<rule dvd="true" player="DVD_Player"/>
</rules>
</playercorefactory>


What i'm missing now is a way to make PDVD exit when i press stop on my remote..


RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16

(2014-08-16, 17:27)orby Wrote: okay starting from scratch as i couldn't get my old set up working so tested yours i changed the player core factory to

Code:
<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\************\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
</rules>
</playercorefactory>

any my play iso is this
Code:
@echo off
rem you can place your PlayISO file in \Roaming\XBMC\userdata\
rem you need to put the correct VCDMount drive letter in the command below

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)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.exe" F:
"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)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe" "%pth%" exit
GOTO end

:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe" %pth% exit
GOTO end

:end
exit


all working and much easier to manage than the old way i used to do it


Orby I modified the code slightly so that I use PowerDVD14 and now works like a gem. You're a star! ;-) I've just got to add a bit of extra code so that I can launch three videos using DVDFab Media Player. I guess I can add this in the Playercorefactory settings under Filenames?

This is the code which now works;


Playercorefactory

<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Animal\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
</rules>
</playercorefactory>

PlayISO.Bat

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)\CyberLink\PowerDVD14\Movie\PowerDVD Cinema\PowerDVDCinema.exe" E:
"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)\CyberLink\PowerDVD14\Movie\PowerDVD Cinema\PowerDVDCinema.exe" "%pth%" exit
GOTO end

:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%

"C:\Program Files (x86)\CyberLink\PowerDVD14\Movie\PowerDVD Cinema\PowerDVDCinema.exe" %pth% exit
GOTO end

:end
exit


I also found that completely uninstalling XMBC seems to help.

Thanks again Orby, much appreciated ;-)


RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16

No worries glad it's working Smile

i'm not sure which would be the correct way to add different file types i let XBMC handle MKV's etc i may look into a different player to handle them though if i get a chance

but it's either expand what you already have and include the file types in the rule inside playercorefactory and add the info to playiso.bat or create a new player and rule in playercore and create a new .bat file to call upon


RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16

(2014-08-16, 23:25)orby Wrote: No worries glad it's working Smile

i'm not sure which would be the correct way to add different file types i let XBMC handle MKV's etc i may look into a different player to handle them though if i get a chance

but it's either expand what you already have and include the file types in the rule inside playercorefactory and add the info to playiso.bat or create a new player and rule in playercore and create a new .bat file to call upon


Funnily enough I have just done the above and it kind of works. XBMC now gives me the option to select either PowerDVD or DVDFab as my external player. These both work however is it possible that I can configure the default player as DVDFab just for specific videos?

This is the code I've used for another external player (i've created a separate DVDFab.bat file). You will see I have one video at the moment (Men In Black 3) as a specific filename that I am trying to launch automatically using DVDFab but I have to select in XMBC.


<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Animal\AppData\Roaming\XBMC\userdata\PowerDVD.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
</player>
<player name="DVDFab" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Animal\AppData\Roaming\XBMC\userdata\DVDFab.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="PowerDVD"/>
<rule filenames="Men In Black 3" player="DVDFab"/>
</rules>
</playercorefactory>


It's not the end of the world but it would be useful.