CCCP Project Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: (Autorun) Adding autoplay handlers for MPC  (Read 19235 times)

sickley

  • CCCP Plankton
  • Posts: 3
(Autorun) Adding autoplay handlers for MPC
« on: January 16, 2009, 06:07:34 AM »

considering there doesn't seem to be much (if any) info on this on the web yet i'll write a short guide.

This will show you how to make/add cd's/dvd's/usb drives autoplay to use MPC for all versions of windows. normally this is done automatically when you install various media players, but since MPC does not have an installer this step is (CURRENTLY) skipped when installing CCCP.

The first step is to grab autoplay repair, not the one on microsofts webiste.
get it here: http://www-stud.uni-essen.de/~sddabacz/download.php#apr

open up autoplay repair and select the corresponding tab on the right that you want to add/modify. you can add mpc as a new handler or replace an existing one.  to replace an existing one simply double click the one you want to replace, to add a new one click the add new button on the left-hand side

now you have the create/modify autoplay handler open take a look at the "application" spot, hit the "..." button and browse to your Media player classic executable. it is probably located C:\Program Files\Combined Community Codec Pack\MPC
or C:\Program Files (x86)\Combined Community Codec Pack\MPC if you have 64bit

select mplayerc and hit open.
the two slots above can be set to whatever you want the to say in the autoplay window (action: play)(provider: Media Player Classic)

now the "difficult" part, arguments

if you run command prompt (startmenu>run>cmd) navigate to the folder of your mpc executable and type "mplayerc /?" (without quotes) it will give you a rundown of all the arguments. if you have specific settings to use you can try them out, im just going to outline the basics


all argument lines are without brackets
======================================================================================
for "Video files" your argument line should read [/play "%L"] this will load and play the first file in your cd/dvd
if you are doing a series of videos you can use [/add /play "%L"] and it will add all the videos into your que and begin playing the first one. note that this will add all files that are registered as playable by MPC (this may include playlist files and audio files)
--------------------------------------------------------------------------------------------------------------
for DVD just use [/dvd "%L"]
--------------------------------------------------------------------------------------------------------------
for cd (.cda) and svcd/vcd you can use [/cd "%L"]
--------------------------------------------------------------------------------------------------------------
and for audio (.mp3) use the same coding as you would for video (see above)
======================================================================================

i know its a short guide, but it is pretty simple once you figure it out, like i said there are more arguments you can use -you can tell it to start in fullscreen, close or shutdown after playback, start it on a specific monitor, file association, and other misc things- but i havent really tested any of them which is why i didn't use them in the guide (they are listed at the bottom, however).

any questions/confusion? just leave me a note and i'll help to the best of my ability.  :]
cheers

list of arguments:
Code: [Select]
“path name” the main file or directort to be loaded. (wildcards allowed)

/dub “dubname” load an additional audio file

/sub “subname” load an additional subtitle file

/filter “filtername” load DirectShow filters from a dynamic link library.(wildcards allowed)

/dvd run a dvd mode, athname” means the dvd folder (optional)

/cd load all the tracks of an audio cd or (s)vcd, “pathname: means the drive path(optional)

/open open the file, don’t automatically start playing

/play start playing the file as soon the player is launched.

/close close the player after playback (only works when used with /play)

/shutdown shutdown the operating symstem after playback

/full screen start in full screen mode

/minimized start in minimized mode

/new use a new instance of the player

/add add “pathname” to play list, can be combined with /open and /play.

/regvid Register video formats

/regaud register audio formats

/unregvid unregister video formats

/unregaud unregister audio formats

/start ms start playing at “ms”(=milliseconds)

/help /h /? show help about comand line switches. (this message box)
« Last Edit: January 16, 2009, 10:25:25 PM by sickley »
Logged

Nicholi

  • Administrator
  • *
  • Posts: 1742
Re: (Autorun) Adding autoplay handlers for MPC
« Reply #1 on: January 16, 2009, 10:46:41 AM »

considering there doesn't seem to be much (if any) info on this on the web yet i'll write a short guide.

This will show you how to make/add cd's/dvd's/usb drives autoplay to use MPC for all versions of windows. normally this is done automatically when you install mpc but i've noticed that it doesnt do it when you install cccp.

Media Player Classic has never had an installer. So...not sure what you are going on about? How is this "done automatically" when you apparently normally "install" MPC? Sounds interesting though, since I know a lot of people favor MPC I'll see if I can't figure out how it "automatically works" :3 and add it as another option in CCCP installer.
Logged

sickley

  • CCCP Plankton
  • Posts: 3
Re: (Autorun) Adding autoplay handlers for MPC
« Reply #2 on: January 16, 2009, 12:49:30 PM »

my appologies, poor wording. i recall that in the past other codec packs i've used that come with MPC would automatically set the autoplay handlers. sorry for the confusion. :3

heres the location for autoplay handlers in registry (for vista at least)

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers
Logged

sickley

  • CCCP Plankton
  • Posts: 3
Re: (Autorun) Adding autoplay handlers for MPC
« Reply #3 on: January 16, 2009, 10:23:02 PM »

didnt get the chance to post this for you earlier because i had to go to work. but here you go.
registry keys for video autoplay

Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\AutoplayHandlers\Handlers\AutoPlayCustomHandler_20090116220354]
"Action"="Play Video"
"DefaultIcon"="E:\\Program Files (x86)\\Combined Community Codec Pack\\MPC\\mplayerc.exe,0"
"InvokeProgID"="APR_MediaHandlers"
"InvokeVerb"="AutoPlayCustomHandler_20090116220354"
"Provider"="Media Player Classic Home Cinema"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\APR_MediaHandlers]

[HKEY_CLASSES_ROOT\APR_MediaHandlers\shell]

[HKEY_CLASSES_ROOT\APR_MediaHandlers\shell\AutoPlayCustomHandler_20090116220354]
@="Play Video"

[HKEY_CLASSES_ROOT\APR_MediaHandlers\shell\AutoPlayCustomHandler_20090116220354\command]
@="E:\\Program Files (x86)\\Combined Community Codec Pack\\MPC\\mplayerc.exe /play \"%L\""
autoplay repair seems to have made things a little messy adding strings in its own key
for instance here is the WMP for the same
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\AutoplayHandlers\Handlers\MSPlayMediaOnArrival]
"InvokeVerb"="play"
"DefaultIcon"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,\
  00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\
  20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,00,61,00,79,00,65,00,72,\
  00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,72,00,2e,00,65,00,78,00,\
  65,00,2c,00,30,00,00,00
"InvokeProgid"="WMP.PlayMedia"
"Action"="@wmploc.dll,-1800"
"Provider"="@wmploc.dll,-6502"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe]
@="Windows Media Player"
"FriendlyAppName"="@wmploc.dll,-102"
"OpenWithExclude"="QT:MOV"

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,00,6d,00,\
  70,00,6c,00,6f,00,63,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,37,00,33,00,30,\
  00,00,00

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe\shell]
@="Play"

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe\shell\open]

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe\shell\open\command]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
  00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,\
  64,00,6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,\
  00,61,00,79,00,65,00,72,00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,\
  72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,4f,00,70,00,65,00,6e,00,20,\
  00,22,00,25,00,4c,00,22,00,20,00,00,00

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe\shell\play]
@="&Play"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
  6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
  00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,\
  2c,00,2d,00,39,00,39,00,39,00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\wmplayer.exe\shell\play\command]
@=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
  00,65,00,73,00,28,00,78,00,38,00,36,00,29,00,25,00,5c,00,57,00,69,00,6e,00,\
  64,00,6f,00,77,00,73,00,20,00,4d,00,65,00,64,00,69,00,61,00,20,00,50,00,6c,\
  00,61,00,79,00,65,00,72,00,5c,00,77,00,6d,00,70,00,6c,00,61,00,79,00,65,00,\
  72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,50,00,6c,00,61,00,79,00,20,\
  00,22,00,25,00,4c,00,22,00,20,00,00,00

Logged

chadherrella

  • CCCP Plankton
  • Posts: 1
Re: (Autorun) Adding autoplay handlers for MPC
« Reply #4 on: February 17, 2010, 07:54:24 PM »

Thanks for the info.  I was able to make mplayerc.exe autoplay DVD movies.  I didnt use the autoplay repair.  I added the action for playing dvds using mplayerc in the DVD file type and in regedit i just added a key, similiar to the VLC autohandle key.

note:  your mplayerc.exe may be located somewhere else on your harddrive.  mine is located in 'C:\Program Files\AutoGK\mpc' so substitute my location with your location if its located somewhere else.

To make the action I went to windows explorer (win+E), clicked tools --> folder options  --> 'file types' tab

i chose '(none) DVD' --> clicked advanced --> clicked NEW

in Action: Play with media player classic
in Application used to perform Action: "C:\Program Files\AutoGK\mpc\mplayerc.exe" /dvd "%L"
DDE - checked
Application - MPC
Topic - System

clicked ok

set Play with media player classic as default
confirm open after download - uncheck
always show extension - uncheck

run regedit
goto --> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\

create new key - MPCPlayDVDMovieOnArrival
add the following strings:
Action
DefaultIcon
InvokeProgID
InvokeVerb
Provider

Add the following data:
for Action - Play DVD movie
for DefaultIcon - "C:\Program Files\AutoGK\mpc\mplayerc.exe",0
for InvokeProgID - MPC.DVDMovie
for InvokeVerb - play
for Provider - Media Player Classic

It will look like this:


now goto My Computer --> right click on dvd drive --> properties --> click autoplay tab --> choose DVD movie in the drop down menu and you will see the media player classic action option.

choose Play DVD movie media player classic option and click apply.
Logged

Nicholi

  • Administrator
  • *
  • Posts: 1742
Re: (Autorun) Adding autoplay handlers for MPC
« Reply #5 on: April 07, 2010, 08:15:56 AM »

Not that it really matters (and necroposting a necropost), but I finally added the 4 autoplay handlers MPC uses. It's in the recent betas.
Logged
 

Page created in 0.108 seconds with 19 queries.