2016-12-15, 12:30
(2015-06-08, 01:30)kippax Wrote: I tried using MPC-HC as external player using Kodi 4.2 on Windows 8.1 Ent x64
my playercorefactory.xml
Code:<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>"C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe"</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|mp4|avi" filename=".*" player="MPC-HC"/>
</rules>
</playercorefactory>
Kodi log file shows
Code:06:23:47 T:8204 NOTICE: CExternalPlayer::OpenFile: G:\601T\TV-Final\The Flash.2014.1080p\season01\The.Flash.2014.S01E01.Pilot.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.mkv
06:23:47 T:8464 NOTICE: Thread ExternalPlayer start, auto delete: false
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: Player : "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe"
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: File : G:\601T\TV-Final\The Flash.2014.1080p\season01\The.Flash.2014.S01E01.Pilot.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.mkv
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: Content:
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: Args : "{1}" /fullscreen /close
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: Start
06:23:48 T:8464 NOTICE: CExternalPlayer::ExecuteAppW32: "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe" ""C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe"" "G:\601T\TV-Final\The Flash.2014.1080p\season01\The.Flash.2014.S01E01.Pilot.1080p.WEB-DL.DD5.1.AAC2.0.H.264-YFN.mkv" /fullscreen /close
06:23:48 T:8464 NOTICE: CExternalPlayer::ExecuteAppW32 - Failure: 123
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: Stop
06:23:48 T:8464 NOTICE: CExternalPlayer::Process: Showing Kodi window
Looks like Kodi passes the player's EXE name twice. Is there a way to fix this? or Did I do something wrong? Appreciate any help. Thx
EDIT:
I solved my problem by
1. Modifying playercorefactory.xml
Code:<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>E:\WinData\App\XBMC\14.2\portable_data\userdata\PlayUsingMPCHC.bat</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|mp4|avi" filename=".*" player="MPC-HC"/>
</rules>
</playercorefactory>
2. Creating batch file: PlayUsingMPCHC.bat located on: E:\WinData\App\XBMC\14.2\portable_data\userdata
Code:"C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe" %1 %2 %3
This temporary solution works for me, in case you guys having the same problem.
thanks man i copyed your solution at the bottom and changed all the info to potplayer and made the bat and it opens my video files now.