Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6254963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:16:38+00:00 2026-05-24T14:16:38+00:00

I have finally managed to drop working with VFW after several problems I have

  • 0

I have finally managed to drop working with VFW after several problems I have encountered during the application development.

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.

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.

This will be tricky, as we never coded with DShow, and right now we are looking for few specific examples of how to:

  • Connect to a selected webcamera

    similar to: capDriverConnect

  • Set camera resolution to 640×480 and RGB24 format ( we need to do RGB24 to YUV420 for each frame )

    similar to: capSetVideoFormat / capCaptureSetSetup

  • Set audio capturing for this webcamera

    similar to: capSetAudioFormat

  • Register two callbacks:

    • One for video frame ( we will pass frames to video encoder )

    similar to: capSetCallbackOnVideoStream

    • One for wave buffer ( we will pass wave buffer to audio encoder )

    similar to: capSetCallbackOnWaveStream

  • Be able to show a preview window somewhere on parent window

    similar to: capPreview

  • Perform Start/Stop operation when needed

    • Start – would mean, connect and start capturing audio/video frames
    • Disconnect – would mean, stop capturing audio video frames
  • Perform drawing to the actual frame

    similar to:

    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

All of the above was already made with VFW, but as I wrote before we unfortunately need to switch do Direct Show.

Is there anyone who could help us out achieving a class that could rescue us from months of studying Direct Show ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:16:39+00:00Added an answer on May 24, 2026 at 2:16 pm

    Your best bet for examples will be the ones from Microsoft.

    Your questions are still phrased in terms of VFW so it’s hard to answer them as written. For example, in DirectShow you wouldn’t register a callback for to encode a video frame. Instead, you’d develop an encoder filter that would receive data from the capture source.

    As an alternative, if you’re only targeting Vista and later, there is the Microsoft Media Foundation. I have no experience with it so I don’t know how the learning curve compares to DirectShow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have finally managed to get javan-whenever gem working on my site5 server, and
I have finally managed to get core data working and beginning to understand it.
After many hours of debugging and analysis, I have finally managed to isolate the
I have managed finally to get Solr working, with the help of all you
After much confusion, I have finally managed to successfully deploy a instance of Cruise
I have finally got the green light to use Memcached in our project (after
After searching through some existing libraries for JSON, I have finally ended up with
I've finally managed to run the QtCreator debugger on Windows after struggling with the
I finally managed to get data from facebook! But I have a problem displaying
UPDATE Finally managed to work it out! Thanks for all the help from everyone.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.