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)



- bluray - 2012-02-21 18:07

xero273 Wrote:I tried it with the files you generated for me and I had the same problem. but when I work with xbmc in windowed mode TMT5 will launch. XBMC full screen mode = the problem I had in original post.
You can try to replace (<args>"{1}" /fullscreen</args>) with this (<args>"{1}"</args>) in Playercorefactory.xml code.


- xero273 - 2012-02-22 01:37

bluray Wrote:You can try to replace (<args>"{1}" /fullscreen</args>) with this (<args>"{1}"</args>) in Playercorefactory.xml code.

Just tried it. Still does not work. Could this be the problem in the log file?

18:35:45 T:3264 M:4294967295 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(bd) in bd://movie.tbn/
18:35:45 T:3708 M:4294967295 NOTICE: CExternalPlayer::ExecuteAppW32: "C:\Users\Xero\AppData\Roaming\XBMC\userdata\PlayDisc.bat" "bd://1"
18:35:46 T:3708 M:4294967295 NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
18:35:46 T:3708 M:4294967295 NOTICE: CExternalPlayer::Process: XBMC cannot stay hidden for a launcher process


Hey BLuRay - Riker0007 - 2012-02-22 03:33

bluray Wrote:Is the VCD drive in the code okay- "C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" G:

I've been trying a lot of different combos and this seem to work with the right click and open with playiso.bat a blu ray iso. But it does not make it play. I have to hit the play button and or select that drive in the drop down movie selection in powerdvd11. Is there a way to fix this or is this as good as it gets? And it doesn't seem to want to work in XBMC. It doesn't launch Powerdvd11.

@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" /l=Q %1
"C:\Program Files (x86)\CyberLink\PowerDVD11\Powerdvd11.exe" Q:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /l=Q /u


<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}"</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="Disc_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe</filename>
<args>"{E:}"</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)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe</filename>
<args>"{1}"</args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>

</player>
</players>
<rules action="prepend">

<rule filename="*iso" player="ISO_Player"/>

<rule filename=".*mkv.*" player="Universal_Player"/>
<rule filename=".*m2ts.*" player="Universal_Player"/>
<rule filename=".*mts.*" player="Universal_Player"/>
<rule filename=".*ts.*" player="Universal_Player"/>
<rule filename=".*avi.*" player="Universal_Player"/>
<rule filename=".*mp4.*" player="Universal_Player"/>

<rule protocols="bd|dvd" player="Disc_Player"/>
</rules>
</playercorefactory>


When I put this as the 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=1 %1
"C:\Program Files (x86)\CyberLink\PowerDVD11\Powerdvd11.exe" Q:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=1 /u


It says there is no disc in Q. Please insert a disc in Q
Cancel ....Try again ..... Continue.


- bluray - 2012-02-22 04:01

xero273 Wrote:Just tried it. Still does not work. Could this be the problem in the log file?

18:35:45 T:3264 M:4294967295 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(bd) in bd://movie.tbn/
18:35:45 T:3708 M:4294967295 NOTICE: CExternalPlayer::ExecuteAppW32: "C:\Users\Xero\AppData\Roaming\XBMC\userdata\PlayDisc.bat" "bd://1"
18:35:46 T:3708 M:4294967295 NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
18:35:46 T:3708 M:4294967295 NOTICE: CExternalPlayer::Process: XBMC cannot stay hidden for a launcher process
Try these-

1. Download- playercorefactory.xml

2. If BD-ROM is not drive "E" in PlayDisc.bat, you have to set it to the correct BD-ROM drive- "C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" E:

3. You need to set Autoplay in Windows 7 control panel to "Take no Action". You can try to disable it by- (type "autoplay" in W7 Start search box to access it).
Auto Play:
[Image: 35177gg.jpg]


- bluray - 2012-02-22 04:59

Riker0007 Wrote:I've been trying a lot of different combos and this seem to work with the right click and open with playiso.bat a blu ray iso. But it does not make it play. I have to hit the play button and or select that drive in the drop down movie selection in powerdvd11. Is there a way to fix this or is this as good as it gets? And it doesn't seem to want to work in XBMC. It doesn't launch Powerdvd11.

@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" /l=Q %1
"C:\Program Files (x86)\CyberLink\PowerDVD11\Powerdvd11.exe" Q:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /l=Q /u
I haven't have much time to play around with it. If I have time this weekend, I'll play around with it. It might be something simple, because the same codes work fine with TMT5.


- Riker0007 - 2012-02-22 06:33

bluray Wrote:I haven't have much time to play around with it. If I have time this weekend, I'll play around with it. It might be something simple, because the same codes work fine with TMT5.

Great. thanks for your help. This is weird. When I have this

@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" /l=q %1
"C:\Program Files (x86)\CyberLink\PowerDVD11\Powerdvd11.exe" Q:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /l=q /u

It just gets stuck at the xbmc screen. I check "My computer" and the iso mounts fine. I can then launch pwrdvd outside of xbmc it will work. When I try:
@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" /l=q %1
"C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" Q:
"C:\Program Files (x86)\CyberLink\PowerDVD11\Powerdvd11.exe" Q:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /l=q /u
The iso will launch pwrdvd11 and mount fine and actually play. But when I close it there is a note box that says there is another version of the app running etc.
Don't know if this helps or not, but I'll wait for your input.
thanks again.


- xero273 - 2012-02-22 08:06

bluray, it works. Thanks for the help!


- Chris12 - 2012-02-22 12:00

bluray Wrote:Can you try TMT5 15 days trial version? Just want to see if VCD and AndyDVD HD can mount/unmount BD ISO using TMT5 on your HTPC.
Did a quick try last night with TMT5 (latest version)

When using TMT5 with the same files used for PowerDVD11, it is still not working without the /l=G in the playISO.bat file, so that the G: drive is actually mounted to the _BD.iso file.

Witout the /l=G command option a message as I posted a couple of post ago is stated

[Image: 71vcderror.jpg]
(this is an other image, but same kind of error)

The image file isn't mounted to drive G:

The UAC is switched off in my win7 ultimate HTPC.

When opening the ISO from within XBMC, the same behavior as posted before (TMT5 is looking at drive E (the physical BRdrive) instead of drive G)
After closing this message TMT5 pop-ups, and the message of VCD appears again and so on. Only closing XBMC.exe process in the taskmanager stops this.

An other thing I noticed is, that with playercorefactory.xml placed in the userdata folder, all the files in XBMC (als DVD's with video_ts folder) will start up TMT5
That's not what I want. It should only start TMT5 when playing an Bluray disc (Play Disc in XBMC) or choosing a _BD.iso file from within XBMC

Tonight I will replace all the files again with the TMT5 files, maybe there's some in the files wrong.


- tomasg - 2012-02-22 13:26

Is it possible to add external subtitles in XBMC when I use external player for bluray disc from bdrom?


- bluray - 2012-02-22 16:32

Chris12 Wrote:Witout the /l=G command option a message as I posted a couple of post ago is stated
I'm not sure why it required to specify "/I=G" on your HTPC. VCD should mount to the specified drive in the 2nd line. I never have to specify it on my HTPC.