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 - true_devil - 2013-05-16

(2013-05-16, 09:55)Batiatus Wrote: Well more experimenting and still more issues. First, the stupid clicking sound from XBMC when launching TMT6 and then playback is horribly slow. Changed the GUI Sound settings to never and the clicking stopped. Now some of the 3D ISOs work fine (as descripbed above) but others play for 2-3 seconds and then just hang. Pirates 4 plays fine, Jurassic Park hangs. Tron fine, Dredd hangs. Wrath of the Titans fins but Clash hangs. Ugh!

Hi,

My knowledge is very limited in this area so i will have to defer to the other more experience members to contribute re TMT6...I use PDVD which i find works better for my setup (Nvdia 3d)

Sorry couldn't help more, I can try having a play with my TMT6 and see if i can figure it out.

Best,
TD


RE: Another External Player Code, but Very Simple to Setup - Batiatus - 2013-05-16

(2013-05-16, 17:01)true_devil Wrote: Hi,

My knowledge is very limited in this area so i will have to defer to the other more experience members to contribute re TMT6...I use PDVD which i find works better for my setup (Nvdia 3d)

Sorry couldn't help more, I can try having a play with my TMT6 and see if i can figure it out.

Best,
TD

Thanks for your efforts. I'm at the point now where all ISO files work fine when launched straight from explorer but it's hit and miss if they will work through XBMC. I checked out all 20 I have ripped to see which worked and which hung up and made a list to see if maybe it was file size related or studio or age or anything but with no common results. Then when I went back to check something else files that had worked before no didn't. So until some other experts are nice enough to offer their advice I'm not putting to much work into it. The theater won't be built for a couple months yet and maybe by then we'll have full HD 3D playback from easy to make MKV files?

One can dream, right?


RE: Another External Player Code, but Very Simple to Setup - dazz87 - 2013-05-19

I dont know what im doing wrong but I cant get this to work. It is making a weird clicking sound and locking up both xbmc and TMT5 when i try to play my movies. I am running Frodo 12.1 and TMT 5.3.1.172. I have no issue playing my iso or blu ray folder via TMT, it just when I am trying it inside of xbmc. Here are the info for

Playdisc
@echo off

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


playercorefactory

<playercorefactory>
<players>
<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\chris\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\chris\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>


PlayISO

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" H:
"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


RE: Another External Player Code, but Very Simple to Setup - CaptainKen - 2013-05-19

(2013-05-19, 04:17)dazz87 Wrote: I dont know what im doing wrong but I cant get this to work. It is making a weird clicking sound and locking up both xbmc and TMT5 when i try to play my movies. I am running Frodo 12.1 and TMT 5.3.1.172. I have no issue playing my iso or blu ray folder via TMT, it just when I am trying it inside of xbmc. Here are the info for

Playdisc
@echo off

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


playercorefactory
Code:
<playercorefactory>
    <players>
        <player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Users\chris\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\chris\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>


PlayISO

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" H:
"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

You stop the clicking noises by disabled GUI sound. This is a topic that has come up a lot in this thread.

BTW, please consider using the Code tags (as I have done for this replay) when posting code as it keeps the post sorter without loosing detail.



RE: Another External Player Code, but Very Simple to Setup - Batiatus - 2013-05-20

(2013-05-19, 23:13)CaptainKen Wrote: You stop the clicking noises by disabled GUI sound. This is a topic that has come up a lot in this thread.

BTW, please consider using the Code tags (as I have done for this replay) when posting code as it keeps the post sorter without loosing detail.


I'm going to ask how do you get TMT5/6 to stop crashing when launched from XBMC? As well if it can/will directly play the film rather than launch the 'disc' from the beginning. So far this work around doesn't seem to actually work.


RE: Another External Player Code, but Very Simple to Setup - CaptainKen - 2013-05-20

(2013-05-20, 01:54)Batiatus Wrote:
(2013-05-19, 23:13)CaptainKen Wrote: You stop the clicking noises by disabled GUI sound. This is a topic that has come up a lot in this thread.

BTW, please consider using the Code tags (as I have done for this replay) when posting code as it keeps the post sorter without loosing detail.


I'm going to ask how do you get TMT5/6 to stop crashing when launched from XBMC? As well if it can/will directly play the film rather than launch the 'disc' from the beginning. So far this work around doesn't seem to actually work.

Sorry, I can't be of any help on the crashing issue.


RE: Another External Player Code, but Very Simple to Setup - JDizzy - 2013-05-20

Basically I am using MPC-HC to play all video as I like to use madvr and LAV filters.
I am loading the player using the playercorefactory.xml.

As the player loads and/or exits I get a lot of flickering and at times can see the Windows desktop.

Is there a way to make screen go blank until the player has loaded or exited back to XBMC?

Thanks


RE: Another External Player Code, but Very Simple to Setup - mdl2 - 2013-05-21

I hate to ask, but I need some help please.

I simply want to play a blu ray folder on a network drive on my TMT5.

I set up my system according to the first post, eliminating the stuff for mounting ISOs.

I can select "play with..." from XBMC, it will start TMT5 (I've tried both WMC and stand alone versions).

TMT5 will start, but nothing plays. It's as if XBMC is not directing the player to the Blu Ray movie index.

Any ideas? I'm using XBMC 12.2 (also tried with 12.0) and TMT5 version ending with .172 (purchased).

Thanks in advance for the help, I appreciate it.

Mark


RE: Another External Player Code, but Very Simple to Setup - Batiatus - 2013-05-22

OK I've done more tinkering and fixed a few things but not some others. I've reverted back to 12.0. That fixed the annoying sound issue and seems to have squashed the TMT6 crashes. So far things work much better and more reliable than before and Cinema Experience works great right up to launching TMT6. GUI sounds work properly as well. I recommend to anyone else using Windows, Frodo and an external player to ignore the updates after 12.0 until the sound and crash issues have been solved properly.

I also figured a "trick" to get aspect and audio format media flags (useful for CE) that requires launching all the ISO files through XBMC without the script and external player in order for XBMC to read the appropriate media flags. However all the movies have a DVD logo for the video format and still not sure, outside of renaming and re-scanning the 3D folder, how to correct that

My issues are now down to 2 things. First, since I'm not paying for software that isn't going to work properly I'm still trying to find out if only having the demo version (with the pop-up on start-up) means XBMC can't launch TMT6 directly into the main movie? Will this all work as I hope once I purchase the software?

Second, I still can not get TMT6 to use the entire screen when it launches the 3D ISO. Everything up to that point uses the entire screen but once the 3D begins the image is scaled down about 10%. Definitely not cool when you have a 65" top-of-the-line 3D plasma. Anyone have any idea if it's TMT6 or AMD HD3D or Catalyst Control that's the culprit and how to correct it?

Also tried PowerDVD 13 and got the same scaling results. Not happy right now Sad


RE: Another External Player Code, but Very Simple to Setup - HD Life - 2013-05-22

(2013-05-22, 14:02)Batiatus Wrote: I also figured a "trick" to get aspect and audio format media flags (useful for CE) that requires launching all the ISO files through XBMC without the script and external player in order for XBMC to read the appropriate media flags. However all the movies have a DVD logo for the video format and still not sure, outside of renaming and re-scanning the 3D folder, how to correct that

Interesting, Is it anything you would like to share?


RE: Another External Player Code, but Very Simple to Setup - Batiatus - 2013-05-23

(2013-05-22, 16:18)HD Life Wrote:
(2013-05-22, 14:02)Batiatus Wrote: I also figured a "trick" to get aspect and audio format media flags (useful for CE) that requires launching all the ISO files through XBMC without the script and external player in order for XBMC to read the appropriate media flags. However all the movies have a DVD logo for the video format and still not sure, outside of renaming and re-scanning the 3D folder, how to correct that

Interesting, Is it anything you would like to share?

LOL it's already right there but I'll explain it a little more detailed.

Have XBMC scan in your ISO files and then use XBMC, not an external player, to play them for a couple seconds. Move your external player script files out of the userdata folder temporarily so when you play the ISO XBMC plays it with it's own player. It will also scan the media flags for both audio and video formats/resolution and save it in the database. Once you've done that with all your ISOs put the external player script files back into the proper directory and XBMC will still have the media flags stored. Works with Cinema Experience to play the audio format trailer before launching the external player to play the movie. I found that info in the wiki.

Now someone please help me with my scaling issue! Sad


RE: Another External Player Code, but Very Simple to Setup - HD Life - 2013-05-23

Sorry, English is not my native language.

I don't even use an external player, but got this problem anyway.
XBMC has scan all my ISO files, still it Isn't able to correctly show all the details as aspect, format and audio.
I've noticed if I play an ISO file it will show the audio correctly until I've played another ISO files, It's only able to remember the info from the last played ISO.
Still, It always show DVD instead of BluRay and it's not able to tell 1.78 from 2.35 for example.

If I pause, I got almost all info correctly as BluRay and audio, still not the aspect though.


RE: Another External Player Code, but Very Simple to Setup - Batiatus - 2013-05-23

(2013-05-23, 07:36)HD Life Wrote: Sorry, English is not my native language.

I don't even use an external player, but got this problem anyway.
XBMC has scan all my ISO files, still it Isn't able to correctly show all the details as aspect, format and audio.
I've noticed if I play an ISO file it will show the audio correctly until I've played another ISO files, It's only able to remember the info from the last played ISO.
Still, It always show DVD instead of BluRay and it's not able to tell 1.78 from 2.35 for example.

If I pause, I got almost all info correctly as BluRay and audio, still not the aspect though.

I'm not sure man. All the movies I have loaded in XBMC only show 16:9 as the aspect. I'm using the Aeon Nox skin so that may be the reason and could be a skin issue for you to. The audio format hasn't disappeared for me after playing the ISO in XBMC (Frodo 12.0) so not sure what's causing yours to drop that info. Maybe try cleaning your database or removing the ISO and re-scanning them?


RE: Another External Player Code, but Very Simple to Setup - HD Life - 2013-05-23

OK thanks, I might try to re-scanning all my items.
But It's a totally fresh install, this is my first example of XBMC 12.1 and I also uses the Aeon Nox skin, might try some other skin to see that happens as well.


RE: Another External Player Code, but Very Simple to Setup - mdl2 - 2013-05-24

(2013-05-21, 16:46)mdl2 Wrote: I hate to ask, but I need some help please.

I simply want to play a blu ray folder on a network drive on my TMT5.

I set up my system according to the first post, eliminating the stuff for mounting ISOs.

I can select "play with..." from XBMC, it will start TMT5 (I've tried both WMC and stand alone versions).

TMT5 will start, but nothing plays. It's as if XBMC is not directing the player to the Blu Ray movie index.

Any ideas? I'm using XBMC 12.2 (also tried with 12.0) and TMT5 version ending with .172 (purchased).

Thanks in advance for the help, I appreciate it.

Mark

Is this not possible then? Or maybe I'm doing something wrong? Anyone have any suggestions? Thanks.