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 - ltm82 - 2013-02-18

I would like to start pdvd12 using xbmc as frontend but i get a strange behavior.

Could you please help me to understand how xbmc (frodo) passes the index.bdmv path of bdmv folder to an external player?

in my case i get a problem because it passes a wrong bdmv file name. for example it passes randomly this file name sound.bdmv or movieobject.bdmv.

thanks for your help

ltm82


RE: Another External Player Code, but Very Simple to Setup - Uthred - 2013-02-19

Having a problem, set up MPC-HC as my external player for video files but for some reason its also opening when I try and play an mp3?

<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\MPC-HC\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /play /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>

<rules action="prepend">
<rule filename=".*mkv.*" player="MPC-HC"/>
<rule filename=".*m2ts.*" player="MPC-HC"/>
<rule filename=".*mts.*" player="MPC-HC"/>
<rule filename=".*ts.*" player="MPC-HC"/>
<rule filename=".*avi.*" player="MPC-HC"/>
<rule filename=".*mp4.*" player="MPC-HC"/>
<rule internetstream="false" player="MPC-HC" />
</rules>
</playercorefactory>


RE: Another External Player Code, but Very Simple to Setup - bluray - 2013-02-20

(2013-02-18, 23:10)ltm82 Wrote: I would like to start pdvd12 using xbmc as frontend but i get a strange behavior.

Could you please help me to understand how xbmc (frodo) passes the index.bdmv path of bdmv folder to an external player?

in my case i get a problem because it passes a wrong bdmv file name. for example it passes randomly this file name sound.bdmv or movieobject.bdmv.

thanks for your help

ltm82
Sorry, I haven't been in here very often. Have you try xml and bat files in post #1610. It should work with ISO and BDMV.....the bat file in post #1610 should check for what file Frodo is sending (in this case, it can be ISO, BDMV or MPLS).......

(2013-02-19, 23:30)Uthred Wrote: Having a problem, set up MPC-HC as my external player for video files but for some reason its also opening when I try and play an mp3?

<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\MPC-HC\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /play /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>

<rules action="prepend">
<rule filename=".*mkv.*" player="MPC-HC"/>
<rule filename=".*m2ts.*" player="MPC-HC"/>
<rule filename=".*mts.*" player="MPC-HC"/>
<rule filename=".*ts.*" player="MPC-HC"/>
<rule filename=".*avi.*" player="MPC-HC"/>
<rule filename=".*mp4.*" player="MPC-HC"/>
<rule internetstream="false" player="MPC-HC" />
</rules>
</playercorefactory>
You can try the simpler rules below-

<rules action="prepend">
<rule filename="m2ts|mkv|avi|ts|mp4|mts" player="MPC-HC"/>
<rule internetstream="false" player="MPC-HC" />
</rules>


RE: Another External Player Code, but Very Simple to Setup - ltm82 - 2013-02-20

(2013-02-20, 18:01)bluray Wrote:
(2013-02-18, 23:10)ltm82 Wrote: I would like to start pdvd12 using xbmc as frontend but i get a strange behavior.

Could you please help me to understand how xbmc (frodo) passes the index.bdmv path of bdmv folder to an external player?

in my case i get a problem because it passes a wrong bdmv file name. for example it passes randomly this file name sound.bdmv or movieobject.bdmv.

thanks for your help

ltm82
Sorry, I haven't been in here very often. Have you try xml and bat files in post #1610. It should work with ISO and BDMV.....the bat file in post #1610 should check for what file Frodo is sending (in this case, it can be ISO, BDMV or MPLS).......

I have some question for you here:

http://forum.xbmc.org/showthread.php?tid=43511&page=127

Could you please explain me?

thanks for your help

ltm82


RE: Another External Player Code, but Very Simple to Setup - Maiisoh - 2013-02-22

After some research I decided to stay with TMT 5 only. I changed the setting in XBMC to choose so that I could choose whether to play files directly from XBMC or through TMT 5. Everything is working except for playing ISO's through the ISO_BDMV_Player. Here is my playcorfactory file and PlayISO file. Could anyone please tell me what is keeping my ISO files from playing through the ISO_BDMV_Player. Thanks and any help is greatly appreciated.

Playcorefactory File

<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\HTPC - Great Room\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>True</hidexbmc>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>

</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\HTPC - Great Room\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>True</hidexbmc>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>

</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe</filename>
<args>"{1}"</args>
<hidexbmc>True</hidexbmc>
<hideconsole>false</hideconsole>
<forceontop>false</forceontop>

</player>
</players>

<rules action="prepend">
<!-- Bluray ISO -->
<rule filetypes="iso" player="ISO_BDMV_Player"/>
<!-- Multiple files -->
<rule filetypes="m2ts|mkv|avi|ts" player="Universal_Player"/>
<!-- Bluray Disc -->
<rule filetypes="bd|ifo" player="Disc_Player"/>
<!-- 3d files -->
<rule filetypes="mkv|avi" filename=".*3d." player="Universal_Player"/>
<rule Filetypes="iso" filename=".*3d." player="ISO_BDMV_Player"/>

</rules>
</playercorefactory>

PlayISO File

@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 5\uTotalMediaTheatre5.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)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.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 5\uTotalMediaTheatre5.exe" %pth% exit
GOTO end

:end
exit


RE: Another External Player Code, but Very Simple to Setup - acejh1987 - 2013-02-23

Maiisoh - If you are using Frodo, you will need to add mpls and bdmv filetypes to the ISO_BDMV_Player rule.


RE: Another External Player Code, but Very Simple to Setup - Commander71 - 2013-02-25

Hi,
i use the following code in my Frodo system:

Code:
<playercorefactory>

<players>

  <player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
   <filename>C:\Users\HTPC\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>

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 playbdmv)

:playiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.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)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.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\uTotalMediaTheatre6.exe" %pth% exit
GOTO end

:end
exit

"Use fullscreen window rather than true fullscreen" is enabled and my isos and blu ray files work fine for me.

Now i tried to add the handling for the internal blu ray disc player. So i change the playercorefactory by adding the lines:
Code:
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
< filename>C:\Users\HTPC\AppData\Roaming\XBMC\userdata\PlayIso.bat</filename>
< args>"{1}"</args>
< hidexbmc>True</hidexbmc>
< hideconsole>true</hideconsole>
< forceontop>false</forceontop>
< /player>
and in the rules-section:
<!-- Bluray Disc -->
< rule filetypes="bd|ifo" player="Disc_Player"/>

What code will i have to add in the PlayIso.bat? Or is it absolutely neccessary to create an extra PlayDisc.bat for handling that and what should it look like? Thx!!


RE: Another External Player Code, but Very Simple to Setup - acejh1987 - 2013-02-25

(2013-02-25, 10:30)Commander71 Wrote: What code will i have to add in the PlayIso.bat? Or is it absolutely neccessary to create an extra PlayDisc.bat for handling that and what should it look like? Thx!!

Yes, I would use a separate PlayDisc.bat for actual disc playback, the PlayDisc.bat on page one of this thread would work fine.


RE: Another External Player Code, but Very Simple to Setup - Commander71 - 2013-02-25

(2013-02-25, 14:01)acejh1987 Wrote:
(2013-02-25, 10:30)Commander71 Wrote: What code will i have to add in the PlayIso.bat? Or is it absolutely neccessary to create an extra PlayDisc.bat for handling that and what should it look like? Thx!!

Yes, I would use a separate PlayDisc.bat for actual disc playback, the PlayDisc.bat on page one of this thread would work fine.

Thx, it works fine!


RE: Another External Player Code, but Very Simple to Setup - Gagarin - 2013-03-06

Hello.

I`ve faced the problem with the outer player operation, when changed the 11th version XBMC to the 12th (Frodo).
Before for watching Blu-Ray 3D-ISO images I was using TMT5. But now I can start TMT5 only from pull-down menu. And now, if it is started by pressing Play button, a film runs only in inner player. My playercorefactory.xml is enclosed.

Code:
playercorefactory.xml

<playercorefactory>
    <players>
        <player name="PlayISO" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\fs\playiso.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>true</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
        </player>
        <player name="PlayDisc" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\fs\playdisc.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>true</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
        </player>
    </players>
    <rules action="prepend">
        <rule filetypes="iso" filename="*3d*" player="PlayISO"/>
        <rule filetypes="bdmv" filename=".*index.bdmv" player="PlayDisc"/>
    </rules>
</playercorefactory>

playiso.bat

@echo off
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
ping -n 2 -w 1000 127.0.0.1 > nul
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe" F:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
exit
Could You tell me, please, what element of code must be changed for I can start 3D-ISO in TMT5. For the other files inner player is suitable enough.

Thank You forehand.


RE: Another External Player Code, but Very Simple to Setup - bluray - 2013-03-06

(2013-03-06, 09:25)Gagarin Wrote: Hello.

I`ve faced the problem with the outer player operation, when changed the 11th version XBMC to the 12th (Frodo).
Before for watching Blu-Ray 3D-ISO images I was using TMT5. But now I can start TMT5 only from pull-down menu. And now, if it is started by pressing Play button, a film runs only in inner player. My playercorefactory.xml is enclosed.

Code:
playercorefactory.xml

<playercorefactory>
    <players>
        <player name="PlayISO" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\fs\playiso.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>true</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
        </player>
        <player name="PlayDisc" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\fs\playdisc.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>true</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
        </player>
    </players>
    <rules action="prepend">
        <rule filetypes="iso" filename="*3d*" player="PlayISO"/>
        <rule filetypes="bdmv" filename=".*index.bdmv" player="PlayDisc"/>
    </rules>
</playercorefactory>

playiso.bat

@echo off
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
ping -n 2 -w 1000 127.0.0.1 > nul
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe" F:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
exit
Could You tell me, please, what element of code must be changed for I can start 3D-ISO in TMT5. For the other files inner player is suitable enough.

Thank You forehand.
Look for the new code post #1610.....


RE: Another External Player Code, but Very Simple to Setup - pollux45 - 2013-03-08

Hi All,

I'm using Frodo and I'm trying to play bluray iso files and DVD iso files with PowerDVD12 as external player in XBMC but unfortunetaly I've got the menu popup and when I click on one of the items, PowerDVD is launching but the movie is not launching as VCD drive is empty.

Here is the code that i'm using :

Playcorefactory

<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\MediaCenterSalon\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>True</hidexbmc>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>

</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\MediaCenterSalon\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>True</hidexbmc>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>

</player>
<player name="AutoFrequency" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\AutoFrequency\AutoFrequency.exe</filename>
<args> "{1}" </args>
<hidexbmc>True</hidexbmc>
<hideconsole>true</hideconsole>
<forceontop>false</forceontop>
</player>
</players>

<rules action="prepend">
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
<!-- Multiple files -->
<rule filetypes="m2ts|mkv|avi|ts" player="AutoFrequency"/>
<!-- Bluray Disc -->
<rule filetypes="bd|ifo" player="Disc_Player"/>

</rules>
</playercorefactory>

PlayISO.bat :

@echo off
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\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files\Cyberlink\PowerDVD12\PDVDLaunchPolicy.exe" I:
"C:\Program Files\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end

:plaympls
set pth=%1
set pth=%pth:~1,-25%

"C:\Program Files\Cyberlink\PowerDVD12\PDVDLaunchPolicy.exe" "%pth%" exit
GOTO end

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

"C:\Program Files\Cyberlink\PowerDVD12\PDVDLaunchPolicy.exe" %pth% exit
GOTO end

:end
exit

Also, here is the reference for my log : http://www.xbmclogs.com/show.php?id=2981


Could someone help me with the correct settings as I do not find any way to correct this issue ?

Thanks


RE: Another External Player Code, but Very Simple to Setup - bluray - 2013-03-08

@pollux45-
If you haven't enable "Use fullscreen window rather than true fullscreen" in XBMC video output, you need to enable it.....


RE: Another External Player Code, but Very Simple to Setup - pollux45 - 2013-03-09

Hi Bluray,

I've checked what you've replied but unfotunately, this option was already checked within my configuration and was already included within the log file I've posted already.

So, if you have another idea, I would appreciate as PowerDVD is launching but the image is not mounted and myVCD drive is empty.

Thanks


RE: Another External Player Code, but Very Simple to Setup - baijuxavior - 2013-03-09

Adding "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1 to plaympls and playbdmv may solve the problem.