我们可以为同一DirectShow图的预览和捕获使用不同的分辨率吗? [英] Can we have different resolutions for Preview and Capture of the same DirectShow graph?

查看:175
本文介绍了我们可以为同一DirectShow图的预览和捕获使用不同的分辨率吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个流,其中1个用于预览,1个用于在DirectShow应用程序中捕获.目前,我们观察到1080P视频和1280 * 720视频的预览速度很慢.我想知道我们是否有方法为捕获和预览流提供不同的分辨率.如果有的话,我可以单独在捕获端使用高分辨率,而在预览"中可以显示低分辨率.

I have 2 streams, one for Preview and one for capture in my DirectShow application. Right now, we observe that the Preview is slow for 1080P video and 1280*720 video. I would like to know if we have any method to have different resolutions for the capture and preview streams. If we have any, I can use the high resolution at capture side alone and at Preview, I am OK to display low resolutions.

谢谢

推荐答案

您可以将捕获输出连接到Infinite Tee过滤器.使用T型过滤器的一个输出进行捕获,将第二个输出连接到调整大小的过滤器,然后使用它进行预览.

You can connect the capture output to a Infinite Tee filter. Use one output of the tee filter to capture, connect the second output to a resize filter, and use that to preview.

在某些硬件上,您可以直接使用其他分辨率的预览输出.但并非所有硬件都支持.例如,某些硬件无法缩放预览,因此,如果使用较低的分辨率,则只能看到视频的左上方.其他硬件根本没有预览针...

On some hardware you can use preview output directly in a different resolution. But not all hardware supports that. for example some hardware does not scale the preview, so if you use a lower resolution, you only see the top left part of the video. And other hardware does not have a preview pin at all...

这篇关于我们可以为同一DirectShow图的预览和捕获使用不同的分辨率吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆