directshow

DirectShow manual graph memory leaks

依然范特西╮ 提交于 2021-02-19 07:31:09
问题 Here is simple capture and render graph build manualy. CaptureFilter->SmartTee->(preview)->AviDecompressor->Render All works well and gets 140Mb while working. After I Stop the render and Release all filters and IGraphBuilder 50Mb remaining! Again build same filter - all works but 140+50=190Mb in ram. After release 100Mb remaining. And again and again. I had try SmartPtr, ComPtr, Release() in any imaginable combinations but no effect. Seems I do something compleetly wrong :( #include <windows

How to make directShow to Create graph automatically with available filters

让人想犯罪 __ 提交于 2021-02-11 13:30:57
问题 I want to use the Medialooks multisource filter in my application, This has entry in HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\ But still i have to Add this filter manually using CLS_ID and AddFilter Function. Is there any way so that Renderfile function of Dshow will automatically creates a graph by enumerating the filters from registry Checked in Grphedt tool but if i manually insert and connect Filters I can play the videos properly.Otherwise it wont render automatically by building the

Project and build structure for Microsoft DirectShow based virtual webcam application on Window 10

橙三吉。 提交于 2021-02-10 18:23:03
问题 I am trying to create simplest virtual webcam application which can display image file on my local filesystem. After initial research on stackoverflow links and seeing OBS Studio source code I got some idea how can I achieve this. I would need to use Microsoft DirectShow. I would need to develop one source filter that would work as capture filter using IBaseFilter I would need to develop another source filter that would work as output filter or virtual webcam filter. I would need to compile

64 bit Vivek's Virtual Camera

徘徊边缘 提交于 2021-02-08 06:41:24
问题 I have build 32 bit famous Vivek's VCam available here http://tmhare.mvps.org/downloads.htm and it successfully works and shows in 32 bit video conferencing software's like Skype and Zoom but when I build it int 64 bit it showed in graph edit but did not showed in 64 bit video chatting software's like Skype for windows 10, Bluejeans and Skype for business 64 bit. Do anyone has experience in using 64 bit VCam project? Do I have to make some changes in code for 64 bit? please guide. 回答1: When

Good techniques for keeping COM classes that implement multiple interfaces manageable

廉价感情. 提交于 2021-02-07 04:24:15
问题 COM objects that implement many interfaces can end up suffering from the god object anti-pattern or end up full of tedious forwarding code: class MyCOMClass , public CUnknown , public IFoo , public IBar , public IPersistStream , public IYetAnotherInterface, , public IAndAnotherInterfaceToo // etc etc etc In the most obvious implementation, the class MyCOMClass ends up implementing all the interfaces internally, becomes very large and coupled to details of implementation of each interface.

Video.play returns DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d

可紊 提交于 2021-02-05 12:12:45
问题 Using Qt Version 5.4.2 Error code returned : DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d A QML file has been written with the Video QML type as below. I have added the below in the project file (.pro) Qt+= multimedia Snippet of code as below in the QML file. Video { id: video width : 800 height : 600 source : "Video.mp4" MouseArea { anchors.fill: parent onClicked: { video.play(); } } focus: true Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ?

Video.play returns DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d

心已入冬 提交于 2021-02-05 12:12:25
问题 Using Qt Version 5.4.2 Error code returned : DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d A QML file has been written with the Video QML type as below. I have added the below in the project file (.pro) Qt+= multimedia Snippet of code as below in the QML file. Video { id: video width : 800 height : 600 source : "Video.mp4" MouseArea { anchors.fill: parent onClicked: { video.play(); } } focus: true Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ?

DirectShow based Virtual camera is not showing any frame in Zoom and other Desktop apps

有些话、适合烂在心里 提交于 2021-02-05 11:21:11
问题 I tried one of sample DirectShow based virtual camera https://github.com/roman380/tmhare.mvps.org-vcam I am able to compile and build and its working fine in Google Meet. But this virtual camera is not working properly in Zoom and other Desktop apps. Its visible as video device but not showing any content like I am able to see random data in Google Meet. Zoom is using DirectShow as well as Media Foundation So Virtual camera is visible in Zoom. In zoom on selecting Virtual camera I am seeing

Read USB camera's input edit and send the output to a virtual camera on Windows

强颜欢笑 提交于 2021-01-28 10:35:53
问题 I am working on project where I need to read a USB camera's input, put some effects on it and then send that data to a virtual camera so it can be accessed by skype etc. I have compiled and used the vcam filter. I was also able to make a few changes in FillBuffer method. I now need to know that is it possible to send data to vcam filter from another application or do I need to write another filter. 回答1: The vcam project you currently have as a template is the interface to other video

Finding a filter's DirectShow category

折月煮酒 提交于 2021-01-28 10:30:21
问题 Given a filter or a hardware device or its moniker, how can I find out what DirectShow category that filter or hardware device belongs to? Is there some kind of a "Category" property somewhere in the PropertyBag? 回答1: DirectShow categories contain filter registration information in terms that it is possible to create a monitor out of registration entry. Once moniker is created you don't yet have a filter but category information is already gone at this point. Creating an instance of filter