Thread: Avisynth+
View Single Post
Old 14th February 2017, 22:55   #3030  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Now this is weird.

My script plays fine in MPC-HC or VirtualDub. When opening in Windows Media Player, however, it crashes.

Code:
LWLibavVideoSource("video.mp4", cache=False)
ConvertToShader()
Script error: Invalid arguments to function 'ConvertToShader'. !?? It plays perfectly fine in MPC-HC. What's going on here?

That error might be of something else going on within the filter as it was crashing on the constructor at this line so I commented it

Code:
if (!vi.IsY() && !vi.Is420() && !vi.Is422() && !vi.Is444() && !vi.IsRGB())
	env->ThrowError("ConvertToShader: Source format is not supported.");
Source is YV12.

Last edited by MysteryX; 14th February 2017 at 22:57.
MysteryX is offline