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 - acejh1987 - 2013-01-04

The best way to keep XBMC playing DVD ISO and TMT5 playing BD ISO in Frodo is -

Remove ISO from file types in this line -

Code:
<rule filetypes="iso|bdmv|mpls" player="ISO_Player"/>

Frodo never actually uses the ISO rules anymore on Blu-ray ISO, it uses the BDMV or MPLS rule, depending on what you select on the extra popup context menu.

By the way on the new popup context menu, you can select any option, you don't have to select Blu-ray menus, selecting any track will work too.




RE: Another External Player Code, but Very Simple to Setup - coffeeman - 2013-01-04

wow, I was looking to add an external player to Xbmc, but all this code makes me think, it will be much faster to just hit the windows key, bring up my folder and player it from there in external player :LOL


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

(2013-01-04, 14:53)coffeeman Wrote: wow, I was looking to add an external player to Xbmc, but all this code makes me think, it will be much faster to just hit the windows key, bring up my folder and player it from there in external player :LOL

Big Grin

Frodo has complicated things a little bit, but once you have the codes setup you never need to mess with them again and playback is pretty much instant.



RE: Another External Player Code, but Very Simple to Setup - khuong - 2013-01-04

Anyone having issues with TMT5 (after you hit STOP on your controller) video stops.. goes back to XBMC and then it automatically Reopens TMT5 -> Plays video again? (constant loop) ?

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

<rule filetypes="mkv" filename=".*3d.*" player="Universal_Player"/>


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

Check if you have repeat turned off -

First navigate to a movie
Press "C" to open context menu
Queue Item
Press "C" again to open context menu
Now Playing
Once in the Now Playing Window, press the left arrow and check the repeat setting

If it is set to off, then could you post a log file. www.xbmclogs.com or Pastebin


RE: Another External Player Code, but Very Simple to Setup - andcbii - 2013-01-05

(2013-01-01, 20:24)bluray Wrote: @andcbii-
I notice you have PlayBDMV.bat file, but you don't have rule for it. I added the rule for PlayBDMV.bat, and I made the rules simpler...

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
rule filetypes="iso" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray Disc -->
<rule filetypes="bd" player="Disc_Player"/>
</rules>
</playercorefactory>

If you are looking for tips to setup MCE remote, you can check out this guide- Customised MCE

i used

Code:
<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
rule filetypes="iso" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray Disc -->
<rule filetypes="bd" player="Disc_Player"/>
</rules>
</playercorefactory>

now nothing works....


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

(2013-01-05, 00:34)andcbii Wrote: now nothing works....

Try changing this line

Code:
rule filetypes="iso" player="ISO_Player"/>

to

Code:
<rule filetypes="iso" player="ISO_Player"/>

The missing character might be causing XBMC to ignore the playercorefactory.xml rule completely






RE: Another External Player Code, but Very Simple to Setup - Ghostdivision - 2013-01-06

Can someone help me with BDMV folder and ISO not launching in the new frodo. I kind of wish they did not change this, but I am switching away from full rips anyway into mkv, unfortunately for 3d and 1080i VC-1 I still need tmt. Whenever i try to launch a bdmv folder or iso in tmt, it simply does not start, tmt launches but the movie does not start.

PHP Code:
<playercorefactory>
    <
players>
        <
player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
            <
filename>C:\Users\Monty\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\Monty\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\Monty\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">
        <!-- 
Bluray ISO -->
        <
rule filetypes="iso" player="ISO_Player"/>
                <!-- 
Bluray BDMV -->
        <
rule filenames="bdmv" filetypes="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 - Ghostdivision - 2013-01-06

And this is my PlayBDMV.bat

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

And this Is my PlayIso.bat

@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)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe" H:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u





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

Ghostdivision - Do you need both BDMV Folder and BD ISO working?
If you only need one its a easier fix.

If you need both working you need to combine the PlayBDMV and PlayISO rules and Bat files into one.

First in playercorefactory.xml you will only need one player for ISO and BDMV.

So get rid of one of the players in playercorefactory.xml
Lets assume you keep "ISO_Player" you can remove the following

Code:
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:UsersMontyAppDataRoamingXBMCuserdataPlayBDMV.bat</filename>
            <args>"{1}" /fullscreen</args>
            <hidexbmc>true</hidexbmc>
                        <hideconsole>true</hideconsole>
                        <warpcursor>none</warpcursor>
        </player>

Now change the rules to

Code:
<rules action="prepend">
        <!-- Bluray ISO -->
        <rule filetypes="iso|bdmv|mpls" player="ISO_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>

Now you can delete the PlayBDMV.bat as it won't be used
Change the contents of PlayISO.bat to this

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 5\uMCEPlayer5.exe" H:
"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\uMCEPlayer5.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\uMCEPlayer5.exe" %pth% exit
GOTO end

:end
exit

This batch file will check what file XBMC is sending (Either ISO, BDMV or MPLS)
The file type will then determine what part of the bat file it uses.

When launching ISO and BDMV folders in Frodo you can select any option on the Frodo popup menu, it will still work.

Let me know if something doesn't work or if you have problems.



RE: Another External Player Code, but Very Simple to Setup - Ghostdivision - 2013-01-06

Thanks for your reply, will give this a go.

I suppose I only need one.

Boy they really made this complicated.

For 3d its all iso, but for my 1080i vc-1 it was in bdmv format, I guess I convert the vc-1 bdmv folders to iso.





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

(2013-01-06, 15:02)Ghostdivision Wrote: Thanks for your reply, will give this a go.

I suppose I only need one.

Boy they really made this complicated.

For 3d its all iso, but for my 1080i vc-1 it was in bdmv format, I guess I convert the vc-1 bdmv folders to iso.

Yes, it has made it awkward.

Before you start converting, try the changes I have posted, it should work fine, the batch file is longer and more complicated, but will not slow down the process.

If you do decide to just use ISO, then follow the same steps except you don't need to change your current PlayISO.bat.




RE: Another External Player Code, but Very Simple to Setup - diverdiner - 2013-01-07

Hi

I hope someone can help me with my issue I face with playing BDMV

I had just upgraded to XBMC Eden and integrate it MPC-HC for mkv/m2ts since Dharma.

This is the playercorefactory.xml:
<playercorefactory>
<players>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Lim Chee Kwang\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>flase</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>

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

</player>
</players>
<rules action="prepend">
<!-- Bluray BDMV -->
<rule filenames="bdmv" filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray M2TS -->
<rule filenames="m2ts" filetypes="m2ts" player="Universal_Player"/>
<!-- Bluray MKV -->
<rule filenames="mkv" filetypes="mkv" player="Universal_Player"/>
<!-- Bluray AVI -->
<rule filenames="avi" filetypes="avi" player="Universal_Player"/>
<!-- Bluray TS -->
<rule filenames="ts" filetypes="ts" player="Universal_Player"/>

</rules>
</playercorefactory>

I am troubleshooting and my playdbmv.bat:
rem @echo off
rem you can place your PlayBDMV file in \Roaming\XBMC\userdata\
set pth=%1
rem set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\MPC-HC\mpc-hc.exe" %pth% exit

The output from playbdmv.bat
Image

I selected the container directory "The_Book_of_Eli" and play but the arg pass from xbmc to playbdmv.bat seems to have gone deeper into the folder structure.
XBMC has went into the first/top directory within BDMV and pass the bdmv file within there to playbdmv.bat.

Can someone help me on how can I make xbmc pass only the container directory as arg to playbdmv.bat?
Thank you in advance.

MPC-HC has no issue, on its own, playing bd by selecting the container directory or play file using movieobject.bdmv.


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

Does it do this for with all of your BDMV folders or just with this movie?
Does the BDMV folder contain an "index.bdmv" file?


RE: Another External Player Code, but Very Simple to Setup - diverdiner - 2013-01-07

Hi
thanks for reply.

It does this for all BDMV movies.

There is a index.bdmv in each movie \bdmv\ folder.