Click to See Complete Forum and Search --> : Dumping a stream to disk?


Dan203
October 25th, 2004, 03:56 PM
I have a DirectShow reader filter that reads a special file format and outputs a standard MPEG2 stream. I would like to write a small program that takes that output and dumps it directly to disk as a .mpg file. I have attempted to connect the output pin of the filter directly to the input pin on the Dump filter using GraphEdit but it always sticks an MPEG splitter filter between the output filter and the dump filter.

I've looked at the types being output by the reader filter and it says that the Major Type is "Stream" and the Sub-Type and Format are both "GUID_NULL". I'm guessing that the reason GraphEdit is sticking a MPEG splitter in the middle is because the Dump filter doesn't know what to do with those types. Is that correct? And if so is there a dump filter available that will write a stream like that directly to disk? Any other suggestions?

Thanks,
Dan