Log in

View Full Version : Play AVS Script in Windows Media Player


MysteryX
4th June 2015, 17:51
I'm having a problem playing videos in Windows Media Player. Whenever it tries to open an AVS file, it says it doesn't recognize the file and asks me whether it should try to open it. If I say "YES" and "don't ask again", it will play, but from now on always refuse to play without ever asking again.

Then, I'm using Windows Media Player as an ActiveX control within an application. It used to be working in the ActiveX version. But somehow, after re-installing my computer, now the ActiveX version of WMP also fails to play.

So my question is this. How can I register AVS extension as being valid for WMP? Are there specific registry keys I can add to resolve this problem?

creaothceann
4th June 2015, 17:55
Just use MPCH.

stax76
4th June 2015, 19:09
I can recommend some tools to use, debug and config:

LAV Filters
Codec Tweak Tool
GraphStudio, there is also a fork called GraphStudioNext which I don't know yet

There are occasions where a YV12 decoder is needed, StaxRip adds ConvertToRGB to every script used for playback or preview so it don't rely on the system has a YV12 decoder.

MysteryX
4th June 2015, 19:14
creaothceann, I cannot use MPC as an ActiveX control. But I do use it as the main video player.

stax76, I already have K-Lite Codec Pack installed. And yes, ConvertToRBG is needed at the end of the scripts and it's there. There are a few restrictions when playing in WMP, but it allows for a quick preview.

This still doesn't solve the problem.

stax76
4th June 2015, 19:24
In Codec Tweak Tool go to 'Preferred Splitter' and use LAV Filter as avs splitter, I think then you don't even need ConvertToRBG or a YV12 decoder, drag the avs file onto GraphStudio to test it, never mix x86 with x64 in the entire tool chain, this should help you. :)

MysteryX
4th June 2015, 19:48
It still doesn't play in Windows Media Player, but in the ActiveX version of it, it DOES work! And that's what matters. Great!

How can I change that setting during setup? A specific registry key needs to be changed?

stax76
4th June 2015, 19:54
It still doesn't play in Windows Media Player

Assuming you are using AviSynth x86 are you using WMP x86 too?

How can I change that setting during setup? A specific registry key needs to be changed?

You could try asking the LAV Filters dev in the LAV Filters support thread.

MysteryX
4th June 2015, 21:49
Yes I'm using WMP x86. I didn't even know there was a x64 version! It shows up with *32 in the task manager.

I'll ask in the LAV Filters thread.

MysteryX
8th June 2015, 22:51
In Codec Tweak Tool go to 'Preferred Splitter' and use LAV Filter as avs splitter
I've done that and it was working; and then after playing around with installs, that doesn't work anymore.

What else can I do to get it to work?

MysteryX
15th June 2015, 19:57
I found help on the K-Lite Codec Pack forum. Here's the solution: adding these registry keys.
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Multimedia\WMPlayer\Extensions\.avs]
"PerceivedType"="video"
"Permissions"=dword:0000000f
"Runtime"=dword:00000007