Expression Encoder 3 SDK 屏幕捕获 C# 示例?
我正在使用 VSTS 2008 + .Net 3.5 + C# + Microsoft Expression 3 SDK。我想捕获屏幕并输出 wmv 文件。我努力尝试,但无法从 Google 找到 C# 示例。有参考样本吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
错误的工具类型,Expression Encoder 是转码器。它需要视频格式作为输入并将其编码为不同的输出格式。
您需要首先创建屏幕视频。捕获屏幕截图非常简单,Graphics.CopyFromScreen() 可以做到这一点。生成视频需要重复执行此操作并写入 AVI 等简单格式。 此处的代码可能会有所帮助。
最终的挑战是足够快地完成此操作,以便每秒捕获足够的帧。如果这很容易,那么销售 Jino 和 Camtasia 的公司很快就会倒闭。
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.
这里的答案有点晚了,但您可以使用 Expression Encoder 4 的免费版本来执行此操作(有 10 分钟的时间限制 - 超过此时间您需要购买专业版本)。
SDK 中有一个示例 - SDK\Samples\ScreenCapture。
请参阅http://www.microsoft.com/expression/products/EncoderPro_Overview.aspx
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