简体   繁体   English

DirectShow渲染

[英]directshow render

hi every one this is my first post here . 大家好,这是我在这里的第一篇文章。 i got a misunderstanding of the DirectShow the First at all is the render : here is the question if i create a stream where it should appear . 我对DirectShow有一个误解,首先是渲染:这是我是否在应显示流的位置创建问题。 should i create IVideoWindow * pointerV; 我应该创建IVideoWindow * pointerV; and create the window form by hand "from scratch" ? 并手动“从头开始”创建窗口表单? because i need to create a sophisticated GUI and coding it will be mission impossible V . 因为我需要创建一个复杂的GUI并进行编码,所以这将是不可能完成的任务V。

i am using VC++ ; 我正在使用VC ++; i wondering if is it possible to use the winFrame directly with all .net 's components and combine the all with directShow functionality ? 我想知道是否有可能直接将winFrame与.net的所有组件一起使用,并将所有与directShow功能结合在一起?

You just add and connect a Video Renderer filter, it will create the window. 您只需添加并连接Video Renderer过滤器,它将创建一个窗口。 Then request IVideoWindow interface from this filter or from the graph object itself (if there is just one video renderer in the graph). 然后从此过滤器或图形对象本身(如果图形中只有一个视频渲染器)请求IVideoWindow接口。

You can create the GUI and render to any component in that GUI .you just have to provide the handle to that GUI element ,So that you can have impossible GUI along with Direct show . 您可以创建GUI并渲染到该GUI中的任何组件。只需提供该GUI元素的句柄,这样就可以将Direct Show与GUI一起使用。

for .Net components i believe the best way is to use .net (say c# .net )you can use direct show wrapper called dshow.net ,it make things very easy since u are using C# and getting the power of Direct show but please note that this will cause come issues occasionally while trying to implement advanced features .But still i think it a great way to use dshow . 对于.Net组件,我认为最好的方法是使用.net(例如c#.net),您可以使用称为dshow.net的直接显示包装器,这使事情变得非常容易,因为您正在使用C#并获得Direct show的功能,但是请请注意,这在尝试实现高级功能时偶尔会引起问题。但是我仍然认为这是使用dshow的一种好方法。

but let me suggest another way to use direct show if you are planing to use directshow and have a very complex ui .Use a framework Qt using vc++ compiler . 但是,如果您打算使用DirectShow并且具有非常复杂的ui,那么让我建议另一种使用Direct Show的方法。请使用使用vc ++编译器的Qt框架。

Sorry i was not able to follow your question properly but hope this helps . 对不起,我无法正确回答您的问题,但希望能对您有所帮助。

使用基于 DirectShow 的虚拟相机和 Electron 框架来渲染内容<div>元素</div><div id="text_translate"><p>我正在尝试使用<a href="https://en.wikipedia.org/wiki/Electron_(software_framework)" rel="nofollow noreferrer">Electron</a>框架构建桌面应用程序,该框架可以将特定&lt;div&gt;元素的 output 内容发送到基于<a href="https://docs.microsoft.com/en-us/windows/win32/directshow/directshow" rel="nofollow noreferrer">DirectShow</a>的虚拟相机。</p><p> 在著名的<a href="https://github.com/roman380/tmhare.mvps.org-vcam" rel="nofollow noreferrer">Viveks 虚拟相机</a>和<a href="https://docs.microsoft.com/en-us/windows/win32/directshow/push-source-filters-sample" rel="nofollow noreferrer">Sample Push Source Filter</a>的帮助下,我能够创建在虚拟相机中渲染桌面的虚拟相机。</p><p> 现在我想将此虚拟相机与 electron 应用程序一起使用到&lt;div&gt;的 output 内容。 我无法弄清楚应该采取什么方法来实现这一目标? 我想我必须开发 DirectShow Capture Filter 它将与我不确定的虚拟相机交互。</p><p> 将&lt;div&gt;内容渲染到虚拟相机的方法应该是什么?</p></div> - Using DirectShow based virtual camera with Electron framework to render content of <div> element

暂无
暂无

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

相关问题 Directshow渲染过滤器仅在发布模式下崩溃 - Directshow render filter crashes only in release mode 如何使用DirectShow在C ++中呈现音频 - how to use DirectShow to render audio in C++ 如何在DirectShow源过滤器中渲染3D图形 - How can I render 3d graphics in a directshow source filter 如何在DirectShow源过滤器中渲染Direct3D - How to render direct3d in a directshow source filter 使用基于 DirectShow 的虚拟相机和 Electron 框架来渲染内容<div>元素</div><div id="text_translate"><p>我正在尝试使用<a href="https://en.wikipedia.org/wiki/Electron_(software_framework)" rel="nofollow noreferrer">Electron</a>框架构建桌面应用程序,该框架可以将特定&lt;div&gt;元素的 output 内容发送到基于<a href="https://docs.microsoft.com/en-us/windows/win32/directshow/directshow" rel="nofollow noreferrer">DirectShow</a>的虚拟相机。</p><p> 在著名的<a href="https://github.com/roman380/tmhare.mvps.org-vcam" rel="nofollow noreferrer">Viveks 虚拟相机</a>和<a href="https://docs.microsoft.com/en-us/windows/win32/directshow/push-source-filters-sample" rel="nofollow noreferrer">Sample Push Source Filter</a>的帮助下,我能够创建在虚拟相机中渲染桌面的虚拟相机。</p><p> 现在我想将此虚拟相机与 electron 应用程序一起使用到&lt;div&gt;的 output 内容。 我无法弄清楚应该采取什么方法来实现这一目标? 我想我必须开发 DirectShow Capture Filter 它将与我不确定的虚拟相机交互。</p><p> 将&lt;div&gt;内容渲染到虚拟相机的方法应该是什么?</p></div> - Using DirectShow based virtual camera with Electron framework to render content of <div> element 如何在DirectShow中将捕获的视频/音频渲染并保存为自定义文件/过滤器格式? - How to render and save captured Video/Audio into a custom file/filter format in DirectShow? cvCapture和DirectShow - cvCapture and directshow 有 DirectShow 的替代品吗? - Is There a replacement of DirectShow? DirectShow图形中的消息传递 - Messaging in DirectShow Graph Directshow将视频捕获到AVI - Directshow capturing video to AVI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM