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 - 2014-02-03

(2014-02-03, 14:26)olli460 Wrote: But i didn't get the command window on my server only my main PC?
I'm not sure how you setup your server, but PlayISO.bat reacts the same way on all my PC's with Windows 7 and 8.1. Maybe, your XBMC profile in Roaming is messing up. You can try to save XBMC folder in Roaming by rename it to XBMC_orig, then launch XBMC to generate a new XBMC folder in Roaming and then copy all the .xml and .bat files from XBMC_orig to the new XBMC folder.

If it doesn't work, you can always go back to XBMC_orig folder....


RE: Another External Player Code, but Very Simple to Setup - olli460 - 2014-02-04

Spent a couple hours messing about with settings today but ive finally figured out why its happening.

When i play movies with Direct Sound this makes my 2D Movies in XBMC stutter for 2-3 seconds then freeze. However with directsound on i can play 3D Movies through XBMC using TMT6 as an external player.

If i use the WASAPI sound my 2D Movies are fine playing within XBMC, However when i try to play a 3D Movie using an external player it plays for 2-3 seconds then freezes.

So i'm guessing there's some conflict between the 2 programs is the audio reserved for XMBC or something when using WASAPI.

Really hope you have a solution.
Thanks

EDIT: Just tried this on my other PC and exactly the same thing happens so not just on the 1 PC.


RE: Another External Player Code, but Very Simple to Setup - poo123 - 2014-02-05

So I can set up tmt6 to play bluray.iso and bmdv folder as external player in xbmc ...everything works...except I don't like tmt6 I like powerdvd.

So after reading this entire thread it appears powerdvd12 and up wont play the index file. I can get iso files mounted and playing no problem using PowerDVDCinema13.exe

SO powerdvd13 wont play the index file but it WILL play the folder using the PDVDLP.exe using this batch file I made and put on desktop....this opens powerdvd and auto plays the bmdv file


"C:\Program Files (x86)\CyberLink\PowerDVD13\PDVDLP.exe" AUTOPLAY "M:\Full Blurays\Captain.Phillips.2013.BluRay"

so is there any way to make this work in xbmc when u select the folder to have it open in powerdvd ?


RE: Another External Player Code, but Very Simple to Setup - CheeseNacho - 2014-02-22

So, I'm taking Blurays advice and will post my question here...

What is the simplest method to use PowerDVD13 as the alternative player in Windows XBMC 12.3 without major surgery?

Is it solely a modified playcorefactory file, or do I need to employ surgical instruments to make this work?

Any advice is appreciated.

CN


RE: Another External Player Code, but Very Simple to Setup - andcbii - 2014-02-24

Any idea why these don't work?

playercorefactory.xml
Code:
<playercorefactory>
    <players>
        <player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>True</hidexbmc>
                        <hideconsole>true</hideconsole>
                        <forceontop>false</forceontop>

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

                </player>
        <player name="Universal_Player" 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>
                        <forceontop>false</forceontop>

                                                          
        </player>
        </players>
        <rules action="prepend">
        <!-- Bluray ISO/BDMV -->
        <rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
        <!-- Multiple files -->
        <rule filetypes="m2ts|mkv|avi|ts" player="Universal_Player"/>    

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

PlayDisc.bat
Code:
@echo off
rem you can place your PlayDisc file in \Roaming\XBMC\userdata\

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" G:

PlayISO.bat
Code:
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto next)

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

:playiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" G:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end

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

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

:end
exit

http://xbmclogs.com/show.php?id=137726

XBMC still tries to play the files natively. The ISO does not get mounted and TMT 5 does not launch.


RE: Another External Player Code, but Very Simple to Setup - rwidebrook - 2014-02-24

Has anyone here that's playing ISO files been able to get rid of the "select playback item" when trying to play a title from the movie library?


RE: Another External Player Code, but Very Simple to Setup - bluray - 2014-02-24

(2014-02-24, 06:04)andcbii Wrote: Any idea why these don't work?

playercorefactory.xml
Code:
<playercorefactory>
    <players>
        <player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\Andrew\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename>
            <args>"{1}"</args>
            <hidexbmc>True</hidexbmc>
                        <hideconsole>true</hideconsole>
                        <forceontop>false</forceontop>

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

                </player>
        <player name="Universal_Player" 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>
                        <forceontop>false</forceontop>

                                                          
        </player>
        </players>
        <rules action="prepend">
        <!-- Bluray ISO/BDMV -->
        <rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>
        <!-- Multiple files -->
        <rule filetypes="m2ts|mkv|avi|ts" player="Universal_Player"/>    

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

PlayDisc.bat
Code:
@echo off
rem you can place your PlayDisc file in \Roaming\XBMC\userdata\

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" G:

PlayISO.bat
Code:
Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto next)

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

:playiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1
"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 5\uTotalMediaTheatre5.exe" G:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end

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

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

:end
exit

http://xbmclogs.com/show.php?id=137726

XBMC still tries to play the files natively. The ISO does not get mounted and TMT 5 does not launch.
You need to verify your VCD and BD-ROM drives. You have it under the same G drive in your files...


RE: Another External Player Code, but Very Simple to Setup - andcbii - 2014-02-26

G is correct. Also i don' think that would stop the file from mounting since I'm using:

"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1

Doesn't that mount the ISO to the first virtual drive.

***EDIT***
OK, i see what's happening. When i would select a Blu-ray i would see the menu asking me to select which title to play. I though this meant something wasn't working. Once i selected a title THEN the external player code kicked in... I didn't realize it worked this way. Is there anyway to bypass that menu?


RE: Another External Player Code, but Very Simple to Setup - andyd - 2014-02-26

I can't remember what causes this - I have 12.3 installed - is there a way to stop XBMC from beeping like crazy while trying to mount an iso?


RE: Another External Player Code, but Very Simple to Setup - andcbii - 2014-02-26

(2014-02-26, 06:50)andyd Wrote: I can't remember what causes this - I have 12.3 installed - is there a way to stop XBMC from beeping like crazy while trying to mount an iso?

You have to turn off the GUI Sounds.
System-> Audio output -> Play GUI Sounds = Never


RE: Another External Player Code, but Very Simple to Setup - andyd - 2014-02-26

Ah ok thanks!


RE: Another External Player Code, but Very Simple to Setup - bluray - 2014-02-26

(2014-02-26, 06:33)andcbii Wrote: G is correct. Also i don' think that would stop the file from mounting since I'm using:
You shouldn't have the same G drive for both Optical drive and VCD drive....


RE: Another External Player Code, but Very Simple to Setup - andcbii - 2014-02-27

(2014-02-26, 15:56)bluray Wrote:
(2014-02-26, 06:33)andcbii Wrote: G is correct. Also i don' think that would stop the file from mounting since I'm using:
You shouldn't have the same G drive for both Optical drive and VCD drive....

Ahhh I see what you are saying. Like I said I was able to get the ISO's to mount and play. It was a user error. I would still like to know if there is a way to bypass the title selection when trying to play a blu-ray. It's not a big deal but sometimes that menu can take a while to load.

I've got one last question. Is their any way to have the code work based on file size? I really only want to use the external player for Blu-rays. I don't see a point in using one with DVDs. I'm guessing this isn't possible but it would be nice.


RE: Another External Player Code, but Very Simple to Setup - bluray - 2014-02-27

(2014-02-27, 05:22)andcbii Wrote: I would still like to know if there is a way to bypass the title selection when trying to play a blu-ray. It's not a big deal but sometimes that menu can take a while to load.
I don't think that there is any option to disable it. It's part of XBMC Blu-ray menu option.

(2014-02-27, 05:22)andcbii Wrote: I've got one last question. Is their any way to have the code work based on file size? I really only want to use the external player for Blu-rays. I don't see a point in using one with DVDs. I'm guessing this isn't possible but it would be nice.
You can add this rule- <rule filetypes="iso|bdmv|mpls" filename=".*blu-ray." player="ISO_BDMV_Player"/> and then name your ISO movie as this- Avatar_blu-ray.iso. It will playback using external player only the ISO with "blu-ray" in the name.....


RE: Another External Player Code, but Very Simple to Setup - andcbii - 2014-02-27

(2014-02-27, 06:15)bluray Wrote:
(2014-02-27, 05:22)andcbii Wrote: I would still like to know if there is a way to bypass the title selection when trying to play a blu-ray. It's not a big deal but sometimes that menu can take a while to load.
I don't think that there is any option to disable it. It's part of XBMC Blu-ray menu option.

(2014-02-27, 05:22)andcbii Wrote: I've got one last question. Is their any way to have the code work based on file size? I really only want to use the external player for Blu-rays. I don't see a point in using one with DVDs. I'm guessing this isn't possible but it would be nice.
You can add this rule- <rule filetypes="iso|bdmv|mpls" filename=".*blu-ray." player="ISO_BDMV_Player"/> and then name your ISO movie as this- Avatar_blu-ray.iso. It will playback using external player only the ISO with "blu-ray" in the name.....

Thanks for the naming tip!