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 - davematt0709 - 2012-09-17

Hey bluray I have been recommended to ask you on this thread to help me sort out a problem with my new HTPC setup. I am using TMT5 with the bluray drive in my HTPC to watch blurays and DVDs. The program looks great and has a nice user interface (it seems to use uTotalMediaTheatre5.exe launcher). However, I really would like to be able to launch it from within xbmc, since I boot straight into xbmc it makes sense. However, I have read on here and elsewhere that I need to place a playercorefactory.xml file in the AppData\Roaming\XBMC\userdata folder. I have tried using one I downloaded here but I cannot get it to work correctly.

This is what I have tried last
<playercorefactory>
<players>
<player name="TMT5Player" 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>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule name="Blu-Ray" protocols="bd" player="TMT5Player"/>
</rules>
</playercorefactory>

However, although when I click on "play disc" in xbmc the movie starts there is a large band across the middle and the screen flashes all different colours, plus it goes straight into the directors commentary and not the bluray menu!! The other thing i notice is that it is not the same menus as when going straight into TMT5 - it looks more basic. Infact looking in the TMT5 folders I see that there are multiple exe files. The one it appears most like is uMCEPlayer5.exe and not uTotalMediaTheatre5.exe as in the playercorefactory file!

I am trying to end up with xbmc playing all my ripped movies whether blurays or DVDs and want my external bluray player (drive "D") to play original discs (again bluray and DVD) from within xbmc. I hope you can help, it would be really appreciated - I have been trying to sort this out over the whole weekend and got nowhere with it. The virtual mount drive appears to be drive "E".
Cheers
Dave


RE: Another External Player Code, but Very Simple to Setup - ibleedspeed - 2012-09-17

hey davematt. you could try bluray,s links on page 92 post#914.. those were the downloads i am using with tmt5. it works nice. make sure to change the drive letter to your bd drive in the playdisc.bat or also you can change the actual drive letter for your bd drive in windows disc management so that it matches the letter in the playdisc.bat. also if you are playing an original disc you need to use anydvdhd to decrypt the disc in the background.

In order to play your iso ripped dvd,s and bd,s you need to alter the drive letter in playiso.bat to match the drive letter to your virtual clone drive letter. or alternatively change the virtual clone drive letter to match what is in the playiso.bat.
for example this is the line of code from my playiso.bat. "C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe" N:

the drive letter being N: if you change your virtualclone drive letter to N: your good to go.


RE: Another External Player Code, but Very Simple to Setup - {{INX}} - 2012-09-17

Bluray,
As I said before, the setup seems to be working now but I have some small issues.

1. The audio seems to be out of sync in TMT5 by quite a large amount (400ish m/s) when playing any 3D mkv's and when I tweak my amp to correct it, it then puts the audio out of sync in the XBMC player for 2D films. Any ideas hows to fix the issue?

2. Any idea if you can change the shortcut keys in TMT5 to the same as XBMC so my remote will work the same or is there another solution that everyone uses? (I use a Harmony remote btw)


RE: Another External Player Code, but Very Simple to Setup - davematt0709 - 2012-09-17

Thanks ibleedspeed. Will try the codes tomorrow, wife is watching a film just now! For ripped dvd and blurays I don't want an iso image as the files are huge, prefer to just take main film, audio and subtitles in mkv container. I think I saw some codes for those as well as iso in some posts after the one you mentioned. Boy this is a bit of a steep learning curve!


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-09-18

(2012-09-17, 17:54)davematt0709 Wrote: Hey bluray I have been recommended to ask you on this thread to help me sort out a problem with my new HTPC setup. I am using TMT5 with the bluray drive in my HTPC to watch blurays and DVDs. The program looks great and has a nice user interface (it seems to use uTotalMediaTheatre5.exe launcher). However, I really would like to be able to launch it from within xbmc, since I boot straight into xbmc it makes sense. However, I have read on here and elsewhere that I need to place a playercorefactory.xml file in the AppData\Roaming\XBMC\userdata folder. I have tried using one I downloaded here but I cannot get it to work correctly.

This is what I have tried last
<playercorefactory>
<players>
<player name="TMT5Player" 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>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule name="Blu-Ray" protocols="bd" player="TMT5Player"/>
</rules>
</playercorefactory>

However, although when I click on "play disc" in xbmc the movie starts there is a large band across the middle and the screen flashes all different colours, plus it goes straight into the directors commentary and not the bluray menu!! The other thing i notice is that it is not the same menus as when going straight into TMT5 - it looks more basic. Infact looking in the TMT5 folders I see that there are multiple exe files. The one it appears most like is uMCEPlayer5.exe and not uTotalMediaTheatre5.exe as in the playercorefactory file!

I am trying to end up with xbmc playing all my ripped movies whether blurays or DVDs and want my external bluray player (drive "D") to play original discs (again bluray and DVD) from within xbmc. I hope you can help, it would be really appreciated - I have been trying to sort this out over the whole weekend and got nowhere with it. The virtual mount drive appears to be drive "E".
Cheers
Dave
Create the 3 files below and store all 3 files in \AppData\Roaming\XBMC\userdata\ folder. You need to replace "xxxx" in playercorefactory.xml with the correct user name from your computer.....

Playercorefactory.xml:

<playercorefactory>
<players>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<!-- You can place your PlayBDMV file anywhere -->
<filename>C:\Users\xxxx\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<!-- You can place your PlayDisc file anywhere -->
<filename>C:\Users\xxxx\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
</players>
<rules action="prepend">
<!-- Bluray BDMV -->
<rule filenames="bdmv" filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray Disc -->
<rule filenames="BD" name="D:\\.*" filetypes="bdmv" player="Disc_Player"/>
</rules>
</playercorefactory>


PlayDisc.bat:

@echo off
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" D:

PlayBDMV.bat:

@echo off
set pth=%1
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" %pth% exit





RE: Another External Player Code, but Very Simple to Setup - azula - 2012-09-18

(2012-09-17, 23:26)davematt0709 Wrote: Thanks ibleedspeed. Will try the codes tomorrow, wife is watching a film just now! For ripped dvd and blurays I don't want an iso image as the files are huge, prefer to just take main film, audio and subtitles in mkv container. I think I saw some codes for those as well as iso in some posts after the one you mentioned. Boy this is a bit of a steep learning curve!

Glad you found your way here bro. I am in the exact same boat as you! I've been using Makemkv to rip just the main title of a bluray 1:1. The sizes of the movies I've ripped have been anywhere from 18g-28g. I am just now wanting to start ripping some 3d movies and I was told that Anydvdhd is good for ripping ISO's. I will also download Clownbd so I can extract the main feature ISO like i was doing with Makemkv. Hopefully all this makes sense because it doesn't to me, lol.


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-09-18

(2012-09-17, 23:22){{INX}} Wrote: Bluray,
As I said before, the setup seems to be working now but I have some small issues.

1. The audio seems to be out of sync in TMT5 by quite a large amount (400ish m/s) when playing any 3D mkv's and when I tweak my amp to correct it, it then puts the audio out of sync in the XBMC player for 2D films. Any ideas hows to fix the issue?
Have you select the correct HDMI audio output in TMT5 as shown below...

(2012-09-17, 23:22){{INX}} Wrote: 2. Any idea if you can change the shortcut keys in TMT5 to the same as XBMC so my remote will work the same or is there another solution that everyone uses? (I use a Harmony remote btw)
I haven't play around with remote controller very much. My MCE remote controller works fine on both TMT5 and XBMC.....

Image




RE: Another External Player Code, but Very Simple to Setup - ibleedspeed - 2012-09-18

(2012-09-17, 23:26)davematt0709 Wrote: Thanks ibleedspeed. Will try the codes tomorrow, wife is watching a film just now! For ripped dvd and blurays I don't want an iso image as the files are huge, prefer to just take main film, audio and subtitles in mkv container. I think I saw some codes for those as well as iso in some posts after the one you mentioned. Boy this is a bit of a steep learning curve!

I too was confused at first but once you understand where to put the files and which lines need to be altered to match your drive paths it as easy as it gets. however I am not too sure why you want to use an external player for mkv files..... the built in xbmc player works great for those. the only reason to use an external player is to either have access to all the original bluray menus and content or to have bitstreaming hd audio. imho if your enough of a cinefile to just have to have bitstreaming audio then bluray menus should also be desired....Tongue Big Grin

there are only 2 things the xbmc dvd player can not do.... BD menus and hd audio.... Nod For me I store full blurays and dvds because i like menus and special features but i can live with dts audio just fine since my system is not even hd audio ready....

If hd audio is a must then this is the solution until xbmc can manage licensing for hd audio and bluray... which from what i understand is very expensive... that is why there are only a few standalone media players which have the bluray licensing... last i checked it was only popcornhour and dune hd.

and after buying a high end dune hd player the damn thing sat there doing nothing for a year until i sold it because the user interface is crap when compared to xbmc... my old dell laptop can do everything the dune did and.....run xbmc Cool

but again if mkv were my target media i certainly would not bother driving myself nuts trying to use an external player just to have 2 more audio channlesWink


RE: Another External Player Code, but Very Simple to Setup - ibleedspeed - 2012-09-18

hey bluray while your here did you notice my question about using my xbox 360 controller to control tmt5? any help or advice you could offer?


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-09-18

(2012-09-18, 03:51)ibleedspeed Wrote: hey bluray while your here did you notice my question about using my xbox 360 controller to control tmt5? any help or advice you could offer?
I never try it....you can check out this faq- Xbox 360 Wireless Controller for Windows




RE: Another External Player Code, but Very Simple to Setup - davematt0709 - 2012-09-18

(2012-09-18, 00:22)bluray Wrote:
(2012-09-17, 17:54)davematt0709 Wrote: Hey bluray I have been recommended to ask you on this thread to help me sort out a problem with my new HTPC setup. I am using TMT5 with the bluray drive in my HTPC to watch blurays and DVDs. The program looks great and has a nice user interface (it seems to use uTotalMediaTheatre5.exe launcher). However, I really would like to be able to launch it from within xbmc, since I boot straight into xbmc it makes sense. However, I have read on here and elsewhere that I need to place a playercorefactory.xml file in the AppData\Roaming\XBMC\userdata folder. I have tried using one I downloaded here but I cannot get it to work correctly.

This is what I have tried last
<playercorefactory>
<players>
<player name="TMT5Player" 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>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule name="Blu-Ray" protocols="bd" player="TMT5Player"/>
</rules>
</playercorefactory>

However, although when I click on "play disc" in xbmc the movie starts there is a large band across the middle and the screen flashes all different colours, plus it goes straight into the directors commentary and not the bluray menu!! The other thing i notice is that it is not the same menus as when going straight into TMT5 - it looks more basic. Infact looking in the TMT5 folders I see that there are multiple exe files. The one it appears most like is uMCEPlayer5.exe and not uTotalMediaTheatre5.exe as in the playercorefactory file!

I am trying to end up with xbmc playing all my ripped movies whether blurays or DVDs and want my external bluray player (drive "D") to play original discs (again bluray and DVD) from within xbmc. I hope you can help, it would be really appreciated - I have been trying to sort this out over the whole weekend and got nowhere with it. The virtual mount drive appears to be drive "E".
Cheers
Dave
Create the 3 files below and store all 3 files in \AppData\Roaming\XBMC\userdata\ folder. You need to replace "xxxx" in playercorefactory.xml with the correct user name from your computer.....

Playercorefactory.xml:

<playercorefactory>
<players>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<!-- You can place your PlayBDMV file anywhere -->
<filename>C:\Users\xxxx\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<!-- You can place your PlayDisc file anywhere -->
<filename>C:\Users\xxxx\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
</players>
<rules action="prepend">
<!-- Bluray BDMV -->
<rule filenames="bdmv" filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray Disc -->
<rule filenames="BD" name="D:\\.*" filetypes="bdmv" player="Disc_Player"/>
</rules>
</playercorefactory>


PlayDisc.bat:

@echo off
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" D:

PlayBDMV.bat:

@echo off
set pth=%1
set pth=%pth:BDMV\index.bdmv=%
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" %pth% exit

Thanks Bluray. I am just home from work so will give these a try later tonight.


RE: Another External Player Code, but Very Simple to Setup - davematt0709 - 2012-09-18

(2012-09-18, 00:54)azula Wrote:
(2012-09-17, 23:26)davematt0709 Wrote: Thanks ibleedspeed. Will try the codes tomorrow, wife is watching a film just now! For ripped dvd and blurays I don't want an iso image as the files are huge, prefer to just take main film, audio and subtitles in mkv container. I think I saw some codes for those as well as iso in some posts after the one you mentioned. Boy this is a bit of a steep learning curve!

Glad you found your way here bro. I am in the exact same boat as you! I've been using Makemkv to rip just the main title of a bluray 1:1. The sizes of the movies I've ripped have been anywhere from 18g-28g. I am just now wanting to start ripping some 3d movies and I was told that Anydvdhd is good for ripping ISO's. I will also download Clownbd so I can extract the main feature ISO like i was doing with Makemkv. Hopefully all this makes sense because it doesn't to me, lol.

Thanks buddy for the recommendation. I ripped The Raven bluray in MyMovies last night to both BDMV folders and ISO and both were 32.2GB - just wanted to see if both worked ok. I have also used AnyDVD to rip to ISO and that works fine. But cannot just rip the main film using these, hence using makemkv. I have not looked at Clownbd, so will check that out. I don't want to start ripping all my collection until I can decide the best way to do it for both blurays and DVDs. I am not so bothered about menus and special features for rips. I prefer keeping the file size as small as possible (for storage reasons) but without compromising on image quality - I don't see the point in ripping a bluray to lower quality, doesn't that defeat the point of buying bluray!


RE: Another External Player Code, but Very Simple to Setup - robl45 - 2012-09-18

could anyone tell me if there is a way to use the external player just for certain framerates? like can I specify it to go external only if playing 24fps or 23.976fps movies that won't work correctly with sync to display in xbmc?


RE: Another External Player Code, but Very Simple to Setup - davematt0709 - 2012-09-18

(2012-09-18, 03:41)ibleedspeed Wrote:
(2012-09-17, 23:26)davematt0709 Wrote: Thanks ibleedspeed. Will try the codes tomorrow, wife is watching a film just now! For ripped dvd and blurays I don't want an iso image as the files are huge, prefer to just take main film, audio and subtitles in mkv container. I think I saw some codes for those as well as iso in some posts after the one you mentioned. Boy this is a bit of a steep learning curve!

I too was confused at first but once you understand where to put the files and which lines need to be altered to match your drive paths it as easy as it gets. however I am not too sure why you want to use an external player for mkv files..... the built in xbmc player works great for those. the only reason to use an external player is to either have access to all the original bluray menus and content or to have bitstreaming hd audio. imho if your enough of a cinefile to just have to have bitstreaming audio then bluray menus should also be desired....Tongue Big Grin

there are only 2 things the xbmc dvd player can not do.... BD menus and hd audio.... Nod For me I store full blurays and dvds because i like menus and special features but i can live with dts audio just fine since my system is not even hd audio ready....

If hd audio is a must then this is the solution until xbmc can manage licensing for hd audio and bluray... which from what i understand is very expensive... that is why there are only a few standalone media players which have the bluray licensing... last i checked it was only popcornhour and dune hd.

and after buying a high end dune hd player the damn thing sat there doing nothing for a year until i sold it because the user interface is crap when compared to xbmc... my old dell laptop can do everything the dune did and.....run xbmc Cool

but again if mkv were my target media i certainly would not bother driving myself nuts trying to use an external player just to have 2 more audio channlesWink

I will take your word on that lol! I guess once I get my head around it all, I will become an expert like all you guys!
But I think you misunderstood my post re mkv files. I want to play my bluray and DVD rips in XBMC,using the default player, but bitstream HD audio to my receiver for decoding (when you say that xbmc cannot do HD audio I assume you mean it cannot decode HD audio?). I know what you mean re menus etc but for me am just happy to go straight into film from within xbmc. This way I can reduce file sizes somewhat to save storage space. My bluray ISOs are coming out at around 30-35GB each, which is going to fill up my 2 x 2TB drives pretty quick! This is why I am probably going to rip my whole collection using makemkv into mkv files, as I can just rip the main film, HD audio and subtitles that I want. If I want anymore than that (eg special features) I can go back to the disc, hence me also wanting to be able to play discs through XBMC on my external player. In other words I do not want to use the external player for the mkv files, I just want to use it for original discs. I hope this makes sense!


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-09-18

(2012-09-18, 20:07)robl45 Wrote: could anyone tell me if there is a way to use the external player just for certain framerates? like can I specify it to go external only if playing 24fps or 23.976fps movies that won't work correctly with sync to display in xbmc?
Not unless you know the exact movie title and filetype with 24fps. You can name the movie with 24fps in the title, and then you can use this rule (<rule filetypes="iso" filename=".*24fps.*" player="ISO_Player"/>).....