Win HOW TO - Launch MPC-HC/MPC-BE with madVR as an External Player
#54
(2016-01-24, 19:21)snoopy7548 Wrote: Just installed Kodi yesterday and it's running nicely. I'm trying to get MPC-HC working as an external player, but I've run into a very strange problem.

I followed the directions pertaining to the playercorefactory.xml file, and I simply copied and pasted it exactly with the only change being the addition of " (x86)" to the Program Files directory (I am using the 32-bit MPC-HC).

This works flawlessly for movies, but not for TV shows. I simply have TV episode encodes filed under TV within Kodi, and they are using the same container as my movies (MKV). When I try to watch a TV episode, the screen goes black and I briefly see the MPC-HC interface, like I do when I open a movie, but the screen stays black for a few seconds before going to the desktop. Kodi is minimized at this time, MPC-HC is no longer running, and I cannot bring Kodi back up by clicking it in the taskbar; I have to manually shut the process down and re-launch the program.

Here are two logs, one from when I start a movie and the other from when I start a TV episode. I've cut out everything except the actual events. Let me know if you need the full logs.

Launching and manually stopping a movie (I pressed the STOP button on my remote at 11:55:01, roughly 10 seconds after I started the movie):

11:54:50 T:2672 NOTICE: ExternalPlayer Filename: C:\Program Files (x86)\MPC-HC\mpc-hc.exe
11:54:50 T:2672 WARNING: ExternalPlayer: invalid value for warpcursor: none
11:54:50 T:2672 NOTICE: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor (none)
11:54:50 T:2672 NOTICE: CExternalPlayer::OpenFile: E:\HTPC2 3TB\Movies\1080p\The Burbs (1989)\The.Burbs.1989.mkv
11:54:50 T:568 NOTICE: Thread ExternalPlayer start, auto delete: false
11:54:50 T:568 NOTICE: CExternalPlayer:Tonguerocess: Player : C:\Program Files (x86)\MPC-HC\mpc-hc.exe
11:54:50 T:568 NOTICE: CExternalPlayer:Tonguerocess: File : E:\HTPC2 3TB\Movies\1080p\The Burbs (1989)\The.Burbs.1989.mkv
11:54:50 T:568 NOTICE: CExternalPlayer:Tonguerocess: Content:
11:54:50 T:568 NOTICE: CExternalPlayer:Tonguerocess: Args : "{1}" /fullscreen /close
11:54:50 T:568 NOTICE: CExternalPlayer:Tonguerocess: Start
11:54:50 T:568 NOTICE: CExternalPlayer:Tonguerocess: Lowering Kodi window
11:54:51 T:568 NOTICE: CExternalPlayer::ExecuteAppW32: C:\Program Files (x86)\MPC-HC\mpc-hc.exe "C:\Program Files (x86)\MPC-HC\mpc-hc.exe" "E:\HTPC2 3TB\Movies\1080p\The Burbs (1989)\The.Burbs.1989.mkv" /fullscreen /close
11:55:01 T:568 NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
11:55:01 T:568 NOTICE: CExternalPlayer:Tonguerocess: Stop
11:55:02 T:568 NOTICE: CExternalPlayer:Tonguerocess: Showing Kodi window TOPMOST


And here is what happens when I launch a TV episode. I did not press the STOP button, or any button on my remote, at any point except when I selected the movie to play it:

11:53:30 T:3936 NOTICE: ExternalPlayer Filename: C:\Program Files (x86)\MPC-HC\mpc-hc.exe
11:53:30 T:3936 WARNING: ExternalPlayer: invalid value for warpcursor: none
11:53:30 T:3936 NOTICE: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor (none)
11:53:30 T:3936 NOTICE: CExternalPlayer::OpenFile: E:\Samsung 1.5TB\TV\Breaking Bad\Season 1\Breaking.Bad.S01E01.mkv
11:53:30 T:3156 NOTICE: Thread ExternalPlayer start, auto delete: false
11:53:30 T:3156 NOTICE: CExternalPlayer:Tonguerocess: Player : C:\Program Files (x86)\MPC-HC\mpc-hc.exe
11:53:30 T:3156 NOTICE: CExternalPlayer:Tonguerocess: File : E:\Samsung 1.5TB\TV\Breaking Bad\Season 1\Breaking.Bad.S01E01.mkv
11:53:30 T:3156 NOTICE: CExternalPlayer:Tonguerocess: Content:
11:53:30 T:3156 NOTICE: CExternalPlayer:Tonguerocess: Args : "{1}" /fullscreen /close
11:53:30 T:3156 NOTICE: CExternalPlayer:Tonguerocess: Start
11:53:30 T:3156 NOTICE: CExternalPlayer:Tonguerocess: Lowering Kodi window
11:53:30 T:3156 NOTICE: CExternalPlayer::ExecuteAppW32: C:\Program Files (x86)\MPC-HC\mpc-hc.exe "C:\Program Files (x86)\MPC-HC\mpc-hc.exe" "E:\Samsung 1.5TB\TV\Breaking Bad\Season 1\Breaking.Bad.S01E01.mkv" /fullscreen /close
11:53:36 T:3156 NOTICE: CExternalPlayer::ExecuteAppW32: WAIT_OBJECT_0
11:53:36 T:3156 NOTICE: CExternalPlayer:Tonguerocess: Stop
//(Nothing is logged after this; I had to terminate the Kodi service)

Kodi (or something) is automatically stopping the TV episode and MPC-is closing as soon as the episode starts. Here's what I'm using in the playercorefactoryfile but again, it's copied verbatim except for the mpc-hc directory:

<playercorefactory>
<players>
<player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Program Files (x86)\MPC-HC\mpc-hc.exe</filename>
<args>"{1}" /fullscreen /close</args>
<hidexbmc>false</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
<playcountminimumtime>1140</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<rule filetypes="mkv|avi|divx|ogm|mp4|mov|m4v|flv|m2v|mpeg|mpg|mts|m2ts|vob|bdmv" player="MPC-HC">
<rule protocols="http|https" player="MPC-HC"/>
<rule protocols="daap|rtv|rtsp|rtmp|rtmpe|rtsp|mms|rtp|pvr" player="DVDPlayer"/>
</rule>
</rules>
</playercorefactory>


I tried messing around with it and nothing works. One funny thing is if I use the simplified version (the one which simply defaults all video to MPC-HC and does not have the filetypes/protocols lines), all videos open in Kodi's internal player.

Here are my MPC-HC settings for Player and Fullscreen. I also tried toggling most of these settings with no luck.

Image

Image

I'm flabbergasted. The fact that this only happens to my TV episodes has me scratching my head, especially considering they're the same file types as my movies. I really can't think of a reason why this would be happening, unless Kodi handles video files in the TV group differently than it does video files in the Movies group.

Thanks!

This is a tough one. I would post this in the Windows support forum. Team Kodi members and other technical experts are more likely to respond.

I am assuming these files play with the default Kodi player? Otherwise, it would be the TV show files at fault. The only other explanation I can think of is that the file system cannot be read by MPC-HC. Are these shows on the same hard drive as the movies?

Do these files work when played with MPC-HC outside of Kodi? Are you using refresh rate switching with madVR?
Reply


Messages In This Thread
RE: HOW TO - Launch MPC-HC/MPC-BE with madVR as an External Player - by Warner306 - 2016-01-25, 03:57


Logout Mark Read Team Forum Stats Members Help
HOW TO - Launch MPC-HC/MPC-BE with madVR as an External Player7
This forum uses Lukasz Tkacz MyBB addons.