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.