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 - bluray - 2012-09-07

(2012-09-07, 09:01)Skank Wrote:
(2012-09-06, 21:39)bluray Wrote:
(2012-09-06, 20:25)Skank Wrote:
You got thing solved at a time. You'll get all of it solve very soon....Nod

You still can use the same codes by replacing TMT5 with MPC-HC as shown below.....

@echo off
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1 ping -n 2 -w 1000 127.0.0.1 > nul
"C:\Program Files (x86)\MPC-HC\mpc-hc.exe" E:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u exit

VCD Mount says :

Cant mount : 127.0.0.1
The delay doesn't seem to work then. You can try without the delay as shown below....

@echo off
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\MPC-HC\mpc-hc.exe" E:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u


(2012-09-07, 09:57)egtrev Wrote: Is there a way for a specific file name to go to a different line on a BAT file or go to a different BAT file, I have a few BD that play the wrong playlist, I need to have those go to a separate line that tells them what playlist to play. Possible?
You have to link the rules to the correct BAT files. A few samples are listed below-

<!-- Bluray ISO -->
<rule filenames="iso" filetypes="iso" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filenames="bdmv" filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray M2TS -->
<rule filenames="m2ts" filetypes="m2ts" player="Universal_Player"/>
<!-- Bluray M2TS -->
<rule filenames="mkv" filetypes="mkv" player="Universal_Player"/>
<!-- Bluray Disc -->
<rule filenames="BD" name="E:\\.*" filetypes="bdmv" player="Disc_Player"/>






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

(2012-09-07, 11:51)_novalis Wrote:
(2012-09-07, 05:10)bluray Wrote: What are your CPU and GPU?

CPU: Phenom II X4 945
GPU: NVIDIA GeForce 8200 Chipset of AMDs M3N78-VM Motherboard
Sound and Graphics over HDMI to AVR
Try the steps below-

1. Update Nvidia latest driver from here- Option 2: Automatically find drivers for my NVIDIA products
2. Enable DXVA2 and select DXVA as Render method and disable everything else in XBMC system/video/playback
3. Enable "Use fullscreen window rather than true fullscreen" in XBMC system/system/video output
4. Select HDMI and WASAPI in XBMC system/system/audio output







RE: Another External Player Code, but Very Simple to Setup - egtrev - 2012-09-07

(2012-09-07, 09:57)egtrev Wrote: Is there a way for a specific file name to go to a different line on a BAT file or go to a different BAT file, I have a few BD that play the wrong playlist, I need to have those go to a separate line that tells them what playlist to play. Possible?

You have to link the rules to the correct BAT files. A few samples are listed below-

<!-- Bluray ISO -->
<rule filenames="iso" filetypes="iso" player="ISO_Player"/>
<!-- Bluray BDMV -->
<rule filenames="bdmv" filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray M2TS -->
<rule filenames="m2ts" filetypes="m2ts" player="Universal_Player"/>
<!-- Bluray M2TS -->
<rule filenames="mkv" filetypes="mkv" player="Universal_Player"/>
<!-- Bluray Disc -->
<rule filenames="BD" name="E:\\.*" filetypes="bdmv" player="Disc_Player"/>

I have those but I want
avatar.iso
inception.iso
to play in TMT5 and the rest in MPC
I tried -
<rule filenames="avatar.iso" filetypes="iso" player="ISO_Player2"/>
<rule filenames="iso" filetypes="iso" player="ISO_Player"/>

But avatar.iso still defaults to ISO_Player (MPC) instead of ISO_Player2 (TMT5)

Am I using the rule correctly?

Thanks.




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

(2012-09-07, 18:31)egtrev Wrote: I have those but I want
avatar.iso
inception.iso
to play in TMT5 and the rest in MPC
I tried -
<rule filenames="avatar.iso" filetypes="iso" player="ISO_Player2"/>
<rule filenames="iso" filetypes="iso" player="ISO_Player"/>

But avatar.iso still defaults to ISO_Player (MPC) instead of ISO_Player2 (TMT5)

Am I using the rule correctly?

Thanks.
Use this rule (<rule filetypes="iso" filename=".*_TMT5.*" player="ISO_Player2"/>) and name your movies Avatar_TMT5.iso and Inception_TMT5.iso.........




RE: Another External Player Code, but Very Simple to Setup - _novalis - 2012-09-08

(2012-09-07, 16:09)bluray Wrote: Try the steps below-

1. Update Nvidia latest driver from here- Option 2: Automatically find drivers for my NVIDIA products
2. Enable DXVA2 and select DXVA as Render method and disable everything else in XBMC system/video/playback
3. Enable "Use fullscreen window rather than true fullscreen" in XBMC system/system/video output
4. Select HDMI and WASAPI in XBMC system/system/audio output

Same as before. XBMC somehow interferes with tmt. The moment I close xbmc the stuttering disappears.




RE: Another External Player Code, but Very Simple to Setup - egtrev - 2012-09-08

(2012-09-08, 04:24)bluray Wrote: Use this rule (<rule filetypes="iso" filename=".*_TMT5.*" player="ISO_Player2"/>) and name your movies Avatar_TMT5.iso and Inception_TMT5.iso.........

That worked perfectly, thanks for your help Big Grin


RE: Another External Player Code, but Very Simple to Setup - ntk1 - 2012-09-08

(2012-09-05, 18:07)bluray Wrote:
(2012-09-05, 09:20)ntk1 Wrote: HELLO

i want to play my 3D blueray in external player ( tmt5 ) all of the 3d blueray movies i have in ISO files, but i also have DVD movies and bluray movies in ISO that i want to play with XBMC player, how can i do it ?

thanks
You can try the codes below, and need to enter the correct user where "xxxx"-

Playercorefactory.xml:

<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\xxxx\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" </args>
<hidexbmc>true</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<rule filetypes="iso" filename=".*_3dbd.*" player="ISO_Player"/>
</rules>
</playercorefactory>
---------------------------------------
PlayISO.bat:

@echo off
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" O:


THANKS! WORK GREAT



RE: Another External Player Code, but Very Simple to Setup - Gingerbread Man - 2012-09-08

(2012-09-07, 05:10)bluray Wrote:
(2012-09-06, 21:50)Gingerbread Man Wrote:
(2012-09-06, 21:39)bluray Wrote: It will use PDVD12 when you click PlayDisc in XBMC UI.......

If I double click the .bat file for playdisc.bat in explorer, powerdvd loads up.
if I click play disc in XBMC, a circular timer icon appears as it thinks and then nothing happens.
Since PDVD12 don't work with PlayBDMV.bat, I'm not sure that it will work. I explained my finding in the earlier post on this matter.

You can try the codes below [for it to work, you have to create playercorefactory.xml, playdisc.bat and playbdmv.bat and save all 3 files in <C:\Users\Media Centre\AppData\Roaming\XBMC\userdata> folder]-

Playercorefactory.xml:

<playercorefactory>
<players>
<player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Media Centre\AppData\Roaming\XBMC\userdata\PlayDisc.bat</filename>
<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
<player name="BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Media Centre\AppData\Roaming\XBMC\userdata\PlayBDMV.bat</filename>
<args>"{1}" /close</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<!-- Bluray BDMV -->
<rule filenames="bdmv" filetypes="bdmv" player="BDMV_Player"/>
<!-- Bluray Disc -->
<rule filenames="BD" name="F:\\.*" filetypes="bdmv" player="PowerDVD"/>
</rules>
</playercorefactory>

PlayDisc.bat:

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

"C:\Program Files (x86)\cyberlink\PowerDVD12\PowerDVD12.exe" F:

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)\cyberlink\PowerDVD12\PowerDVD12.exe" %pth% exit
(2012-09-06, 22:19)_novalis Wrote: Hi bluray,

my stuttering problem with tmt5 only occurs in combination with xbmc. The bluray iso started directly in tmt works perfect.
If I launch my bluray from within xbmc, tmt5 is playing, the movie stutters. Then, if I close xbmc, tmt continues to play, the stuttering goes away.
Tried hide xbmc true/false, no difference. HW acc on/off. Tried almost every setting I guess.
Any explanation/solution for this?

Thanks.
novalis
What are your CPU and GPU?

It loads it but doesn't tend to switch focus like you'd hope. But you say that there is issues with PowerDVD12, so that'll be fine then.

Many thanks.



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

(2012-09-08, 10:48)_novalis Wrote:
(2012-09-07, 16:09)bluray Wrote: Try the steps below-

1. Update Nvidia latest driver from here- Option 2: Automatically find drivers for my NVIDIA products
2. Enable DXVA2 and select DXVA as Render method and disable everything else in XBMC system/video/playback
3. Enable "Use fullscreen window rather than true fullscreen" in XBMC system/system/video output
4. Select HDMI and WASAPI in XBMC system/system/audio output

Same as before. XBMC somehow interferes with tmt. The moment I close xbmc the stuttering disappears.
I'm using TMT5 with XBMC without hiding XBMC on my Intel E7200+AMD HD5570, AMD E350+Nvidia GT430, AMD Athlon II X4 610E+•ATI HD5470, Intel i5-2400k+HD2000, etc......and there is no stutter......as you can see, my HTPC's are not the most powerful either.....


(2012-09-08, 12:14)egtrev Wrote:
(2012-09-08, 04:24)bluray Wrote: Use this rule (<rule filetypes="iso" filename=".*_TMT5.*" player="ISO_Player2"/>) and name your movies Avatar_TMT5.iso and Inception_TMT5.iso.........

That worked perfectly, thanks for your help Big Grin
Good to know.....Nod


(2012-09-08, 14:59)ntk1 Wrote: THANKS! WORK GREAT
Good to know...Nod




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

(2012-09-08, 17:36)Gingerbread Man Wrote: It loads it but doesn't tend to switch focus like you'd hope. But you say that there is issues with PowerDVD12, so that'll be fine then.

Many thanks.
Un-fortunately, PDVD12 doesn't work with XBMC BDMV code. If you convert your blu-ray disc to ISO, it will work fine. Here is my previouse statement- post #668...




RE: Another External Player Code, but Very Simple to Setup - deaerator - 2012-09-08

Hello

I am having trouble with tmt 5.0.

When i hit the button to stop, it won't exit and go back to xbmc screen.

How do I exit tmt 5.0 only using the mce remote


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

(2012-09-08, 23:45)deaerator Wrote: Hello

I am having trouble with tmt 5.0.

When i hit the button to stop, it won't exit and go back to xbmc screen.

How do I exit tmt 5.0 only using the mce remote
Hit STOP button and then BACK button.....




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

(2012-08-29, 22:58)dpar Wrote: I already tried setting it to "<hidexbmc>false</hidexbmc>" and it didn't make a difference. The cmd console window still shows while it is running the .bat file.
Is there a way to run the .bat file minimized or hidden?

Hi dpar and bluray,

Just wondering if you have found a solution for this problem or if it's just bad luck we are using Windows 7 64-bit.

Cheers,
Steve


<playercorefactory>
<players>
<player name="ISO_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\HTPC-SteveM\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<!-- Bluray ISO -->
<rule filetypes="iso" filename=".*_3dbd.*" player="ISO_Player"/>
</rules>
</playercorefactory>

------------------------------------------------

@echo off
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uMCEPlayer5.exe" O:



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

@dpar & smuller,

Can you post a screen shot so we know exactly what are referring too?


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

(2012-09-09, 19:28)bluray Wrote: @dpar & smuller,

Can you post a screen shot so we know exactly what are referring too?

Hi bluray, I will make some screenshots tonight Wink

But to explain it easily, I click on a 3D movie within xbmc, then it's going to the windows desktop where it opens the small cmd screen, then it's opening the tmt blue screen with the drive letters etc.. and then it's opening the movie.

We are trying to hide the desktop part and perhaps even if possible the tmt screen so it will go directly to the movie.

Cheers, Steve