Click here to Skip to main content
11,430,908 members (69,952 online)
Click here to Skip to main content

FxEngine Plugin to Stream Video Data from a Webcam

, 16 Mar 2009 GPL3
Rate this:
Please Sign up or sign in to vote.
This tip shows how to build an FxEngine plugin to stream video data from a webcam

Screenshot

Introduction

The purpose of this tip is to help to work on video stream using a simple plugin approach. Instead of using a full DShow architecture, I use the FxEngine Framework from SMProcess.

My approach was the following: create a video source plugin using DShow's components and process video stream with one or several processing plugins using C++.

Background

The plugin is based on the StillCap sample from DShow SDK (SDK\Samples\Multimedia\DirectShow\Editing\StillCap). There is an excellent article by Chesnokov Yuriy about this.

Using the Code

Firstly, I used the Framework to build the plugin (Out pin, plugin's parameter, Win32 dialog and plugin interface). I just read the sample code and the user's guide that comes with the Framework installation.

Secondly, I used DShow programming to get video data.

The video capture is done by:

  • Creating an ISampleGrabber object to receive video data
  • Retrieving the default video capture device using GetDefaultCapDevice() method
  • Initializing video capture device using the InitVideoCapture() method

Using the Plugin

As shown in the screenshot above, I used the plugin in the Framework Editor to stream video data into several RGB splitters.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

Share

About the Author

m_sylvain
Engineer
France France
No Biography provided

Comments and Discussions

 
QuestionWouldn't this be a Tip? Pin
Afzaal Ahmad Zeeshan28-Feb-15 6:23
professionalAfzaal Ahmad Zeeshan28-Feb-15 6:23 
QuestionHelp compilig in VS2010 Pin
ogrydc14-Sep-11 15:06
memberogrydc14-Sep-11 15:06 
AnswerRe: Help compilig in VS2010 Pin
m_sylvain29-Feb-12 10:26
memberm_sylvain29-Feb-12 10:26 
GeneralYour Source Code is Incomplete Pin
GUI Developer27-Sep-08 20:44
memberGUI Developer27-Sep-08 20:44 
GeneralRe: Your Source Code is Incomplete Pin
m_sylvain29-Sep-08 23:06
memberm_sylvain29-Sep-08 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150428.2 | Last Updated 16 Mar 2009
Article Copyright 2008 by m_sylvain
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid