Click here to Skip to main content
6,594,932 members and growing! (15,260 online)
Email Password   helpLost your password?
Multimedia » Audio and Video » Multimedia     Intermediate License: The GNU General Public License (GPL)

FxEngine Plugin to Stream Video Data from a Webcam

By m_sylvain

This article shows how to build an FxEngine plugin to stream video data from a webcam
C++/CLI, C, VC6, VC7, VC7.1, VC8.0, Dev
Version:3 (See All)
Posted:13 Mar 2008
Updated:16 Mar 2009
Views:14,239
Bookmarked:47 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
3 votes for this article.
Popularity: 2.11 Rating: 4.43 out of 5
1 vote, 33.3%
1

2

3

4
2 votes, 66.7%
5
Screenshot

Introduction

The purpose of this article 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 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 (GPL)

About the Author

m_sylvain


Member

Occupation: Engineer
Location: France France

Other popular Audio and Video articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 2 of 2 (Total in Forum: 2) (Refresh)FirstPrevNext
GeneralYour Source Code is Incomplete PinmemberGUI Developer20:44 27 Sep '08  
GeneralRe: Your Source Code is Incomplete Pinmemberm_sylvain23:06 29 Sep '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 16 Mar 2009
Editor: Sean Ewington
Copyright 2008 by m_sylvain
Everything else Copyright © CodeProject, 1999-2009
Web17 | Advertise on the Code Project