How to create a compressor filter and set compression parameters?
- From: "Bert" <tsingyoung@xxxxxxxxx>
- Date: Fri, 6 Jan 2006 11:21:27 +0800
I implemented a demo for trimming avi video file with DES following the
topic "Writing a Project to a File" in the DirectX SDK Documentation. But I
don't know how to compress the trimmed video file. Code is like this:
long NumGroups;
pTimeline->GetGroupCount(&NumGroups);
for (i = 0; i < NumGroups; i++)
{
IPin *pPin;
if (pRender->GetGroupOutputPin(i, &pPin) == S_OK)
{
IBaseFilter *pCompressor;
// Create a compressor filter. (Not shown.)
// Set compression parameters. (Not shown.)
pBuilder->RenderStream(NULL, NULL, pPin, pCompressor, pMux);
pCompressor->Release();
pPin->Release();
}
}
How to create a compressor filter and set compression parameters here?
Any tips?
Bert
.
- Follow-Ups:
- Prev by Date: Re: Still Image jpg in timeline
- Next by Date: Re: Still Image jpg in timeline
- Previous by thread: Re: how to play one video file in two video windows ?
- Next by thread: Re: How to create a compressor filter and set compression parameters?
- Index(es):
Relevant Pages
|