I’ve long run Windows Media Center on my HTPCs in combination with DVBLink and MediaBrowser. However, recently we have been watching more physical disks than in the past, and I have found various issues with Media Center. Usually I have MPC-HC configured as an external player, but doing this for physical disks proved less than simple. Eventually however, I have managed to get it working flawlessly.
Unfortunately (and unsurprisingly) the procedure for DVDs and BluRay disks is different. Thanks Microsoft! So, I’ll provide the full instructions, separately, for each…
DVD’s
DVDs can actually be played natively by Media Center. This is actually annoying for 2 reasons: Firstly because the internal player doesn’t support some features I use in MPC-HC (e.g. the speaker matrix — as I have a 4.1 system with no centre speaker); and secondly because it autoplays (on wake up) any disk found in the optical drive! Adding an external player prevents the auto play and brings back the benefits that come with MPC-HC and external codecs like LAV.
- On your system drive (probably C:) browse to the ProgramData folder and create a folder called MPC-HC
- Inside this folder create 2 new files with the following contents (note — there are no typo’s in the following lines, the <application line is not meant to have a closing >)
<application run = "C:\ProgramData\MPC-HC\launcher.cmd" </application>
"c:\program files\MPC-HC\mpc-hc64.exe" "D:" /fullscreen /play /close
- Make sure the path in the launcher.cmd file points to your installation of MPC-HC and that the “F:” points to your optical drive letter
- Finally, configure MPC-HC to close when you press stop. To do this, load MPC-HC, Go to View: Options, select the “Keys” option, and click on the “exit” option. Click on the “key” column and then hold down Alt and press X. This will assign Alt‑X to close MPC-HC. Now scroll across to the “app command” column, and click in it. In the pull-down menu, select “MEDIA_STOP”
- Finally, copy the following code into a new text file and rename it so it has a .reg extension. Run it and integrate it into the registry
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\AutoPlayHandlers\EventHandlers\PlayDVDMovieOnArrival] "MPC-HC"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\AutoPlayHandlers\Handlers\MPC-HC] "Action"="MPC-HC" "InvokeMCL"="C:\\ProgramData\\MPC-HC\\mpc-hc.dvd.mcl"
- If you have used a different path for your files then you will need to modify it here
Blu-Rays
BluRays are in some ways easier to implement as MediaCenter doesn’t natively support them and was designed to support 3rd party programs. Sadly this third party support was built in a very clunky way which means the procedure is a little complicated.
- BluRay support is enabled via “entry points” in MediaCenter. An entry point can either be created manually in the registry, or it can be created with Media Center Studio. Sadly Media Center Studio has ceased to exist — but it has been preserved in various places on the web, including our downloads page.
- Run Media Center Studio. Click on the “Start Menu” tab AND the “Start menu” menu button
- Click on the “Application” button to add a new application
- Enter a Title value (probably MPC-HC)
- Enter a path (to your MPC-HC installation) — images should automatically be assigned
- Enter your drive letter for your optical drive for the arguments
- Now change your path to point to your launcher.cmd (e.g. C:\ProgramData\MPC-HC\launcher.cmd) (Note: see the DVD section above for the launcher.cmd code)
- Save and close
- Browse to C:\ProgramData\Media Center Studio\Images\EntryPoints
- There will be a logo with a long filename surrounded by curly brackets. This name is the entry point value which you will now need. Mine was {ef61cf90-2ddd-4f12-8f2e-acf16d81d758}
- Run regedit and browse to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\AutoPlay\Blu-Ray]
- Create a new key with the value of your entry point (e.g. {ef61cf90-2ddd-4f12-8f2e-acf16d81d758})
- Switch to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\AutoPlay\HD DVD]
- And create another new key with the same name (e.g. {ef61cf90-2ddd-4f12-8f2e-acf16d81d758})
- Now browse to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Entry Points\{ef61cf90-2ddd-4f12-8f2e-acf16d81d758}]
- Copy the value of “App ID” which will be another (different) long curly-brackets ID. Mine was {37dee78b-2ef7-4e94-a4e1-7e74fe0b6dd2}
- Browse back to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\AutoPlay\Blu-Ray\{ef61cf90-2ddd-4f12-8f2e-acf16d81d758}]
- Create a new String Value called “AppID” and give it the name you just copied (e.g. {37dee78b-2ef7-4e94-a4e1-7e74fe0b6dd2})
- Repeat for HD DVD by browsing to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\AutoPlay\HD DVD\{ef61cf90-2ddd-4f12-8f2e-acf16d81d758}]
- Create your final “AppID” string for HD DVD with the same name as for Blu-Ray (e.g. {37dee78b-2ef7-4e94-a4e1-7e74fe0b6dd2})
- To help clarify the structure you should now have in your registry here is the code from mine, using my examples. Your 2 IDs in curly brackets will be different to mine…
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\AutoPlay\Blu-Ray\{ef61cf90-2ddd-4f12-8f2e-acf16d81d758}] "AppId"="{37dee78b-2ef7-4e94-a4e1-7e74fe0b6dd2}" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\AutoPlay\HD DVD\{ef61cf90-2ddd-4f12-8f2e-acf16d81d758}] "AppId"="{37dee78b-2ef7-4e94-a4e1-7e74fe0b6dd2}"
- Finally — it is worth having a second external player configured if you don’t want inserted disks to autoplay without a prompt. Having a second player enabled leads autoplay to offer a prompt asking which player you would like to use. I have VLC available as an alternative to MPC-HC. The instructions are the same. Below is code for an alternative launcher.cmd which works with VLC
vlc.exe bluray:///F: --fullscreen --play-and-exit
Credits
Thanks to Renethex on AVSforum for producing the guides for both Blu-Ray and DVD that this was mostly based on.
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”