How to create a compressor filter and set compression parameters?



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


.



Relevant Pages

  • Re: Anyone here still on Dial Up?(question :compressing movies)
    ... & what sort of Video File you want to end up with, ... much you want to Compress it. ... WinXP SP2 comes with MovieMaker2, ... MovieMaker 2 is reasonably easy to use but can be limiting. ...
    (uk.people.silversurfers)
  • Emailing movie
    ... I would like to know if there is a way to really compress a video file. ... made a 7.5 min. clip of a party. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Video file compression
    ... Laird of Glencairn ... > How do I compress a video file from its original state to something ...
    (microsoft.public.windowsxp.video)
  • Emailing files
    ... I would like to know if there is a way to really compress a video file. ... made a 7.5 min. clip of a party. ...
    (microsoft.public.windowsxp.general)
  • Re: Video streaming with c#
    ... a> Hi i am writing a application where i want to browse video file and ... a> copy data into stream and send that stream over network...I have ... a> message to each other but now i want to send video file and play that ... "At times one remains faithful to a cause only because its opponents do not cease to be insipid." ...
    (microsoft.public.dotnet.languages.csharp)