directshow

DirectShow code crashes after exit (PushSourceDesktop sample)

不打扰是莪最后的温柔 提交于 2019-11-28 14:28:10
I'm trying to use the Desktop capture filter that comes with the SDK (PushSourceDesktop). I compiled it and seem to use it successfully as it actually captures my desktop and saves it to a file. But the application crashes when its done/exits. When I break on the error it only says no source available and the call stack location is KernelBase.dll!7560280C(). I thought I give it a shot here to see if anyone can recognize some issue or if I am doing something blatantly wrong that might cause the crash. Thanks in advance! EDIT: working code int main() { HRESULT hr; hr = CoInitialize(NULL); {

Black video using multiple instances VMR 9

此生再无相见时 提交于 2019-11-28 14:27:12
I am working on creating a video wall like application. The application creates multiple windows to display video and each window has its own filter graph. In a typical configuration, these windows would be spread over two displays for a total of 12 windows. But the problem is whenever I try to run the application, a few of the windows display black video. There are no crashes and each graph is rendered correctly without throwing any errors. The windows displaying the black video are random. I have tested this on two different graphics card with similar results. Can someone please help

QT5 Video render error code 80040218

烂漫一生 提交于 2019-11-28 14:06:28
When running an application in QT5 made ​​using the QWebView , I accessed a page with a video player in HTML5 , but the video does not play and qt/directshow shows the following error: DirectShowPlayerService::doRender: Unresolved error code 80040218 DirectShowPlayerService::doRender: Unresolved error code 80040218 Details: QT5.1.1 MingW4.8 32bit Windows 7 64bit I suspect that is why my Windows is 64bit , but the QT/MingW * runs on 32bit and maybe miss some DLL/LIB . How can I resolve this? Thanks. The error code is rather generic: 0x80040218 VFW_E_CANNOT_RENDER "No combination of filters

Directshow filter access threading

寵の児 提交于 2019-11-28 12:59:17
I made a TV-Player in c# using directshowlib-2005. now I made a method to search for available channels. I want this method to run in a different thread so my GUI won't freeze, but I get an error when I try to set the channel in the method. It can't find the IAMTVTuner interface in my graph, altough I know it's there. If I don't use a different thread, the method works just fine (but my GUI freezes for a while) I know it has to do something with apartments, but is there a way I can acces that interface in a different thread then the thread where created my graph in? This problem is because

GMFBridge usage in DirectShow

馋奶兔 提交于 2019-11-28 12:54:48
enter code here I have to stop and start Video Renderer Filter dynamically . That is not possible with "normal" Direct Show Architecture without creating new graph. But with GMFBridge it seems it is possible. But i can not figure out how to use it.( yes i read the paper at http://www.gdcl.co.uk/gmfbridge/index.htm ) My Graph is: SourceFilter ---> MyCustomTransformFilter ---> Video Rendrer Filter So GMFBridge fits where? i) I can devide my graph two pieces [ Source Filter + MyCustomFilter ] + Video Rendere ii) Then how to add my filters to graph, and stop start Video Rendrere without affecting

DirectShow Record Problem - fps

北城余情 提交于 2019-11-28 11:45:56
I just create simple graph to record video from a source Filter: SourceFilter ---> Muxer ---> FileWriter I can able to save video which come from SourceFilter to my local disk. But when i try to play the recorded video, it play in "slow motion" :-). It is sure that there is fps (frame persecond) problem. How can i fix it? any ideas? PS: To check if my SourceFilter give righ fps i simply create another graph: SourceFilter ---> Video Decoder ---> Video Renderer and it plays at right speed (fps) More Details: SourceFilter(*.mp4 file format) ---> Avi Mux Filter ---> File writer Filter This record

Can't make IAMStreamConfig.SetFormat() to work with LifeCam Studio

穿精又带淫゛_ 提交于 2019-11-28 11:30:39
I'm brand new to DirectShow and am working on adding a video stream to my application. I've looked into many solutions out there (TouchLess, DirectShow.net, etc.) and ended up going with this small project on Code Project There isn't much to it, which is why I selected it; I wanted a small code base to work with, as I need to get this feature implemented quickly. After a solid day of reading, experimenting and debugging I finally have everything working nicely. There is a delay which is a bummer but I can worry about that later. The issue I have at this point is that the camera is capable of

Directshow Preview Only and Capture & Preview with a single Graph

天涯浪子 提交于 2019-11-28 11:25:09
问题 I have a Directshow application that needs to preview a webcam video, and when user clicks 'Record' it needs to start capturing the video to a file. To that end I created a single Capture Graph, with PREVIEW pin connected to a RENDER filter and CAPTURE pin connected to a AVI_MUX filter that saves to a file. It looks something like this: /[PREVIEW PIN]-->[VIDEO_RENDERER]--->[SCREEN] [VIDEO CAPTURE FILTER] / \ \[CAPTURE PIN]--->[AVI_MUX]--->[FILE WRITER] When I call Run() on the graph the video

Calling a function in another thread C#

我的未来我决定 提交于 2019-11-28 10:11:17
问题 I don't know how to put this but I'll try my best. I have a Windows form application which uses a webcam to take a photo of a user which works fine, I'm using the directshownet library found here http://directshownet.sourceforge.net/ and have used the DxSnap sample to take the photo. The next part of the application uses an RFID tag reader that once a tag is scanned, it calls the take photo method. And this is where the problem is coming in, because the RFID listen method is run in a separate

take picture from webcam c#

烈酒焚心 提交于 2019-11-28 09:06:14
问题 I'm streaming video to my Window Form with DirectShowLib. I also want to save image when i press button "Save" for example. How to get picture from webcam with DirectShowLib methods or with WIN32 API methods? 回答1: DirectShow.NET Samples are there: http://sourceforge.net/projects/directshownet/files/DirectShowSamples/2010-February/ The following sample demoes the requested function: Samples\VMR9\vMR9Snapper ------------------------ This sample shows how to capture bitmaps from VMR9. Having it