缺少“内容导入器”选项在 XNA 中(尝试导入视频)
我没有“WMV 视频文件 - XNA Framework”选项。
我导入的视频采用 WMV 格式,并使用 Microsoft Expression Encoder 4 进行编码,设置设置为预定义的“VC-1 Xbox 360 HD 720p”,因此我认为该视频没有任何问题... DRM未启用。
其他一些人也遇到了这个问题,但他从未找到解决方案(或者他找到了解决方案,但懒得发布) - http://forums.xna.com/forums/p/51297/310710.aspx
是的,我使用的是 XNA 3.1,视频放在名为“Videos”的文件夹中” 在 HighResolutionContent 文件夹中。
我现在不知道该怎么办!如果有人对我应该如何进行有任何想法,请帮忙!
谢谢。
I don't have the option "WMV Video File - XNA Framework".
The video I'm importing is in WMV format and was encoded using Microsoft Expression Encoder 4 with the settings set to the predefined "VC-1 Xbox 360 HD 720p" so I don't think there's anything wrong with the video... DRM is not enabled.
Some other guy had this problem too but he never found a solution (or he did but didn't bother to post it) - http://forums.xna.com/forums/p/51297/310710.aspx
And yes I'm on XNA 3.1 and the video is put in a folder called "Videos" in the HighResolutionContent folder.
I have no idea what to do now! Please if anyone has any idea on how I should proceed, help!
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要确保添加对内容项目的引用:
Microsoft.Xna.Framework.Content.Pipeline.VideoImporters
希望有帮助。
You need to make sure you add a reference to your Content Project for:
Microsoft.Xna.Framework.Content.Pipeline.VideoImporters
Hope that helps.
我会重新安装游戏工作室 3.1。因为如果一切都安装正确,该内容导入器(现在是框架的一部分)将可用。
我唯一可以建议的另一件事(但这是一个延伸)是,您确定您的视频文件具有 .wmv 扩展名吗?
I would reinstall game studio 3.1. because if everything was installed correctly, that content importer (which is part of the framework now) would be available.
The only other thing I can suggest (but it's a stretch) is, are you sure that your video file has a .wmv extension?