如何在 Windows Media Player 中为图片添加水印或叠加

发布于 2024-07-11 23:21:26 字数 314 浏览 9 评论 0原文

我正在开发一个使用 Windows Media Player 组件的分布式媒体播放器。 现在,客户问我是否可以将他们的徽标叠加在播放的媒体上,而不必用徽标来渲染每部电影。

我用谷歌搜索了一下,似乎我可以使用 directshow 过滤器来做到这一点,但我还没有找到任何关于如何做到这一点的好信息。

如果这里有人知道我是否可以通过插件、过滤器或其他方式以编程方式完成此操作,那么很高兴知道。 如果它是一个也要花钱的插件就好了。

我想要的是能够使用 jpg/png 作为 Windows Media Player 11 中正在运行的电影的水印/覆盖

I working on a distributed mediaplayer that uses the windows media player component.
Now the customer asks me if its possible to have their logo overlayed on the media played instead of them having to render every movie with the logotype.

I have google it and it seems like I can use a directshow filter to do this, but I havent found any good information on how to do it yet.

If anyone here know If I can do this programatically, with a plugin, filter or some other way it would be nice to know. Its fine if its a plugin that costs money too.

What I want is to be able to use a jpg/png as watermark/overlay to the running movie in Windows Media Player 11

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

将军与妓 2024-07-18 23:21:26

可以通过强制您自己的自定义 DirectShow< /a> 过滤到 WMP 的过滤器图表中。 这涉及将过滤器的优点设置为非常高,以便 DirectShow 的自动图形构建会将您的过滤器插入到 WMP 链中。 但是,我不推荐这种方法,因为 a) 过滤器可能并不总是与某些过滤器图形链一起插入,b) 它还会添加到任何其他已安装的第三方 DirectShow 应用程序的过滤器图形中。 第二个问题可能是一个主要问题。

应该可以创建一个 WMP DSP 插件 来执行此操作。 它们被实现为 DirectX 媒体对象 (DMO s),它类似于 DirectShow 过滤器,但比 DirectShow 过滤器更简单。 这种方法很可能是您最好的选择。

最后一种方法是在 DirectShow 中重写应用程序的整个媒体播放部分,而不是使用 WMP 控件。 这将需要付出更多的努力,但如果您计划现在或将来进行大量自定义媒体流处理,那么这可能是一个不错的选择。

It is possible to do this by forcing your own custom DirectShow filter into WMP's filter graph. This involves setting the filter's merit to be very high so that DirectShow's automatic graph building will insert your filter in the WMP chain. However, I would not recommend this approach because a) it's possible that the filter will not always get inserted with certain filter graph chains and b) it will also be added to the filter graphs of any other installed third party DirectShow apps. This second issue is likely to be a major problem.

It should be possible to create a WMP DSP plugin to do this. These are implemented as DirectX Media Objects (DMOs), which are similar to, but simpler than, DirectShow filters. This approach may well be your best bet.

A final approach would be to rewrite the entire media playback portion of your app in DirectShow instead of using the WMP control. This would take a lot more effort but if you plan to do a lot of custom media stream processing either now or in the future then it may be a good option to take.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文