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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Kodi General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: Another External Player Code, but Very Simple to Setup (/showthread.php?tid=116724)



RE: Working External Player Solution - bluray - 2012-03-26 01:45

(2012-03-25 23:58)mattzane227 Wrote:  I did everything on the first post using TMT5 and it launches my bluray rips perfectly but the movie stutters badly the entire time. If I launch TMT5 by itself the movie is fine. I have an i3 so it's not a power issue. Any ideas? I can use MediaBrowser with TMT as an external player and it works fine with no stuttering.
You can change the lines <hideconsole>true</hideconsole> with <hideconsole>false</hideconsole> in playercorefactory.xml. Since you are using i3 iGPU, you can disable DXVA2 in XBMC video playback option too.....


RE: Another External Player Code, but Very Simple to Setup - Bjur - 2012-04-02 00:36

Hi Blu-Ray. I need some help...
I have been using your files which is working great on the Fullscreen Window, but my big problem is, than when I use that, I have horisontal lines when movement in files in XBMC, if I use True Fullscreen the problem is gone.

But if I use True Fullscreen I can't call Totalmedia, since XBMC allways overrules itSad

Do you have any good ideas on how to solve my problem?

My file is below. I have tried also to just use <args>"{1}"</args>, but everything I have tried doesn't seem to do anythingSad

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Peter\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\Peter\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\Peter\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)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.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 M2TS -->
<rule filename=".*m2ts.*" player="Universal_Player"/>
<!-- HD DVD EVO -->
<rule filetypes=".*evo.*" player="Universal_Player"/>

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


RE: Another External Player Code, but Very Simple to Setup - Flow - 2012-04-02 04:43

Hi again...

I love all of that, been enjoying Blu Ray's now with TMT5!

Got a question though, why is .mpg files being played with ISO player by default?
Here's my xml:

Code:
<playercorefactory>
    <players>
        <player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\flow\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\flow\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\flow\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)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.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 M2TS -->
                <rule filename=".*m2ts.*" player="Universal_Player"/>          
        <!-- Bluray Disc -->
        <rule protocols="bd|dvd" player="Disc_Player"/>
       </rules>
</playercorefactory>

Is there any way to unlink .mpg files from using ISO Player?


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

@Bjur-

Try these settings-

<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>


Enable "Auto Full Screen" in TMT5 settings/playback....

And try these settings in XBMC-

[Image: zwkhlt.jpg]
[Image: 33pc6lw.jpg]
@Flow-

I'm not sure why .mpg is playback using ISO rule either, but you can try these rules...

<rules action="prepend">
<!-- Bluray ISO -->
<rule filename=".*iso.*" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filename=".*bdmv.*" player="BDMV_Player"/>
<!-- Bluray M2TS -->
<rule filename=".*m2ts.*" player="Universal_Player"/>
<!-- MPG Files -->
<rule filename=".*mpg.*" player="Universal_Player"/>
<!-- Bluray Disc -->
<rule protocols="bd|dvd" player="Disc_Player"/>
</rules>



RE: Another External Player Code, but Very Simple to Setup - thewhiteknight - 2012-04-03 03:15

Hi bluray...

Quick question, does this work with the version of XBMC from 2/2/2012 w/HDAudio built in (Eden Beta2)? I ask b/c that's the version that I use, and after following the directions step by step (the ones that I need anyway) I cannot get this to work. When I click on play disc in XBMC, XBMC is minimized and a black screen comes up like it's going to start PowerDVD12, however nothing happens. I have to alt/cntrl/delete to bring up task manager and kill XBMC to get my desktop back. Any suggestions? It is greatly appreciated!

My playercorefactory:

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Terry\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Terry\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Terry\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD12\uMCEPlayer5.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</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>


RE: Another External Player Code, but Very Simple to Setup - Raffix74 - 2012-04-03 13:00

If i use PowerDvd 12 what file replace in Userdata ?


RE: Another External Player Code, but Very Simple to Setup - thewhiteknight - 2012-04-03 14:19

[quote='thewhiteknight' pid='1064675' dateline='1333415729']
Hi bluray...

Quick question, does this work with the version of XBMC from 2/2/2012 w/HDAudio built in (Eden Beta2)?


This is the version I am using, however I believe his post has been updated as the binary is now pointing to the Eden final with HD Audio added in.
XBMC Eden w/HD Audio


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-04-03 16:33

@thewhitenknight-
You can use external player code with all XBMC-----

You can try the playercorefactory codes below, and you need to make sure all the .bat files include this "C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" too. You might not be aware of it that you're using TMT5 .exe in PDVD12 directory.

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Terry\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Terry\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Terry\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe</filename>
<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</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 protocol="bd|dvd" player="Disc_Player"/>
</rules>
</playercorefactory>



(2012-04-03 13:00)Raffix74 Wrote:  If i use PowerDvd 12 what file replace in Userdata ?
Please see above.....


RE: Another External Player Code, but Very Simple to Setup - thewhiteknight - 2012-04-03 17:07

Thanks for the reply bluray! When I get home tonight I'll give the playercore code above a try. I'll also double check that I did correctly change all of the .bat files to point to PowerDVD12 instead of THT5.

Just to be sure, the only .bat files that have to be changed are the PlayBDMV, PlayDisc, and PlayISO files that I downloaded and put into my AppData/Roaming/XBMC/userdata folder? If there are others then that's definitely a problem, as those are the only 3 I changed.


RE: Another External Player Code, but Very Simple to Setup - thewhiteknight - 2012-04-04 00:39

bluray, the playercorefactory file you posted above is giving the same results, so I've attached the .bat files that I changed. Any suggestions? I did change the drive letter, as my drive letter is E:.


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

PlayDisc:
@echo off
rem you can place your PlayDisc file in \Roaming\XBMC\userdata\
"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe"
"C:\Program Files (x86)\CyberLink\PowerDVD12\uMCEPlayer5.exe" E:

PlayISO:
@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
"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe"
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\CyberLink\PowerDVD12\uMCEPlayer5.exe" E:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u


Thanks again for your time and help!

Edit was to add "C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" command line, however it still didn't help.


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-04-04 07:35

@thewhiteknight,
The correct codes are listed below (make sure that your BD-ROM drive is E: in PlayDisc and available VirtualClone drive is J: in PlayISO. If it is not, you have to change it to the correct drives on your HTPC)-

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

PlayDisc:
@echo off
rem you can place your PlayDisc file in \Roaming\XBMC\userdata\
"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" E:

PlayISO:
@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

"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" J:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u


RE: Working External Player Solution - Gazzyb - 2012-04-05 01:58

I used the code below (with the .bat file) and it works perfectly when launching the player.
The issue i have is that i cannot get the TMT5 to close and go back to XBMC.
I assumed once the player stops it would go back to XBMC.

Sorry im a noob when it comes to the technical stuff in XBMC


(2012-03-22 05:07)bluray Wrote:  
(2012-03-22 04:00)jmpa Wrote:  It is almost working! XBMC closes, TMT5 opens and seems it is auto start the movie but instead the screen get black and it doesn't start. But if i press stop and start again on remote it start working.

Another thing I would like is when I close it, it automaticly goes to XBMC again.
Okay, try these codes then.....

1. Download Playercorefactory and PlayDisc

2. Save both files in this folder- C:\Users\HT\AppData\Roaming\XBMC\userdata\

-While playback movie using TMT5, you can simply press stop and backspace to return to XBMC......



RE: Working External Player Solution - bluray - 2012-04-05 02:50

(2012-04-05 01:58)Gazzyb Wrote:  I used the code below (with the .bat file) and it works perfectly when launching the player.
The issue i have is that i cannot get the TMT5 to close and go back to XBMC.
I assumed once the player stops it would go back to XBMC.

Sorry im a noob when it comes to the technical stuff in XBMC
Are the stop button and backspace to return to XBMC not working?


RE: Working External Player Solution - Gazzyb - 2012-04-05 03:00

(2012-04-05 02:50)bluray Wrote:  [quote='Gazzyb' pid='1066663' dateline='1333583890']
I used the code below (with the .bat file) and it works perfectly when launching the player.
The issue i have is that i cannot get the TMT5 to close and go back to XBMC.
I assumed once the player stops it would go back to XBMC.

Sorry im a noob when it comes to the technical stuff in XBMC
Are the stop button and backspace to return to XBMC not working?

The stop button didnt work.
Ill try the backspace button when i get home tonight.

Thanks for the quick reply Smile


RE: Working External Player Solution - bluray - 2012-04-05 03:50

(2012-04-05 03:00)Gazzyb Wrote:  
(2012-04-05 02:50)bluray Wrote:  [quote='Gazzyb' pid='1066663' dateline='1333583890']
I used the code below (with the .bat file) and it works perfectly when launching the player.
The issue i have is that i cannot get the TMT5 to close and go back to XBMC.
I assumed once the player stops it would go back to XBMC.

Sorry im a noob when it comes to the technical stuff in XBMC
Are the stop button and backspace to return to XBMC not working?

The stop button didnt work.
Ill try the backspace button when i get home tonight.

Thanks for the quick reply Smile
While the movie is playing, you can press the STOP button to stop the movie, and then press BACKSPACE to return to XBMC....