Expression Encoder 3 SDK screen capture C# sample?

风流意气都作罢 提交于 2019-12-10 12:16:28

问题


I am using VSTS 2008 + .Net 3.5 + C# + Microsoft Expression 3 SDK. I want to capture screen and output a wmv file. I tried hard but can not found C# samples from Google. Any reference samples?


回答1:


Wrong kind of tool, Expression Encoder is a transcoder. It requires a video format as input and encodes it to a different output format.

You'll need to create a video of the screen first. Capturing a screen shot is easy enough, Graphics.CopyFromScreen() can do that. Generating a video would require doing this repeatedly and writing to a simple format like AVI. The code here could help.

Doing this fast enough so you capture enough frames per second is the ultimate challenge. If that was easy then the companies that sell Jingo and Camtasia would quickly be out of business.




回答2:


Bit of a late answer here, but you can use the free version of Expression Encoder 4 to do this (with a 10 minute time limit - for more than that you'll need to buy the pro version).

There is a sample in the SDK - SDK\Samples\ScreenCapture.

See http://www.microsoft.com/expression/products/EncoderPro_Overview.aspx



来源:https://stackoverflow.com/questions/3055684/expression-encoder-3-sdk-screen-capture-c-sharp-sample

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!