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: XBMC 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)



- Mrbrooks - 2012-01-27 05:54

Mrbrooks Wrote:Ok i just managed to make it work with mpc, powerdvd still not working...

Ok, i made a test using BDMV player and Universal player both linked to mpc.

Test Findings:

a) With the universal player option i am able to make work mpc with an mp4 file ad a BDMV directory.

b) With the BDMV player option i am able to make work mpc with mp4 files but with the BDMV file, mpc opens and says file not found....

So what am i missing to make BDMV directories play with external players?

Thanks

Test Code:



<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Core\AppData\Roaming\XBMC\userdata\PlayBDMV.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)\Media Player Classic - Home Cinema\mpc-hc.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

@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)\Media Player Classic - Home Cinema\mpc-hc.exe" %pth% exit


- raidflex - 2012-01-27 06:06

bluray Wrote:I'm glad that it worked. The movie should stop completely when you press "stop", and you should be able to go back to XBMC with "back" button. Make sure that you use "uMCEPlayer5.exe" in your codes!

The path in the PlayHDaudio.bat file does point to uMCEPlayer5.exe and I verified that the file exists.

What I have noticed is that if I hit stop on the remote the movie will not stop playing in TMT5 and it will just switch back to XBMC with movie playing in background. If I use a mouse and manually hit stop on the TMT5MCE plugin the movie will stop, but it will not switch back to XMBC unit I hit the back on the remote.

Also when manually stopping the movie and hitting back on the remote XBMC still says that the external player is active until I hit OK.


- bluray - 2012-01-27 06:56

Mrbrooks Wrote:Ok i just managed to make it work with mpc, powerdvd still not working...
I'm not quite sure why it didn't work with PDVD11. Unfortunately, I don't have PDVD11 to verify it. It works fine with PDVD10 on two of my HTPC's though!


- bluray - 2012-01-27 07:07

Mrbrooks Wrote:b) With the BDMV player option i am able to make work mpc with mp4 files but with the BDMV file, mpc opens and says file not found....

So what am i missing to make BDMV directories play with external players?

Thanks
You can set your PlayBDMV.bat as shown below:

@echo off
rem you can place your PlayBDMV file in \Roaming\XBMC\userdata\

set pth=%1
"C:\Program Files\Media Player Classic - Home Cinema\mpc-hc64.exe" %pth% exit



-Every player works slightly different....


- bluray - 2012-01-27 07:15

raidflex Wrote:The path in the PlayHDaudio.bat file does point to uMCEPlayer5.exe and I verified that the file exists.

What I have noticed is that if I hit stop on the remote the movie will not stop playing in TMT5 and it will just switch back to XBMC with movie playing in background. If I use a mouse and manually hit stop on the TMT5MCE plugin the movie will stop, but it will not switch back to XBMC unit I hit the back on the remote.

Also when manually stopping the movie and hitting back on the remote XBMC still says that the external player is active until I hit OK.
I think it have something to do with TMT5 PlayDVD codes in "AppData\Roaming\ArcSoft\ArcSoft TotalMedia Theatre 5\5.0".

I forgot what I did in it to make it work. When I can think of it, I'll let you know. Sorry, my brain went blank on me. You can google under TMT5 "stop/exit" keymap too..!


- spliffen - 2012-01-28 03:11

bluray Wrote:Yes, you can do by setting MPC-HC Key to stop and exit MPC-HC as shown in my screen shot below:
[Image: 2nhgj05.jpg]


Thanks for the reply, that did it =)

My next problem is that xbmc it self takes about 25-30% gpu load , why is that?
Gpu load for just mpc-hc is about 12-20% , but when running xbmc with mpc-hc as external player gpu load is 99-100% and video is choppy and freezes.
I know that amd fusion e450 is not that powerful but it looks like some kind of conflict or something .

Best regards


- bluray - 2012-01-28 06:15

spliffen Wrote:Thanks for the reply, that did it =)

My next problem is that xbmc it self takes about 25-30% gpu load , why is that?
Gpu load for just mpc-hc is about 12-20% , but when running xbmc with mpc-hc as external player gpu load is 99-100% and video is choppy and freezes.
I know that amd fusion e450 is not that powerful but it looks like some kind of conflict or something .

Best regards
I'm glad that MPC-HC keymap works out for you!

Try to change these lines in playercorefactory to "true". Try one line at a time. If it improve playback, you have your answer.

<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>

video="true">


- Mrbrooks - 2012-01-28 18:41

Hi Bluray

I finally got both powerdvd11 and MPC working, the code was not the problem, i managed to get it working by uninstalling PDVD and reinstalling it again.... i was going nuts... i spend like 3 or 4 days not watching movies or videos beceause i was obssesed with it.

Thanks and have a good weekend!!!

This is my finall working code just for reference. Now i am going to enjoy a couple of movies and then i will taka a dive into the iso part...

<playercorefactory>

<players>
<player name="PDVD11" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe</filename>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="MPC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\Media Player Classic - Home Cinema\mpc-hc.exe</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>

<rules action="prepend">
<rule name="Blu-Ray" protocols="bd" player="PDVD11"/>
<rule filetypes="mkv|ts|mts|m2ts" player="PDVD11"/>
</rules>

</playercorefactory>


- raidflex - 2012-01-28 23:54

bluray Wrote:I think it have something to do with TMT5 PlayDVD codes in "AppData\Roaming\ArcSoft\ArcSoft TotalMedia Theatre 5\5.0".

I forgot what I did in it to make it work. When I can think of it, I'll let you know. Sorry, my brain went blank on me. You can google under TMT5 "stop/exit" keymap too..!

Were you able to figure this out? Thanks.


- bluray - 2012-01-29 08:26

raidflex Wrote:Were you able to figure this out? Thanks.
I never have a chance to look into to it. I am very busy house works this weekend!