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)



- bluray - 2012-01-23

jzh797s Wrote:Is 2shared.com (source for the OP links) down? I have been unable to download any of the files to test w/ PDVD11. If Boxee can support HD Audio why can't XBMC?

I miss my True HD!
Sorry guys...I didn't know 2shared have limited downloads. I used another site to upload Playercorefactory, PlayBDMV, PlayDisc & PlayISO. All the files in post #1 are updated with a new site. You can try to download it again! Smile


- robl45 - 2012-01-23

bluray Wrote:No, I don't use another app. I use the same MCE remote with MPC-HC keys, and here is what I did- post #11.

he was talking about using the app on the phone I believe. you can only do that if you have dedicated mce remote I assume.

Irule looks like a solution, new app that can work from phone or tablet and merge multiple remotes and types wifi/ir etc all together.


- bluray - 2012-01-23

robl45 Wrote:he was talking about using the app on the phone I believe. you can only do that if you have dedicated mce remote I assume.

Irule looks like a solution, new app that can work from phone or tablet and merge multiple remotes and types wifi/ir etc all together.
Here is his quote "you still need another app to control the external player so i'm switching back and forth between xbmc remote and mpc-hc".

For me, I'll never use a $500 smartphone for remote controller when it work fine with a $20 MCE remote controller. For MCE remote controller, you can simply use the same remote controller to control XBMC & MPC-HC!


- edd247 - 2012-01-26

Hi bluray, thank you for all your info and resources.
I am using your bat and playercore files to play dvd and bluray discs using powerdvd 11. Powerdvd is launching correctly but even though I have assigned the correct drive letter to load, nothing happens when it pops up. I have to manually press play with the mouse in order to play it. Is there something I am missing or is this a limitation of powerdvd 11? As a reference, this was not an issue in powerdvd 10. Thanks for your help.


- archedrapier - 2012-01-26

hello i want to have the built-in dvdplayer as my default player and i want to be able to right-click and press "play using..." and use mpc-hc only for those that i chose. They will not always be a certain file type or name. So how do i go about doing that in the playercorefactory.xml file?

Thanks in advance!


- bluray - 2012-01-26

edd247 Wrote:Hi bluray, thank you for all your info and resources.
I am using your bat and playercore files to play dvd and bluray discs using powerdvd 11. Powerdvd is launching correctly but even though I have assigned the correct drive letter to load, nothing happens when it pops up. I have to manually press play with the mouse in order to play it. Is there something I am missing or is this a limitation of powerdvd 11? As a reference, this was not an issue in powerdvd 10. Thanks for your help.
Can you show me your PlayDisc.bat and Playercorefactory.xml codes?


- bluray - 2012-01-26

archedrapier Wrote:hello i want to have the built-in dvdplayer as my default player and i want to be able to right-click and press "play using..." and use mpc-hc only for those that i chose. They will not always be a certain file type or name. So how do i go about doing that in the playercorefactory.xml file?

Thanks in advance!
You can used these codes:

Note- you can place your PlayDisc.bat and Playercorefactory.xml files in \Roaming\XBMC\userdata\

PlayDisc.bat

@echo off
rem if your DVD-ROM drive is not E you need to enter the correct drive

"C:\Program Files\Media Player Classic - Home Cinema\mpc-hc64.exe" E:


Playercorectory.xml

<playercorefactory>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
[COLOR="green"]<!-- You need to change the path below to match PlayDisc path on your HTPC -->

<filename>C:\Users\Dell\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>
<rules action="prepend">

<rule name="Blu-Ray" protocol="bd" player="Disc_Player"/>>
</rules>
</playercorefactory>[/COLOR]


- Mrbrooks - 2012-01-26

Hi bluray,

I have managed to open both powerdvd11 and mpc from within xbmc, the problem is that they both open, but they wont play the file i started the play with in xbmc, they just dont play anything...

So what might i be missing?

Thanks


- raidflex - 2012-01-26

I have setup successfully your external playback which works as intended but I have one issue.

The issue is I have TV content that is .mkv and movies that are also .mkv. All of the movies include DTS-HD MA audio and I would like for only those to be played with the external player (TMT5). All of the TV mkv's are using dts only or lower.

Is there a way that I can specify to only have the mkv's with DTS-HD MA audio be played with TMT5 and everything else with XBMC? Thanks for any help!


- bluray - 2012-01-26

Mrbrooks Wrote:Hi bluray,

I have managed to open both powerdvd11 and mpc from within xbmc, the problem is that they both open, but they wont play the file i started the play with in xbmc, they just dont play anything...

So what might i be missing?

Thanks
Can I see your playercorefactory codes?


- Mrbrooks - 2012-01-26

bluray Wrote:Can I see your playercorefactory codes?

Thanks i am trying to play bluray directories mainly... tested with files that open directly without problem....

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Dell\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Core\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Dell\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\%ProgramFiles(x86)%\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<rule filename=".*iso.*" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filename=".*bdmv.*" player="BDMV_Player"/>
<!-- Bluray MKV -->
<rule filename=".*mkv.*" player="Universal_Player"/>
<!-- Bluray M2TS -->
<rule filename=".*m2ts.*" player="Universal_Player"/>

<!-- Bluray Disc -->
<rule protocols="bd|dvd" player="BDMV_Player"/>
</rules>
</playercorefactory>



@echo off
rem you can place your PlayBDMV file in \Roaming\XBMC\userdata\
set pth=%1
set pth=%pth:BDMV\index.bdmv=%
"%ProgramFiles(x86)%\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" %pth% exit


- bluray - 2012-01-26

raidflex Wrote:I have setup successfully your external playback which works as intended but I have one issue.
I'm glad that it work out for you, and congratulation! Smile

raidflex Wrote:The issue is I have TV content that is .mkv and movies that are also .mkv. All of the movies include DTS-HD MA audio and I would like for only those to be played with the external player (TMT5). All of the TV mkv's are using dts only or lower.

Is there a way that I can specify to only have the mkv's with DTS-HD MA audio be played with TMT5 and everything else with XBMC? Thanks for any help!
Yes, you can. You can try the playercorefactory codes and rules below:

1. Download Playercorefactory.xml and PlayHDaudio.bat
2. Save both files in AppData\Roaming\XBMC\userdata folder
3. Change this path in Playercorefactory codes to match the path of PlayHDaudio on your HTPC- (C:\Users\Dell\AppData\Roaming\XBMC\userdata\PlayHDaudio.bat)
4. Name your movie in this format "title_DTS-HD.mkv" or "title_TrueHD.mkv"
5. Launch XBMC and you try the DTS-HD or TrueHD MKV movie


I tried it on my HTPC and it worked fine. I hope that it will work on your HTPC too!


- bluray - 2012-01-26

Mrbrooks Wrote:Thanks i am trying to play bluray directories mainly... tested with files that open directly without problem....

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Dell\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Core\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Dell\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\%ProgramFiles(x86)%\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<rule filename=".*iso.*" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filename=".*bdmv.*" player="BDMV_Player"/>
<!-- Bluray MKV -->
<rule filename=".*mkv.*" player="Universal_Player"/>
<!-- Bluray M2TS -->
<rule filename=".*m2ts.*" player="Universal_Player"/>

<!-- Bluray Disc -->
<rule protocols="bd|dvd" player="BDMV_Player"/>
</rules>
</playercorefactory>



@echo off
rem you can place your PlayBDMV file in \Roaming\XBMC\userdata\
set pth=%1
set pth=%pth:BDMV\index.bdmv=%
"%ProgramFiles(x86)%\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" %pth% exit
Is your HTPC user Dell and Core? Why are there % on both sides of "ProgramFiles(x86)"?

-If you saved all the bat and xml files in roaming/userdata folder and changed to the correct paths, it should work. If it doesn't work, you can download this PlayUniversal.bat and change the Universal_Player path in Playercorefactory.



- edd247 - 2012-01-26

bluray Wrote:
edd247 Wrote:Hi bluray, thank you for all your info and resources.
I am using your bat and playercore files to play dvd and bluray discs using powerdvd 11. Powerdvd is launching correctly but even though I have assigned the correct drive letter to load, nothing happens when it pops up. I have to manually press play with the mouse in order to play it. Is there something I am missing or is this a limitation of powerdvd 11? As a reference, this was not an issue in powerdvd 10. Thanks for your help.
Can you show me your PlayDisc.bat and Playercorefactory.xml codes?

here are my PlayDisc.bat and Playercorefactory.xml codes:

Playercorefactory.xml:
<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Ed\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Ed\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Ed\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD11\PowerDVD11.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<rule filename=".*iso.*" player="ISO_Player"/>
<!-- Bluray BDMV -->
<!-- <rule filename=".*bdmv.*" player="BDMV_Player"/>
Bluray MKV
<rule filename=".*mkv.*" player="Universal_Player"/> -->
<!-- Bluray M2TS
<rule filename=".*m2ts.*" player="Universal_Player"/> -->

<!-- Bluray Disc -->
<rule protocols="bd|dvd" player="Disc_Player"/>
</rules>
</playercorefactory>


PlayDisc.bat:
@echo off
rem you can place your PlayDisc file anywhere

"C:\Program Files (x86)\CyberLink\PowerDVD11\PowerDVD11.exe" d:

i also tried pointing to PDVDLaunchPolicy.exe and got the same thing


- patseguin - 2012-01-26

Nothing I am trying is letting me play back or even see my ISO's. Any chance this can just be incorporated into the next beta? ;-)