简体   繁体   English

如何使用Directshow.Net放大(缩放)视频的一部分并将其覆盖在原始视频上

[英]How to enlarge(zoom) a section of a video and overlay it on the original video using Directshow.Net

I currently developed a media player using directshow.net. 我目前使用DirectShow.net开发了媒体播放器。 The videos have a small timestamp at the top left corner, which is very small. 这些视频的左上角有一个很小的时间戳,非常小。 I need to enlarge it, so that it is visible/readable while the video plays. 我需要将其放大,以便在播放视频时可见/可读。

I have tried using: 我试过使用:

IVMRFilterConfig
IVMRMixerControl

And get two windows of the same video playing, but I can't seem to zoom into the one window and only display the timestamp section. 并获得播放相同视频的两个窗口,但我似乎无法放大一个窗口,而只显示时间戳部分。

Is there any other way I can achieve this? 我还有其他方法可以实现这一目标吗?

Thanks. 谢谢。

I have solved (sort of) my problem by letting two independant video windows run at the same time. 我已经通过同时运行两个独立的视频窗口解决了(某种程度上)我的问题。 Thus window1 displays the whole image and window2 is a small window in the corner of the screen and it only displays the date time zoomed in. 因此window1显示整个图像,而window2是屏幕角落的小窗口,它仅显示放大的日期时间。

I just had to make sure they play and stop at the same time and when I used frame skips, that both videos are treated. 我只需要确保它们同时播放和停止就可以,并且当我使用跳帧时,两个视频都得到了处理。

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

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