Limit capture file size(video) in C#



Hello,
I am trying to limit capture(video) file size by doing
the following:

captureGraphBuilder.AllocCapFile(fname, 2000000);
captureGraphBuilder.SetOutputFileName(MediaSubType.Avi, fname, out mux,
out sink);

The file size is always larger than 2MB.
I am probably not implementing this correctly. Can anyone tell
me what I'm doing wrong?

Thanks,
Bill

.


Loading