GDCL Home About GDCL DirectShow WinNt & WDM
GDCL Home / mpeg4

Free DirectShow Mpeg-4 Filters

The GDCL Mpeg-4 Demultiplexor and Multiplexor filters are now freely available for download in source form. You can re-use them in your projects, commercial or otherwise (provided that you don't pretend that you wrote them) or use them as sample code when starting on your own project. Of course support and documentation are somewhat limited.

This initial release is being made available because of the insolvency of a customer. As I get time, I intend to enhance these filters. For now, they support ISO Mpeg-4 files containing Mpeg-4 and H.264 video and a variety of audio formats. The files created by the multiplexor will work with QuickTime and the iPod.

Published: September 2006. Latest Update: February 2007.

Download source and binaries here.


2nd March 2007

I've found that the mpeg-4 demux does not work on systems with Pinnacle Studio installed. This is because Studio registers a custom source for mpeg-4 (based on code from dicas) and also registers a custom type for the file which is not MEDIATYPE_Stream. To fix this, I've made a minor change to the demux input pin to accept any media type, even non-stream. Additionally, you will need to explicitly insert File Source (Async) and render it's output pin instead of using RenderFile if you want to use this demux on these systems.


5th February 2007

I've released a minor update fixing a couple of small (one-line) bugs. The demultiplexor did not handle fixed-size samples correctly (e.g. PCM audio). The multiplexor supported some DivX fourccs as inputs (DIVX, divx) but not all of them (DX50) so I've added those.

Note: both mux and demux filters need a small amount of code added for each media type that is to be supported. So far I have only added a limited set of types. If you need other types to be accepted, please get in touch directly It's likely that only a few lines of code will be needed.