Click here to Skip to main content
15,914,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEmbedding A Word Doc On A Dialog Pin
AJ12322-Aug-01 0:15
AJ12322-Aug-01 0:15 
GeneralTAPI problem Pin
Sandeep Shetty22-Aug-01 0:05
Sandeep Shetty22-Aug-01 0:05 
GeneralNewbie Q. Updating of window client area Pin
22-Aug-01 0:03
suss22-Aug-01 0:03 
GeneralRe: Newbie Q. Updating of window client area Pin
Tomasz Sowinski22-Aug-01 0:30
Tomasz Sowinski22-Aug-01 0:30 
GeneralRe: Newbie Q. Updating of window client area Pin
22-Aug-01 3:13
suss22-Aug-01 3:13 
GeneralRe: Newbie Q. Updating of window client area Pin
22-Aug-01 3:23
suss22-Aug-01 3:23 
GeneralRe: Newbie Q. Updating of window client area Pin
Tomasz Sowinski22-Aug-01 3:24
Tomasz Sowinski22-Aug-01 3:24 
GeneralDirectShow problem..(compression filter) Pin
Kim,Sung-Gyoo21-Aug-01 23:43
Kim,Sung-Gyoo21-Aug-01 23:43 
I'm writing an USB camera-capture program using DirectShow. I've succeeded previewing and writing the captured stream to an AVI file. But the written file is very slow because it isn't compressed. I don't know how to add a compression filter into the capture graph. So I've added some code fragment about compression filter, but it didn't work. How can I work with a compression filter??

Here's my code fragment.

// File-Writing section - capture

// Capture Filter Graph
ICaptureGraphBuilder2 *m_pBuilder = NULL;
// Filter Graph
IGraphBuilder *m_pGraph = NULL;
// Capture Filter
IBaseFilter *m_pSrc = NULL;
// AVI MUX Filter
IBaseFilter *m_ppf = NULL;
// File Writer
IFileSinkFilter *m_pSink = NULL;
// AVI Compression Filter (doesn't work!!)
IBaseFilter *m_pComp = NULL;

// omitted......

m_pBuilder->SetOutputFileName(&MEDIASUBTYPE_Avi, L"C:\\Example.avi", &m_ppf, &m_pSink);

// Creating a compression filter
CoCreateInstance (CLSID_AVICo, NULL, CLSCTX_INPROC,
IID_IBaseFilter, (void **)&m_pComp);
m_pGraph->AddFilter (m_pComp, L"Compressor");


m_pBuilder->RenderStream (&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Video, m_pSrc,
m_pComp, // compression filter.
m_ppf // Default renderer.
);

// Rendering the streams - preview
m_pBuilder->RenderStream (&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, m_pSrc,
NULL, // No compression filter.
NULL // Default renderer.
);


Generalterminate running exe file Pin
Daed21-Aug-01 23:39
Daed21-Aug-01 23:39 
GeneralRe: terminate running exe file Pin
22-Aug-01 3:01
suss22-Aug-01 3:01 
GeneralRe: terminate running exe file Pin
22-Aug-01 9:28
suss22-Aug-01 9:28 
GeneralConnecting to the database ... Pin
Hadi Rezaee21-Aug-01 23:02
Hadi Rezaee21-Aug-01 23:02 
GeneralSplit and Combine channels in Bitmap Pin
Paul Selormey21-Aug-01 22:52
Paul Selormey21-Aug-01 22:52 
GeneralRe: Split and Combine channels in Bitmap Pin
Christian Graus22-Aug-01 12:57
protectorChristian Graus22-Aug-01 12:57 
GeneralRe: Split and Combine channels in Bitmap Pin
Paul Selormey22-Aug-01 14:57
Paul Selormey22-Aug-01 14:57 
GeneralRe: Split and Combine channels in Bitmap Pin
Christian Graus22-Aug-01 15:00
protectorChristian Graus22-Aug-01 15:00 
GeneralRe: Split and Combine channels in Bitmap Pin
Paul Selormey22-Aug-01 15:07
Paul Selormey22-Aug-01 15:07 
GeneralRe: Split and Combine channels in Bitmap Pin
Chris Losinger22-Aug-01 15:31
professionalChris Losinger22-Aug-01 15:31 
GeneralRe: Split and Combine channels in Bitmap Pin
Paul Selormey22-Aug-01 18:51
Paul Selormey22-Aug-01 18:51 
GeneralRe: Split and Combine channels in Bitmap Pin
Christian Graus23-Aug-01 12:58
protectorChristian Graus23-Aug-01 12:58 
GeneralRe: Split and Combine channels in Bitmap Pin
Tommy H D Svensson4-Sep-01 3:09
Tommy H D Svensson4-Sep-01 3:09 
GeneralA Simple Question about File Status Pin
Maer72721-Aug-01 22:33
Maer72721-Aug-01 22:33 
GeneralRe: A Simple Question about File Status Pin
Per21-Aug-01 23:58
Per21-Aug-01 23:58 
GeneralRe: A Simple Question about File Status Pin
Maer72722-Aug-01 6:28
Maer72722-Aug-01 6:28 
GeneralRe: A Simple Question about File Status Pin
Per22-Aug-01 7:13
Per22-Aug-01 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.