Note that there are some explanatory texts on larger screens.

plurals
  1. POC++ DirectShow Video and Audio capture - beginning
    primarykey
    data
    text
    <p>I have finally managed to drop working with VFW after several problems I have encountered during the application development.</p> <p>Thanks to StackOverflow, I am now aware that VFW is obsolete and wish to switch to DShow, to let my application work with Vista/W7.</p> <p>Unfortunately, the work has been made and application has been shipped to the client, but as soon as we realized we have troubles with frame rates on Vista / W7 - we decided to rewrite the video class and use DirectShow to establish a good audio/video capture engine for webcameras.</p> <p>This will be tricky, as we never coded with DShow, and right now we are looking for few specific examples of how to:</p> <ul> <li><p>Connect to a selected webcamera</p> <p><strong>similar to: capDriverConnect</strong></p></li> <li><p>Set camera resolution to 640x480 and RGB24 format ( we need to do RGB24 to YUV420 for each frame )</p> <p><strong>similar to: capSetVideoFormat / capCaptureSetSetup</strong></p></li> <li><p>Set audio capturing for this webcamera </p> <p><strong>similar to: capSetAudioFormat</strong></p></li> <li><p>Register two callbacks:</p> <ul> <li>One for video frame ( we will pass frames to video encoder )</li> </ul> <p><strong>similar to: capSetCallbackOnVideoStream</strong></p> <ul> <li>One for wave buffer ( we will pass wave buffer to audio encoder )</li> </ul> <p><strong>similar to: capSetCallbackOnWaveStream</strong></p></li> <li><p>Be able to show a preview window somewhere on parent window</p> <p><strong>similar to: capPreview</strong></p></li> <li><p>Perform Start/Stop operation when needed</p> <ul> <li>Start - would mean, connect and start capturing audio/video frames</li> <li>Disconnect - would mean, stop capturing audio video frames</li> </ul></li> <li><p>Perform drawing to the actual frame </p> <p>similar to:</p> <p>SetBitmapBits(CameraInput.GetFrameBitmap(),w*h*3,vdhdr->lpData); // draw something with gdi+ GetBitmapBits(CameraInput.GetFrameBitmap(),w*h*3,vdhdr->lpData);//set back the frame with data</p></li> </ul> <p>All of the above was already made with VFW, but as I wrote before we unfortunately need to switch do Direct Show.</p> <p>Is there anyone who could help us out achieving a class that could rescue us from months of studying Direct Show ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload