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 8405155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:46:45+00:00 2026-06-09T22:46:45+00:00

I have a Directshow application that needs to preview a webcam video, and when

  • 0

I have a Directshow application that needs to preview a webcam video, and when user clicks ‘Record’ it needs to start capturing the video to a file.

To that end I created a single Capture Graph, with PREVIEW pin connected to a RENDER filter and CAPTURE pin connected to a AVI_MUX filter that saves to a file.

It looks something like this:

                        /[PREVIEW PIN]-->[VIDEO_RENDERER]--->[SCREEN]
[VIDEO CAPTURE FILTER] /
                       \
                        \[CAPTURE PIN]--->[AVI_MUX]--->[FILE WRITER]

When I call Run() on the graph the video shows on screen and gets saved to the file correctly.

My question is, how can I only run the PREVIEW PIN section of the graph without the CAPTURE_PIN section.

My initial idea was to manually start/stop respective filters, but then I looked at Microsoft’s Directshow amcap sample, and they actually create two separate graphs. One for preview and one for capture. If the user wants to preview video, they destroy capture graph and create preview graph. And if the user wants to record video, they destroy preview graph and create capture graph.

That seems kind of wasteful, especially since a single graph already contains both PREVIEW and CAPTURE pins. What is the right approach here?

  • 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-06-09T22:46:46+00:00Added an answer on June 9, 2026 at 10:46 pm

    You can try to switch between two different graphs:

    1) First simple graph, than user just watch

    2) Second complex graph, than user watch and record simultaneously

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

Sidebar

Related Questions

I have a project where I need to record a video using DirectShow from
I have a Delphi 6 application that sends bitmaps to a DirectShow DLL in
I have a DirectShow graph, contains file source filter, splitter filter, decoders for video
I have a video graph in c# with DirectShow. Now I want to show
So I have a WIN32 app that records videos using DirectShow. Now I want
I have an application that rips aac+ audio streams, cutting them at every regular
I have a DirectShow filter graph in my Delphi 6 application built with the
I have a DirectShow application written in Delphi 6 using the DSPACK component library.
In my DirectShow application I have a third party DLL (a 32bit DirectShow filter)
I have written a transform filter (a video codec) that works well in graph

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.