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 - Batiatus - 2013-12-06

(2013-11-26, 03:13)brazen1 Wrote: Batiatus:

Launch PDVD in Cinema mode & add Alt+F4 assigned to mce keyboard as exit button in XBMC activity if you use a harmony. XBMC and PDVD remote control button mapping took a special blend of Windows Media Center SE & Windows Media Center keyboard so the buttons worked in both at the same time.

I need to re-quote this because I've not been able to figure out how to add a multi-keystroke command to my Harmony One. Everything else is programmed and works well accept being able to exit PowerDVD.

I'm now having an issue when I do exit PowerDVD back to XBMC that the resolution is wrong and the XBMC menu is HUGE! I have to window (backslash) then full-screen XBMC to correct it. That is annoying.

But not as annoying as discovering Cinavia giving me errors on some of my 3D ISO files. Has anyone had any luck sorting that mess out? I understand studios trying to protect their billions and so on but when I OWN nearly 100 3D movies and gladly pay for them in store I should be able to use them. Even trying to play back a 3D Blu-ray in my PC brings up the error code and that's just garbage.


RE: Another External Player Code, but Very Simple to Setup - acejh1987 - 2013-12-06

(2013-12-06, 10:03)Batiatus Wrote: Even trying to play back a 3D Blu-ray in my PC brings up the error code and that's just garbage.

You shouldn't be getting a Cinavia error in PowerDVD, if you are playing the original disc from the Blu-ray drive.
Are you running any other tools for playback - DVDFab/AnyDVD etc?


RE: Another External Player Code, but Very Simple to Setup - Lupin 3rd - 2013-12-12

Hi everybody,
I need a little help for a playerconfig modification...

In this moment I use this script:
Code:
<playercorefactory>
    <players>
        <player name="ISO_Player" type="ExternalPlayer" audio="false" video="false">
            <filename>C:\Users\Actarusfleed\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
            <args>"{1}" /fullscreen</args>
            <forceontop>false</forceontop>
            <hidexbmc>false</hidexbmc>
            <hidecursor>false</hidecursor>
        </player>
        <player name="Disc_Player" type="ExternalPlayer" audio="false" video="false">
            <filename>C:\Users\Actarusfleed\AppData\Roaming\XBMC\userdata\PlayDisc.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)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe</filename>
            <args>"{1}" /fullscreen</args>
            <forceontop>false</forceontop>
            <hidexbmc>false</hidexbmc>
            <hidecursor>false</hidecursor>
        </player>
    </players>
    <rules action="prepend">
        <!-- Bluray ISO -->
        <rule filename=".*iso.*|.*BDMV.*|.*mpls.*" player="ISO_Player"/>
        <!-- Bluray BDMV -->
        <!--<rule filename=".*BDMV.*" player="ISO_Player"/>-->
        <!-- Bluray M2TS -->
        <rule filename=".*mkv.*|.*m2ts.*" player="dvdplayer"/>
        <!-- Bluray Disc -->
        <rule protocols="bd" player="Disc_Player"/>
    </rules>
</playercorefactory>

I need to change this code to:

1) Set DVDplayer as default player. TMT6 must be the second player chance. To use TMT6 I'll go in "play using..." section.
2) BUT if I try to play a 3D file (I've all my Blu ray ISO files named "name.3D.iso" I need a rule to automatically use TMT6 to play 3D.

The n.1 point is very important for me because I always prefer DVDplayer over TMT6. I'll use TMT 6 like a second alternative player.

Many thanks to any help.


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

(2013-12-12, 14:14)Lupin 3rd Wrote: I need to change this code to:
1) Set DVDplayer as default player. TMT6 must be the second player chance. To use TMT6 I'll go in "play using..." section.
2) BUT if I try to play a 3D file (I've all my Blu ray ISO files named "name.3D.iso" I need a rule to automatically use TMT6 to play 3D.

Changing the rules section to the following should work -

Code:
<rules action="prepend">
        <!-- Bluray 3D ISO -->
        <rule filetypes="iso|bdmv|mpls" filename=".*3D.*" player="ISO_Player"/>
        <!-- Bluray Disc -->
        <rule protocols="bd" player="Disc_Player"/>
</rules>

Note - 3D in the file name is case sensitive (files named "name.3d.iso" would not work)


RE: Another External Player Code, but Very Simple to Setup - pRot3us - 2013-12-12

I'm trying to get two external players working for blu ray ISOs and 3D bluray ISOs with no luck.

I've always had the ISOs playing fine, but now I've gone 3D getting the second player working isn't going well.

Could somebody please check my files ;

playercorefactory.xml
Code:
<playercorefactory>
<players>
    <player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
        <filename>C:\XBMC\PlayISO2.bat</filename>
        <args>"{1}"</args>
        <hidexbmc>true</hidexbmc>
                <hideconsole>true</hideconsole>
                <warpcursor>none</warpcursor>    
    </player>
        <player name="3D_ISO_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\XBMC\PlayISO_3D.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>true</hidexbmc>
                <hideconsole>true</hideconsole>
                <warpcursor>none</warpcursor>
        </player>
</players>
    <rules action="prepend">
        <!-- Bluray ISO -->
            <rule filename="*Movies*" player="ISO_Player"/>
             <!-- Bluray 3D ISO -->
        <rule filename="*3D*" player="3D_ISO_Player"/>    
        </rules>
</playercorefactory>
PlayISO2.bat
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)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
"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
PlayISO_3D.bat
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)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
"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

It seems to just use the first player (TMT5 - PlayISO2.bat) and never the second. Confused

If there's not a way via playercorefactory then can I somehow use a single .bat file that will launch the relevant player according to the filepath?


RE: Another External Player Code, but Very Simple to Setup - acejh1987 - 2013-12-13

(2013-12-12, 23:48)pRot3us Wrote: I'm trying to get two external players working for blu ray ISOs and 3D bluray ISOs with no luck.
I've always had the ISOs playing fine, but now I've gone 3D getting the second player working isn't going well.
Could somebody please check my files ;

Try the following rules inside the playercorefactory.xml

<rules action="prepend">
<!-- Bluray 3D ISO -->
<rule filetypes="iso|bdmv|mpls" filename=".*3D.*" player="3D_ISO_Player"/>
<!-- Bluray ISO -->
<rule filetypes="iso|bdmv|mpls" player="ISO_Player"/>
</rules>

Make sure the 3D files have "3D" in the filename (not file path) and it should work fine.


RE: Another External Player Code, but Very Simple to Setup - pRot3us - 2013-12-13

That's working perfectly, many thanks and Happy Christmas! Big Grin


RE: Another External Player Code, but Very Simple to Setup - p750mmx - 2013-12-13

Why doesn't one use the MCE.exe from TMT?, uMCEPlayer?.exe? Is there a special reason not using it with XBMC and the external player setup?


RE: Another External Player Code, but Very Simple to Setup - pRot3us - 2013-12-13

(2013-12-13, 15:20)p750mmx Wrote: Why doesn't one use the MCE.exe from TMT?, uMCEPlayer?.exe? Is there a special reason not using it with XBMC and the external player setup?
I've never found a reason to use it over the standard TMT interface, once setup I never need to use the TMT interface,the only onscreen interaction is with the Blu ray/HD DVD/DVD menus and all standard controls + custom extras are mapped to my remote.


RE: Another External Player Code, but Very Simple to Setup - p750mmx - 2013-12-13

OK, when using the MCE version, TMT(5) can be used with a standard MCE remote, without mapping anything. But if it works, it works Wink


RE: Another External Player Code, but Very Simple to Setup - pettergulbra - 2013-12-14

I am wondering to upgrade my HTPC with Blu-Ray reader.
But for me it looks like it is indeed much problem to get this to work, in a good way.
With a remote control (Logitech Harmony). It is set up to send key board commands, not the MCE remote commands.

I have tried to read this thread, but it is very much back and forward.

As I understand, I have to use an external player to watch Blu-Rays. Will this be controlled by the remote?
I will most likely just use the external player to play Blu-Ray discs. As of now.

Is there an simple solution for this? It had being nice to know before I buy one.


RE: Another External Player Code, but Very Simple to Setup - p750mmx - 2013-12-15

I must say that most BR iso's are playing fine from within XBMC but when one ones to play 3D BR then that must be done by an external player solution. If you don't wanna play 3D BR then XBMC can handle that fine in most cases, even the BR disc's (although not all of them).


RE: Another External Player Code, but Very Simple to Setup - pettergulbra - 2013-12-15

So you say that discs also plays in xbmc, as a normal dvd disc?

e.g: I insert an disc, and the play disc appears, and then it is just to hit play as normal (with dvds)


RE: Another External Player Code, but Very Simple to Setup - acejh1987 - 2013-12-15

(2013-12-15, 00:44)pettergulbra Wrote: So you say that discs also plays in xbmc, as a normal dvd disc?

e.g: I insert an disc, and the play disc appears, and then it is just to hit play as normal (with dvds)

Actual Blu-ray Disc's will not play in XBMC without first being decrypted by a 3rd party tool like AnyDVD HD or DVDFab Passkey, and even with those 3rd party tools, 3D playback is not yet possible in XBMC.
Alternatively you could use an external player like PowerDVD or Arcsoft TMT which can handle protected Blu-ray Disc playback and 3D.


RE: Another External Player Code, but Very Simple to Setup - p750mmx - 2013-12-15

The few BR disc's I have, autostart after placing when the optical (DVD) auto play option is active in the video menu. But most of my BR collection are iso's.