问题描述
我正在创建一个测试应用程序,用于将流从网络摄像头/摄像头发布到WMS上的发布点。但是,我无法更改输出格式,如流的质量/编解码器/比特率。我想要使用的属性是readonly。或者我做错了什么?
例如:
outputFormat.VideoProfile.Codec = VideoCodec.VC1;
给出错误
错误1属性或索引器'Microsoft.Expression.Encoder.Profiles.VideoProfile.Codec'无法分配 - 它是只读的
但是应该启用/设置outputFormat.VideoProfile.Codec。
另外我如何使用outputFormat.VideoProfile.Bitrate来分配比特率和我可以像编码文件一样分配叠加图像吗?我也试过使用预设,但那些也给我错误,他们是只读的。为了记录,我使用WindowsMediaPublishingPointOutputFormat()。
Hi,
I am creating a test application to publish stream from webcam/camera to a publishingpoint on WMS. However I can't change the output format like quality/codec/bitrate of the stream. The properties that I want to use are readonly. Or am I doing something wrong?
For example this:
outputFormat.VideoProfile.Codec = VideoCodec.VC1;
gives the error
Error 1 Property or indexer 'Microsoft.Expression.Encoder.Profiles.VideoProfile.Codec' cannot be assigned to -- it is read only
But outputFormat.VideoProfile.Codec should be get/set enabled.
Also how can I use outputFormat.VideoProfile.Bitrate to assign a bitrate and can I assign a overlay image like when encoding a file? I also tried to use Presets but those also gives me error that they are read only. For the record I am using WindowsMediaPublishingPointOutputFormat().
这篇关于编码器3 SDK问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!