Re: Limit capture file size(video) in C#
- From: "The March Hare [MVP]" <phil@xxxxxxxxx>
- Date: Fri, 2 Jun 2006 07:23:17 -0600
On 2 Jun 2006 04:51:53 -0700, bjames3 wrote:
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?
The docs say:
"The AllocCapFile method preallocates a capture file to a specified size.
For best results, always capture to a defragmented, preallocated capture
file that is larger than the size of the capture data."
They don't say anything about it limiting the capture to this size. AFAIK,
it doesn't.
--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
.
- Follow-Ups:
- Re: Limit capture file size(video) in C#
- From: bjames3
- Re: Limit capture file size(video) in C#
- References:
- Limit capture file size(video) in C#
- From: bjames3
- Limit capture file size(video) in C#
- Prev by Date: Re: stereo vision
- Next by Date: Re: MPEG-2 Frame Count
- Previous by thread: Limit capture file size(video) in C#
- Next by thread: Re: Limit capture file size(video) in C#
- Index(es):
Relevant Pages
|
Loading