need an advice, how can I encode stream coming from my webcamera? any C# examples, libraries or codecs?
2 Answers
If you just want to 'show' it, you can use Silverlight 4's built-in support
http://www.silverlightshow.net/items/Capturing-the-Webcam-in-Silverlight-4.aspx
If you want to save it, I'd imagine you're better off using the Expression Encoder SDK and its Live Encoding support via WebcamVideoProfile, although maybe WPF already has something for this
2 Comments
Michael Samteladze
this helped me alot, but I want to use my webcam as datasource, how can I achieve this goal?
James Manning
Can you be more specific about what you mean by "as datasource"? For instance, the Expression Encoder SDK supports the webcam as an encoding source as-is - for instance, see the 'Live Encoding' section ("Expression Encoder also supports encoding from live sources such as a webcam.") of this article which includes a code snippet to do so: msdn.microsoft.com/en-us/magazine/ff714558.aspx
You will need to have drivers installed, and then use something like DirectShow.NET
1 Comment
Michael Samteladze
I need to live stream my webcam video, directShow doesn't allows me to do it