如何在 Gstreamer (windows) 中重用 directshow 组件
我正在为数字电影开发新的媒体播放应用程序。 在检查多媒体框架选项时,我对 GStreamer 印象深刻,并且想使用它。
但是,我们已经开发了一些 directshow 过滤器,目前我们不打算丢弃或重构它们。 directshow滤镜有内部开发(有源代码)和外购(无源代码)两种。
问题: 即使我从 Directshow 切换到 Gstreamer,如何重用这些组件? 想法和指示将不胜感激。
I am developing a new media playback application for Digital cinema.
While checking the multimedia framework options, I am pretty impressed with GStreamer and would like to use it.
BUT, we already have developed some directshow filters, which we do not intend to throw away or refactor for now. The directshow filters involve in-house developed(with source code) and also purchased(without source code).
Question:
How can I reuse these components even though I switch from Directshow to Gstreamer?
Ideas and pointers will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以为 GStreamer 开发自己的插件,它将控制权传递给您的自定义过滤器。这是指南。
You can develop your own plugin for GStreamer, which passes the control to your custom filters. Here is the Guide.
国际海事组织和我愿意接受根本没有任何意义的纠正。 DirectShow 过滤器被设计为适合 DirectShow 框架(接口是为此设计的),gstreamer 是一个多媒体框架,具有自己的一组接口和要求等。即使您可以将过滤器包装在自定义 gstreamer 插件中,在其中,您需要实现 DS 框架为您提供的所有功能,这听起来非常复杂,并且可能比一开始就重构 DS 过滤器需要更多工作。在插件内创建 DS 图的另一种选择听起来也不是一个好主意。
IMO and I stand open to correction that doesn't make any sense at all. A DirectShow filter has been designed to fit into the DirectShow framework (the interfaces are designed for this), gstreamer is a multimedia framework with it's own set of interfaces and requirements, etc. Even if you could wrap the filters in a custom gstreamer plug-in, you would need to implement everything the DS framework provides you with, which sounds very complicated and is likely to be more work than just refactoring your DS filter in the first place. The other option of creating a DS graph inside a plug-in doesn't sound like a good idea either.