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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-14 Anyone there or is this thread closed RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-14 After hours of messing around I have discovered the issue is with DVDFab which no longer appears to mount the image. I am now using the Elaborate Bytes virtual drive which mounts the image but sometimes results in XBMC minimising to the desktop and shows a command prompt for a few seconds before PowerDVD starts... C:\Program Files (x86)\XBMC\GO TO unmounted C:\Program Files (x86)\XMBC>IF EXIST E:\BDMV\. GOTO mounted Is there any way to prevent this annoyance from occuring?? RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-15 Ok, this is my last update in the hope that someone will offer some advice on this forum. The code still doesn't work correctly. The ISO gets mounted but the windows command prompt continuously loops in the background. When I close PowerDVD the windows command prompt has to be closed before it returns to XMBC. Still looking for some help please from this forum :-( RE: Another External Player Code, but Very Simple to Setup - bruce7373 - 2014-08-16 OK, keeping in mind I know next to nothing about writing this kind of code, looking at this line: IF EXIST E:\BDMV\. GOTO mounted Is that a period after "BDMV\" and should it be there? RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16 Hi Bruce, I've tried everything I can but still no good. I've just downloaded a trial version of TMT to see if that made any difference. Again the image gets mounted but excatly the same issue with the 'looping' windows command message. Come on people, I thought this was a forum to help people like me. That's why I joined! Someone must have an idea what is wrong with the code? ;-( RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16 i will try and find a moment today to test iso mounting as I've not used it for a while and then post my code up but i believe it does work from memory RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16 Thanks Orby really appreciate some help. I've been trying for hours to fix this. I need to use the external player for my 3D Blu-rays so I thought that I may as well use for all my ISO's (Dvd's & Blurays). RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16 had a quick play and i cannot get the iso to mount at the moment RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16 for me at the moment and i'm not sure why it is ignoring my iso rule and is using my BDMV player/bat file RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16 well i had mine all working as wanted, just about to post my files and now it's ignoring the playiso rule again and using BDMV.bat instead of playiso.bat for ISO's RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16 okay starting from scratch as i couldn't get my old set up working so tested yours i changed the player core factory to Code: <playercorefactory> any my play iso is this Code: @echo off all working and much easier to manage than the old way i used to do it RE: Another External Player Code, but Very Simple to Setup - halfe - 2014-08-16 Now i got a code thats working great with PDVD14. PlayBD.bat Code: @echo off PlayDVD.bat Code: @echo off playercorefactory Code: <playercorefactory> What i'm missing now is a way to make PDVD exit when i press stop on my remote.. RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16 (2014-08-16, 17:27)orby Wrote: okay starting from scratch as i couldn't get my old set up working so tested yours i changed the player core factory to Orby I modified the code slightly so that I use PowerDVD14 and now works like a gem. You're a star! ;-) I've just got to add a bit of extra code so that I can launch three videos using DVDFab Media Player. I guess I can add this in the Playercorefactory settings under Filenames? This is the code which now works; Playercorefactory <playercorefactory> <players> <player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true"> <filename>C:\Users\Animal\AppData\Roaming\XBMC\userdata\PlayISO.bat</filename> <args>"{1}"</args> <hidexbmc>false</hidexbmc> </player> </players> <rules action="prepend"> <!-- Bluray ISO/BDMV --> <rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/> </rules> </playercorefactory> PlayISO.Bat 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)\CyberLink\PowerDVD14\Movie\PowerDVD Cinema\PowerDVDCinema.exe" E: "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)\CyberLink\PowerDVD14\Movie\PowerDVD Cinema\PowerDVDCinema.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)\CyberLink\PowerDVD14\Movie\PowerDVD Cinema\PowerDVDCinema.exe" %pth% exit GOTO end :end exit I also found that completely uninstalling XMBC seems to help. Thanks again Orby, much appreciated ;-) RE: Another External Player Code, but Very Simple to Setup - orby - 2014-08-16 No worries glad it's working i'm not sure which would be the correct way to add different file types i let XBMC handle MKV's etc i may look into a different player to handle them though if i get a chance but it's either expand what you already have and include the file types in the rule inside playercorefactory and add the info to playiso.bat or create a new player and rule in playercore and create a new .bat file to call upon RE: Another External Player Code, but Very Simple to Setup - Animal_Freeride - 2014-08-16 (2014-08-16, 23:25)orby Wrote: No worries glad it's working Funnily enough I have just done the above and it kind of works. XBMC now gives me the option to select either PowerDVD or DVDFab as my external player. These both work however is it possible that I can configure the default player as DVDFab just for specific videos? This is the code I've used for another external player (i've created a separate DVDFab.bat file). You will see I have one video at the moment (Men In Black 3) as a specific filename that I am trying to launch automatically using DVDFab but I have to select in XMBC. <playercorefactory> <players> <player name="PowerDVD" type="ExternalPlayer" audio="false" video="true"> <filename>C:\Users\Animal\AppData\Roaming\XBMC\userdata\PowerDVD.bat</filename> <args>"{1}"</args> <hidexbmc>false</hidexbmc> </player> <player name="DVDFab" type="ExternalPlayer" audio="false" video="true"> <filename>C:\Users\Animal\AppData\Roaming\XBMC\userdata\DVDFab.bat</filename> <args>"{1}"</args> <hidexbmc>false</hidexbmc> </player> </players> <rules action="prepend"> <!-- Bluray ISO/BDMV --> <rule filetypes="iso|bdmv|mpls" player="PowerDVD"/> <rule filenames="Men In Black 3" player="DVDFab"/> </rules> </playercorefactory> It's not the end of the world but it would be useful. |