GithubHelp home page GithubHelp logo

virtualcapturestream's Introduction

DirectShow Virtual Capture Sink/Source Filter

This is a DirectShow Graph Filter that allows capturing a media stream in one process and making it available in a second process as a virtual capture source. The idea of this filter is to encapsulate the details of the capture source in one process and allow a secondary process to consume the stream.

This project requires Visual Studio 2019

I developed this filter many years ago and is available for general curiosity.

The magic in this filter is mainly in how it uses a Windows file pipes to transmit the media samples across two processes. A capture source in one process attaches to a VirtualSink filter that using Windows system pipes to transmit the necessary pin descripters and media samples to a secondard process. The secondary process uses the VirtualStreamSource filter to attach to the pipe and recreate the source output pins making it appear is a normal capture source. The filters use DirectShow buffers to maintain throughput of samples as they are processed through the grapgh. Windows pipe throughout is very fast and was never a concern at the time for handling SD or HD streams. This filter took me a while to get working and my description is not doing justice to how cool this filter is IMHO.

Here is a general workflow.

[Process 1] Capture Source -> VirtualSink -> Windows Pipes(s) -> [Process 2] VirtualSource -> (Capture Graph)

virtualcapturestream's People

Contributors

dlevinson5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.