问题描述
我正在.NET Framework 4.0中开发一个Windows窗体应用程序,它使用Expression Encoder 4 SDK控制DV-CAM。在过去,我使用了Windows Media Encoder,但是我想升级到Expression Encoder,因为它看起来好多了
可靠。
I am developing a Windows Forms application in .NET Framework 4.0 which controls a DV-CAM using the Expression Encoder 4 SDK. In the past I used Windows Media Encoder for this, but I would like to upgrade to Expression Encoder, because it seems a lot more solid.
总的来说,SDK正在运行很棒,我可以使用LiveDeviceSource和LiveJob控制和查看DV-CAM视频。但似乎缺少一些功能(或者我找不到它们)。我使用以下代码设置与DV-CAM的连接:
Overall, the SDK is working great, I can control and view the DV-CAM video using a LiveDeviceSource and LiveJob. But it seems a few features are missing (or I just can't find them). I use the following code to setup the connection with the DV-CAM:
HandleRef handleRef = new HandleRef(videoPanel, videoPanel.Handle);
_preview = new PreviewWindow(handleRef);
_job = new LiveJob();
Collection<EncoderDevice> devices = EncoderDevices.FindDevices(EncoderDeviceType.Video);
if (devices.Count > 0)
_device = devices[0];
if (_device != null)
{
_source = _job.AddDeviceSource(_device, _device); // init a LiveDeviceSource
_source.PreviewWindow = _preview;
_job.ActivateSource(_source);
}
推荐答案
这篇关于Expression Encoder 4 SDK - 控制DVCAM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!