How to get AVS to open with MPC-HC?

View previous topic View next topic Go down

How to get AVS to open with MPC-HC?

Post by OnlyOne on Thu Apr 23, 2015 7:08 am

How do I get an Avisynth file to open with MPC-HC when I right-click it and press "play" in the windows context menu? I accidentally accomplished this in Windows XP but I forgot how I did it. My intention back then was to get MPC-HC to show up in the "Open with" list because it didn't. But then I was satisfied with how useful it was to accomplish this just by pressing "play". I'm on Windows 7 now.
I want notepad to be the default program to open .AVS with but to be able to conveniently open with AVS when I want to.

OnlyOne

Posts : 30
Join date : 2013-03-09

View user profile

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by Admin on Thu Apr 23, 2015 8:43 am

MPC-HC should show up in the "Open with" menu. If not, you can add it yourself.

Using the play command would require messing with the Registry to manually create that association.

Admin
Admin

Posts : 2986
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by OnlyOne on Sun Apr 26, 2015 6:45 pm

It does show up in open with menu but it's more convenient with the play button. Yes I messed with the registry to do it last time. On Windows XP MPC wasn't showing up in the Open With menu so I was trying to force it in via the registry and accidentally I ended up registering MPC to the Play button in the context menu and I was pleased with this serendipity.

But now I am on Windows 7 and I totally forgot how I did this registry trick.

OnlyOne

Posts : 30
Join date : 2013-03-09

View user profile

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by Admin on Sun Apr 26, 2015 11:37 pm

Something like this:
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\avsfile\shell\play]
@="&Play with MPC-HC"
"Icon"="C:\\Program Files (x86)\\K-Lite Codec Pack\\MPC-HC\\mpc-hc.exe,0"

[HKEY_CLASSES_ROOT\avsfile\shell\play\command]
@="\"C:\\Program Files (x86)\\K-Lite Codec Pack\\MPC-HC\\mpc-hc.exe\" \"%1\""
Assuming the current file association uses avsfile as ProgID. You can see in HKEY_CLASSES_ROOT\.avs which ProgID is used.

Admin
Admin

Posts : 2986
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by OnlyOne on Mon Apr 27, 2015 4:30 pm

Thank you! You are a god. In XP the trick must've been in HKEY_CLASSES_ROOT\.avs but in Windows 7 there is nothing there.
There's no ProgID. Oh well.
Thanks again.

OnlyOne

Posts : 30
Join date : 2013-03-09

View user profile

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by Admin on Tue Apr 28, 2015 11:57 pm

Look at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.avs\OpenWithProgids

Admin
Admin

Posts : 2986
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by OnlyOne on Wed Apr 29, 2015 9:49 am

Ah yes, it does say avsfile. Everything is good. Thanks Admin.
By the way, the previous question I asked about working with 10-bit video in avisynth is doable by working with the stack16 trick from dither tools. It's rough but it works.
And I know the question wasn't entirely relevant to KLCP so I didn't mean to clutter up the board.

OnlyOne

Posts : 30
Join date : 2013-03-09

View user profile

Back to top Go down

Re: How to get AVS to open with MPC-HC?

Post by Sponsored content Today at 10:54 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum