简体   繁体   English

Windows.winmd在Azure工作者角色中

[英]Windows.winmd in azure worker role

I need process video (trim, encoding and other) in azure worker role. 我需要以天蓝色的工作人员角色处理视频(修剪,编码和其他)。 I found nothing .net library. 我什么都没找到。 But i found windows.media in windows kit (winrt - Winows.winmd file). 但是我在Windows套件(winrt-Winows.winmd文件)中找到了windows.media。 I referenced this metadata to azure worker, but it does not work (Error: Requested Windows Runtime type 'Windows.Media.MediaProperties.MediaEncodingProfile' is not registered.) I expect that this is due to azure worker role have not COM object's. 我将此元数据引用给了Azure工作人员,但是它不起作用(错误:未注册请求的Windows运行时类型'Windows.Media.MediaProperties.MediaEncodingProfile'。)我希望这是由于天工角色没有COM对象。 But worker role based on Windows Server 2012, who have it. 但是基于Windows Server 2012的辅助角色(拥有角色)。 Someone has an idea? 有人有主意吗? Or how can i process video in azure worker role. 或者我如何以天蓝色工作者角色处理视频。

I think this has to do with the Media Foundation and some others desktop experience components not being installed by default on a server. 我认为这与默认情况下未在服务器上安装的Media Foundation和其他一些桌面体验组件有关。 You might need to write a startup task to install/enable features and maybe codecs you need. 您可能需要编写启动任务以安装/启用功能以及可能需要的编解码器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM