Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Kim Sung Gyoo

@Kim Sung Gyoo
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • USB camera capture code!! (DirectShow)
    K Kim Sung Gyoo

    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. Please show me any code about capture program.

    Article Writing data-structures tutorial

  • DirectShow problem..(compression filter)
    K Kim Sung Gyoo

    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. ); :confused:

    COM tutorial question data-structures help

  • DirectShow problem..(compression filter)
    K Kim Sung Gyoo

    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. );

    C / C++ / MFC tutorial question data-structures help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups