I have a capture card that can capture s-video from a VHS player. I have the amcap/dscap c++ example programmes that write to avi, but only in the codecs that seems to be hardwired into the capture devices exe, which are very lossy. I would like to know how to attach my own avi filter, such as a lossless huffyuv, or better still a mpeg2 filter and a demuxer filter, so that I can write a mpg file or better still a mpv plus mpa. From lossless avi I can always use tmpgenc, but better is to do all the mpegging in the c++ code. I am having problems even enumerating the video codecs, let alone connecting them to the filter graph.