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 - nikc0069 - 2012-12-21

Can you place a different playercorefactory per user?


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-12-21

(2012-12-21, 00:57)nikc0069 Wrote: Can you place a different playercorefactory per user?
I cannot guess your login user....




RE: Another External Player Code, but Very Simple to Setup - wraslor - 2012-12-21

I'm trying to get this to work for all iso files and any mkv, ts, m2ts file labeled with .sbs3d to launch in tmt5. Below is my playercorefactory. When I hit play xbmc tries to play it like normal no tmt 5 launch. I should note that I have fullscreen on not fullscreen window as with window I get horrible stuttering like watching a slide show. Any ideas?

Thanks.



<playercorefactory>
<players>
<player name="SBS-3D" type="ExternalPlayer" audio="false"

video="true">
<filename>C:\Program Files (x86)\ArcSoft\TotalMedia

Theatre 5\uTotalMediaTheatre5.exe</filename>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="tmt5" type="ExternalPlayer" audio="true"

video="true">
<filename>C:\Users\Media Center\AppData\Roaming\XBMC\userdata\playiso.bat </filename>
<filename>C:\Program Files (x86)\ArcSoft\TotalMedia

Theatre 5\uTotalMediaTheatre5.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|ts|m2ts" filename=".*sbs3d.*"

player="SBS-3D"/>
<rule filetype="iso" player="tmt5"/>
</rules>
</playercorefactory>



RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-12-21

@Wraslor-
For external player to work right, you have to disable "Use fullscreen windows rather than true fluscreen"....

You can replace this line <args>"{1}" /fullscreen /close</args> with this <args>"{1}"</args> in TMT5 player, and add <args>"{1}"</args> in SBS-3D player...


RE: Another External Player Code, but Very Simple to Setup - egtrev - 2012-12-21

Just to let everyone know Frodo RC2 now sends the correct info to mount an ISO for external players.


Re: RE: Another External Player Code, but Very Simple to Setup - bluc - 2012-12-22

(2012-12-21, 03:07)bluray Wrote:
(2012-12-21, 00:57)nikc0069 Wrote: Can you place a different playercorefactory per user?
I cannot guess your login user....

I think he meant if there are multiple users on PC add different playercorefactory for each user.
(2012-12-21, 20:40)egtrev Wrote: Just to let everyone know Frodo RC2 now sends the correct info to mount an ISO for external players.
Does this make any difference to external players?


RE: Another External Player Code, but Very Simple to Setup - egtrev - 2012-12-22

(2012-12-22, 11:09)bluc Wrote:
(2012-12-21, 20:40)egtrev Wrote: Just to let everyone know Frodo RC2 now sends the correct info to mount an ISO for external players.
Does this make any difference to external players?

Yes external ISO playback has been broken since Beta 2, since XBMC sent the wrong info to mount the ISO. This has now been corrected and the ISO can be mounted.




RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-12-22

(2012-12-22, 11:09)bluc Wrote:
(2012-12-21, 03:07)bluray Wrote:
(2012-12-21, 00:57)nikc0069 Wrote: Can you place a different playercorefactory per user?
I cannot guess your login user....

I think he meant if there are multiple users on PC add different playercorefactory for each user.
I know, and I could have been clearer. I should have said yes he can. If I know his other login user, I can create a playercorefactory file for him.....




RE: Another External Player Code, but Very Simple to Setup - hopes - 2012-12-26

Hi,
new XBMC user here.
First of all let me say thank you bluray for this very helpful guide and support!Smile

Here's my problem that's driving me crazy:
I have set it up accordingly your first post and it all works fine but the PlayBDMV.
I mean TMT5 (ver. 5.0.1.114) is correctly launched when I choose BDMV_Player to launch index.bdmv (so I assume playercorefactory.xml and PlayBDMV.bat are right) but I just get a black screen with a warning "the file doesn't exist". Also trying to drop whatever index.bdmv file into the TMT5 GUI I get the same result.
It seems TMT5 can't open any index.bdmv (in fact if I try to browse via Opne File menu in TMT5 I can't even access index.bdmv and MovieObjects.bdmv cause they are excluded by the explorer filter...).
Loading the source folder (manually) works fine and TMT5 plays the content.

I've googled a little bit and I didn't found any tip/workaround.

playercorefactory.xml
Code:
<playercorefactory>
    <players>
        <player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\kirth\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\kirth\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>false</hidexbmc>

        </player>
        <player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>false</hidexbmc>
                        <warpcursor>none</warpcursor>

                </player>
        <player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\kirth\Downloads\Software\MPC-Homecinema.2075_(x86)\mpc-hc.exe</filename>
            <args>"{1}" /fullscreen /close</args>
            <hidexbmc>false</hidexbmc>
            <hideconsole>true</hideconsole>
            <warpcursor>none</warpcursor>
  
        </player>
        </players>
        <rules action="prepend">
        <!-- Bluray ISO -->
        <rule filename=".iso" filetypes="iso" player="ISO_Player"/>
        <!-- Bluray BDMV -->
        <rule filename=".bdmv" filetypes="bdmv" player="BDMV_Player"/>
        <!-- Bluray M2TS -->
        <rule filename=".m2ts" filetypes="m2ts" player="Universal_Player"/>
        <!-- Bluray MKV -->
        <rule filename=".mkv" filetypes="mkv" player="Universal_Player"/>
        <!-- Bluray AVI -->
        <rule filename=".avi" filetypes="avi" player="Universal_Player"/>
        <!-- Bluray TS -->
        <rule filename=".ts" filetypes="ts" player="Universal_Player"/>
        
                <!-- Bluray Disc -->
        <rule filetypes="bd|ifo" player="Disc_Player"/>
        
</rules>
</playercorefactory>

PlayBDMV.bat
Code:
@echo off
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\Index.bdmv=%
"C:\Program Files\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" %pth% exit

XBMC.log (extract...)

Code:
....
13:28:52 T:256208  NOTICE: ExternalPlayer Filename: C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayBDMV.bat
13:28:52 T:256208  NOTICE: ExternalPlayer Tweaks: hideconsole (true), hidexbmc (false), islauncher (false), warpcursor ()
13:28:52 T:256208  NOTICE: CExternalPlayer::OpenFile: bluray://O%3a%5cBluRay%5cThe%20Exorcist%201973%201080p%20Blu-ray%20VC-1%20DTS-HD%20MA%205.1%5cEXORCIST_DC%5c/BDMV/PLAYLIST/00100.mpls
13:28:52 T:256836  NOTICE: Thread CExternalPlayer start, auto delete: false
13:28:52 T:256836  NOTICE: CExternalPlayer::Process: Player : C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayBDMV.bat
13:28:52 T:256836  NOTICE: CExternalPlayer::Process: File   : O:\BluRay\The Exorcist 1973 1080p Blu-ray VC-1 DTS-HD MA 5.1\EXORCIST_DC\BDMV\PLAYLIST\00100.mpls
13:28:52 T:256836  NOTICE: CExternalPlayer::Process: Content:
13:28:52 T:256836  NOTICE: CExternalPlayer::Process: Args   : "{1}"
13:28:52 T:256836  NOTICE: CExternalPlayer::Process: Start
13:28:52 T:256836  NOTICE: CExternalPlayer::ExecuteAppW32:  "C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayBDMV.bat" "O:\BluRay\The Exorcist 1973 1080p Blu-ray VC-1 DTS-HD MA 5.1\EXORCIST_DC\BDMV\PLAYLIST\00100.mpls"
13:29:11 T:256836  NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
.....

Any help would be really appreciated.
Cheers


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-12-26

@hopes-

You can try the simpler playcorefactory codes below-

Playercorefactory.xml:

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\kirth\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>

</player>
<player name="Universal_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\kirth\Downloads\Software\MPC-Homecinema.2075_(x86)\mpc-hc.exe</filename>
<args>"{1}"</args>
<hidexbmc>false</hidexbmc>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<rule filetypes="iso" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray M2TS -->
<rule filetypes="m2ts" player="Universal_Player"/>
<!-- Bluray MKV -->
<rule filetypes="mkv" player="Universal_Player"/>
<!-- Bluray AVI -->
<rule filetypes="avi" player="Universal_Player"/>
<!-- Bluray TS -->
<rule filetypes="ts" player="Universal_Player"/>

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




RE: Another External Player Code, but Very Simple to Setup - hopes - 2012-12-27

Thanks for the quick reply.
I've just tested your playercorefactory.xml and I get the same output as before.
After selecting play with BDMV_Player (default), I choose play main title and then I get a "File doesn't exist" warning in TMT5 and then I get this window:
Image

Ignoto could be translated as "Unknown"...
btw: I tested my previous set of files (playercorefactory, playBDMV, etc) on another system with TMT3 and it works as expected, also for index.bdmv Huh


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

(2012-12-27, 11:32)hopes Wrote: Thanks for the quick reply.
I've just tested your playercorefactory.xml and I get the same output as before.
After selecting play with BDMV_Player (default), I choose play main title and then I get a "File doesn't exist" warning in TMT5 and then I get this window:
Image

Ignoto could be translated as "Unknown"...
btw: I tested my previous set of files (playercorefactory, playBDMV, etc) on another system with TMT3 and it works as expected, also for index.bdmv Huh

What version of XBMC are you using?
From the log file, XBMC is sending "O:\BluRay\The Exorcist 1973 1080p Blu-ray VC-1 DTS-HD MA 5.1\EXORCIST_DC\BDMV\PLAYLIST\00100.mpls"
as the file to play, it is sending the playlist instead of index.bdmv this is why the BAT file is not working correctly.
If you are using Frodo make sure you select 'show blu-ray menus' instead of the main title from the popup selection.




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

hopes - Try this as PlayBDMV.bat
It should work whatever you select from the popup menu in Frodo.

Code:
Set file=%1
Set dummy=%file:mpls=%
IF NOT %dummy% == %file% (GOTO plaympls) ELSE (goto playbdmv)

:plaympls
set pth=%1
set pth=%pth:~1,-25%

"C:\Program Files\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\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" %pth% exit
GOTO end

:end
exit






RE: Another External Player Code, but Very Simple to Setup - Wymiatacz87 - 2012-12-27

I'm using TMT5 as external player for blu-ray's. When I close external player and get back to xbmc there is no sound - only way to get back sound is to restart XBMC. When I try to play some other movie, close XBMC or change sound settings - XBMC is crashing...

When I change in audio settings from directsound to wasapi there is no problem with external player but when I launch some games with advanced launcher the games are crashing - with directsound games works fine. I want to play games and watch blu-ray movies without changing the settings...
I'm using Frodo RC2. In Eden there were no problems...
How can I fix this?


RE: Another External Player Code, but Very Simple to Setup - bluray - 2012-12-27

(2012-12-27, 11:32)hopes Wrote: Thanks for the quick reply.
I've just tested your playercorefactory.xml and I get the same output as before.
After selecting play with BDMV_Player (default), I choose play main title and then I get a "File doesn't exist" warning in TMT5 and then I get this window:
Image

Ignoto could be translated as "Unknown"...
btw: I tested my previous set of files (playercorefactory, playBDMV, etc) on another system with TMT3 and it works as expected, also for index.bdmv Huh
It seems that you are selecting mpls file instead of bdmv file......

Eden+TMT5 works fine with MovieObject and Index files on my HTPC....


(2012-12-27, 14:51)Wymiatacz87 Wrote: I'm using TMT5 as external player for blu-ray's. When I close external player and get back to xbmc there is no sound - only way to get back sound is to restart XBMC. When I try to play some other movie, close XBMC or change sound settings - XBMC is crashing...

When I change in audio settings from directsound to wasapi there is no problem with external player but when I launch some games with advanced launcher the games are crashing - with directsound games works fine. I want to play games and watch blu-ray movies without changing the settings...
I'm using Frodo RC2. In Eden there were no problems...
How can I fix this?
If you are bitstreaming audio through HDMI, you should be using Exclusive mode and WASAPI.....you can check out this thread for tips- Windows How to Bitstreaming using XBMC.........