by chui101 » Tue Mar 24, 2009 8:05 pm
First, clean up your DirectShow filters with CCCP Insurgent or something. If you have old versions of random codecs lying around (one of my old computers had 3 different releases of ffdshow on it, when I went to perform some maintenance on it at one point, wtf?)
Next, install Haali Media Splitter and ffdshow tryouts. Both of these are packaged in CCCP, but the latest CCCP release is a bit dated. It may be better to install the latest individual components yourself if you have experience with codecs or if you have time to burn figuring them out.
Optional step, sometimes required, if it doesn't work go back and do this: Re-install AVISynth.
Next, you need to make sure your MKV file only contains audio and video data. Get MkvToolNix and use mkvmerge to merge the audio and video tracks from the old MKV into a new one.
Now, you should be able to use the DirectShowSource() filter in an AVISynth to serve frames from the MKV file.
For some reason, I couldn't get CoreAVC or Cyberlink to work with AVISynth (Couldn't connect to output pin, I think was the error), so make sure ffdshow is set as your highest priority avc/h264 decoder if you're using an mkv containing a h264 stream.