(X) Hide this Watch a recording of the recent webinar Building a Silverlight 4 application end-to-end by Gill Cleeren
View the webinar recording | Download the slides | Download the demos
Become a member to receive all webinar news by email, or follow all webinar news on Twitter | Facebook | LinkedIn
Skip Navigation LinksHome / Shows / View Show

Two Great WPF Video Samples Online

+ Add to SilverlightShow Favorites
0 comments   /   aggregated from Karsten Januszewski on Mar 31, 2008  /  original article
(0 votes)
Categories: Videos

In WPF, the MediaElement is simple and easy, but there are times when one wants to do more with video (webcams, pixel manipulation, etc.).  This usually requires dropping outside of WPF into unmanaged code or at least referencing unmanaged dlls, all which can get tricky, suffice to say.  I wanted to point out two great WPF video samples that recently came online which abstract out some of this complexity and let you get to the task at hand.

http://www.codeplex.com/VideoRendererElement: With this project, by Jeremiah Morrill,  "a developer can update a pixel buffer or video media sample and have it render in WPF space at MediaElement speed. It is compatible with GDI, DirectShow and direct pixel updates."  The nice part is that he's abstracted all the DirectShow code, so you can work with this project and stay in safe .NET land.

http://blogs.msdn.com/uberdemo/archive/2008/03/27/capturing-a-webcam-stream-to-a-wmv-file-from-within-a-wpf-application.aspx: With this project, you have probably the best class I've seen out there for capturing a webcam with WPF.  Very clever how he uses the Windows Media Encoder Series 9 for the capture. His write up is very thorough.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 4 and 5 and type the answer here: