Click here to Skip to main content
6,597,576 members and growing! (18,636 online)
Email Password   helpLost your password?
Multimedia » DirectX » General     Intermediate

Programming DirectShow applications in C#: A set of tutorials

By daniel049

A collection of tutorials for programming DirectShow in C#.
C#, Windows, .NET, Visual Studio, DirectX, Dev
Posted:6 Oct 2005
Views:138,551
Bookmarked:88 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
36 votes for this article.
Popularity: 7.44 Rating: 4.78 out of 5

1

2

3
3 votes, 8.3%
4
33 votes, 91.7%
5

Sample Image

Introduction

Besides the Microsoft SDK documentation, the information needed to program DirectShow applications is limited. This web site supplies many of the most useful references for programming these applications in C#. In order to continue this tradition, I have created a help file (.chm) that contains ten tutorials that illustrate how DirectShow applications can be written in C#.

Background

In general, the resources for programming DirectShow applications are scarce. In the past few months, I have written many tutorials that illustrate how to perform many common tasks in DirectShow with C#. I have put all these tutorials in one .chm file and provided access to all the source code samples from it. Moreover, the CodeProject web site has a nice messaging system to support the users of the code provided on this site, which should make these tutorials even more useful.

Using the code

I have provided a Visual Studio project file for each tutorial, and I have also included a .cmd file to compile it from the command line. Sometimes, these .cmd files contain references that need to be changed to reflect your local settings. I have mentioned these in the tutorial "readme.txt" file. Some tutorials will only run on 32-bit machines.

Points of Interest

The tutorials show how a simple multimedia player, a simple capture, a jukebox, and an append utility application can be written. Moreover, we have implemented versions of the Picture-In-a-Picture, custom allocator/presenter, custom image compositor samples from the DirectShow SDK in C#. And we have implemented the functionality of the EzRbg24 filter in C#.

Limitations and known issues

As mentioned previously, some samples will only work correctly on 32-bit machines. Moreover, I don't claim that these are optimal solutions. Many years ago, when I was teaching a VC++/MFC class, one student asked me where I was taking the code that I was using during the lectures. I replied that I had two directories with more than eighty samples in each of them, that I had written over a while. I was just picking some of these and brushed them up a little before presenting them and asking the students to modify or extend them (during the lectures or for assignments). I give these samples in the same spirit; but I'm still a long way from having more than hundred and sixty samples to chose from ;-)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

daniel049


Member
You can read my blog entries at:
http://wwww.informikon.com/blog/
Location: United States United States

Other popular DirectX articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 78 (Total in Forum: 78) (Refresh)FirstPrevNext
GeneralAnti-flicker problem PinmemberQuyLV22:37 19 Feb '09  
GeneralSave PIP as wmv file Pinmemberrama srinu6:09 23 Jan '09  
GeneralMultiple Sample Grabber Objects Pinmemberkazim bhai6:42 11 Jun '08  
GeneralRe: Multiple Sample Grabber Objects Pinmemberdaniel04912:18 12 Jun '08  
Generalcannot display this HTML help file PinmemberHooNose_JJP3:18 11 Jun '08  
GeneralRe: cannot display this HTML help file PinmemberHooNose_JJP3:30 11 Jun '08  
GeneralRe: cannot display this HTML help file Pinmemberdaniel0493:59 11 Jun '08  
GeneralGreately in need of help Pinmemberbabu742:49 3 Jun '08  
General.net Compact Framework Pinmembers4souhail9:43 3 Aug '07  
GeneralRe: .net Compact Framework Pinmemberdaniel0498:30 4 Aug '07  
GeneralJukebox: Step Forward works, but Step Backward has problems Pinmemberstringtheory_x20:22 5 Jul '07  
GeneralRe: Jukebox: Step Forward works, but Step Backward has problems Pinmemberdaniel0497:19 9 Jul '07  
QuestionHow to capture single frame Pinmemberaishar5:35 22 Jun '07  
GeneralAccess to Running Object Table? Pinmemberstringtheory_x0:35 31 May '07  
GeneralRe: Access to Running Object Table? Pinmemberdaniel0493:57 31 May '07  
QuestionProblem with your tutorial.. please help... Pinmemberangeldoescry6:34 9 May '07  
AnswerRe: Problem with your tutorial.. please help... Pinmemberdaniel04915:06 10 May '07  
Generalmu-LAW to MP3 PinmemberVince Zhou14:47 2 May '07  
GeneralRe: mu-LAW to MP3 Pinmemberdaniel0499:21 5 May '07  
GeneralVMR9 and DX9 surface input Pinmemberwingnutman13:47 18 Apr '07  
GeneralRe: VMR9 and DX9 surface input Pinmemberdaniel04910:43 20 Apr '07  
GeneralGreat article !!... I need some help regarding video streaming.... Pinmembersidsidz22:06 31 Mar '07  
QuestionBuilding a DirectShow application PinmemberMaynka2:59 27 Mar '07  
AnswerRe: Building a DirectShow application Pinmemberdaniel0494:37 29 Mar '07  
QuestionCan't find the resource file Pinmemberhdtntran14:15 18 Jan '07  

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

PermaLink | Privacy | Terms of Use
Last Updated: 6 Oct 2005
Editor: Smitha Vijayan
Copyright 2005 by daniel049
Everything else Copyright © CodeProject, 1999-2009
Web12 | Advertise on the Code Project