如何使用 DirectX 在 C# 中创建视频编辑器?
How can I use DirectX to create a video editor in C#?
是否可以使用 DirectX 在 C# 中创建视频编辑器,还是我应该使用不同的 SDK 来制作视频编辑器?请记住,我需要能够为对象设置动画(如果可能的话,形状和路径类似于 After Effects)。
对于视频编辑器,确实有两个 Windows API 需要考虑:
Media Foundation 这是用于视频和音频的现代 Windows 媒体 API。
DirectShow 这是一项可以追溯到 90 年代后期的老技术。
DirectX SDK不适用于视频应用程序开发。 DirectShow 于 2005 年 4 月从 DirectX SDK 中撤出。Media Foundation 从未包含在 DirectX SDK 中。参见 DirectX SDKs of a certain age。
Note that even the DirectX SDK itself is legacy these days. See MSDN
相反,这些 API 在 Windows SDK 中可用。如果您正在使用 Visual Studio,您可能已经拥有此 SDK 的副本。有关版本列表,请参阅 A Brief History of Windows SDKs
要在 C# 中使用这些 API 中的任何一个,您应该查看 Media Foundation and directshow.net。
There is a Direct3D 11 Video technology that is part of the DirectX 11.1 Runtime (Windows 8 SDK or later). It is extremely low-level and is really intended for things like Media Foundation itself to use as a renderer with some ability to do GPU acceleration of the processing.
是否可以使用 DirectX 在 C# 中创建视频编辑器,还是我应该使用不同的 SDK 来制作视频编辑器?请记住,我需要能够为对象设置动画(如果可能的话,形状和路径类似于 After Effects)。
对于视频编辑器,确实有两个 Windows API 需要考虑:
Media Foundation 这是用于视频和音频的现代 Windows 媒体 API。
DirectShow 这是一项可以追溯到 90 年代后期的老技术。
DirectX SDK不适用于视频应用程序开发。 DirectShow 于 2005 年 4 月从 DirectX SDK 中撤出。Media Foundation 从未包含在 DirectX SDK 中。参见 DirectX SDKs of a certain age。
Note that even the DirectX SDK itself is legacy these days. See MSDN
相反,这些 API 在 Windows SDK 中可用。如果您正在使用 Visual Studio,您可能已经拥有此 SDK 的副本。有关版本列表,请参阅 A Brief History of Windows SDKs
要在 C# 中使用这些 API 中的任何一个,您应该查看 Media Foundation and directshow.net。
There is a Direct3D 11 Video technology that is part of the DirectX 11.1 Runtime (Windows 8 SDK or later). It is extremely low-level and is really intended for things like Media Foundation itself to use as a renderer with some ability to do GPU acceleration of the processing.