Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Allocating memory on the heap - limitations Pin
David Crow27-Mar-06 4:46
David Crow27-Mar-06 4:46 
AnswerRe: Allocating memory on the heap - limitations Pin
Shoaib Patel27-Mar-06 19:50
Shoaib Patel27-Mar-06 19:50 
GeneralRe: Allocating memory on the heap - limitations Pin
ThatsAlok27-Mar-06 23:15
ThatsAlok27-Mar-06 23:15 
QuestionAbout DirectX Video Capture Pin
crazymubashir27-Mar-06 1:48
crazymubashir27-Mar-06 1:48 
AnswerRe: About DirectX Video Capture Pin
Justin Tay27-Mar-06 1:58
Justin Tay27-Mar-06 1:58 
QuestionRe: About DirectX Video Capture Pin
crazymubashir27-Mar-06 2:46
crazymubashir27-Mar-06 2:46 
AnswerRe: About DirectX Video Capture Pin
Justin Tay27-Mar-06 3:04
Justin Tay27-Mar-06 3:04 
GeneralRe: About DirectX Video Capture Pin
crazymubashir28-Mar-06 1:01
crazymubashir28-Mar-06 1:01 
Million thanks,

Now it seems you have almost understood my problem. I have added the code
below before the line you have mentioned and ommited it. The code below gives error when i give "renderstream" pMux Pointer. If i leave it null the code runs but video doesn't gets saved. This code is supposed to capture the live
video.


<br />
IBaseFilter *pMux;<br />
	<br />
	hr = g_pCapture->SetOutputFileName(<br />
                &MEDIASUBTYPE_Avi,  // Specifies AVI for the target file.<br />
                L"C:\\Example.avi", // File name.<br />
                &pMux,              // Receives a pointer to the mux.<br />
                NULL);              // (Optional) Receives a pointer to the file sink.<br />
	<br />
if(FAILED(hr))<br />
{<br />
	Msg(TEXT("Couldn't create save file..."));<br />
}<br />
<br />
    hr = g_pCapture->RenderStream(<br />
       &PIN_CATEGORY_CAPTURE, // Pin category.<br />
       &MEDIATYPE_Video,      // Media type.<br />
       pSrcFilter,            // Capture filter.<br />
       NULL,                  // Intermediate filter (optional).<br />
       pMux /*NULL*/);                 // Mux or file sink filter.<br />
<br />
	// Release the mux filter.<br />
pMux->Release();<br />
<br />
the code below remains as it is. <br />
// hr = g_pCapture->RenderStream(<br />
//       &PIN_CATEGORY_PREVIEW, // Pin category.<br />
//       &MEDIATYPE_Video,      // Media type.<br />
//       pSrcFilter,            // Capture filter.<br />
//       NULL,                  // Intermediate filter (optional).<br />
//       NULL);             <br />

GeneralRe: About DirectX Video Capture Pin
Justin Tay28-Mar-06 23:49
Justin Tay28-Mar-06 23:49 
GeneralRe: About DirectX Video Capture Pin
crazymubashir4-Apr-06 21:27
crazymubashir4-Apr-06 21:27 
AnswerRe: About DirectX Video Capture Pin
aloha181226-Apr-06 0:39
aloha181226-Apr-06 0:39 
QuestionMultithreading Pin
Waldermort27-Mar-06 1:36
Waldermort27-Mar-06 1:36 
AnswerRe: Multithreading Pin
sunit527-Mar-06 1:48
sunit527-Mar-06 1:48 
AnswerRe: Multithreading Pin
Justin Tay27-Mar-06 1:51
Justin Tay27-Mar-06 1:51 
GeneralRe: Multithreading Pin
Waldermort27-Mar-06 2:10
Waldermort27-Mar-06 2:10 
GeneralRe: Multithreading Pin
Waldermort27-Mar-06 2:17
Waldermort27-Mar-06 2:17 
GeneralRe: Multithreading Pin
Justin Tay27-Mar-06 2:33
Justin Tay27-Mar-06 2:33 
GeneralRe: Multithreading Pin
David Crow27-Mar-06 4:53
David Crow27-Mar-06 4:53 
GeneralRe: Multithreading Pin
Waldermort27-Mar-06 18:04
Waldermort27-Mar-06 18:04 
QuestionRe: Multithreading Pin
David Crow28-Mar-06 2:29
David Crow28-Mar-06 2:29 
AnswerRe: Multithreading Pin
El Corazon27-Mar-06 2:14
El Corazon27-Mar-06 2:14 
AnswerRe: Multithreading Pin
Michael Dunn27-Mar-06 9:00
sitebuilderMichael Dunn27-Mar-06 9:00 
QuestionHow to implement crop feature in VC++ Pin
snprani@yahoo.com27-Mar-06 1:29
snprani@yahoo.com27-Mar-06 1:29 
AnswerRe: How to implement crop feature in VC++ Pin
_AnsHUMAN_ 27-Mar-06 3:31
_AnsHUMAN_ 27-Mar-06 3:31 
QuestionAny reson why SelectObject would not work for new bitmap? Pin
Laughing Buddha27-Mar-06 0:15
Laughing Buddha27-Mar-06 0:15 

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.