directshow

Using DirectShow filters outside DirectShow?

巧了我就是萌 提交于 2019-12-06 11:33:43
I'm currently dealing with Windows Media Foundation. However, due to some problems with the Microsoft H.264 decoder and some missing decoders for custom format, I'd like to know if it would be possible to instantiate a DirectShow Decoder directly using CLSID, and build a proxy around it that exposes IMFTransform to get a decoder for Media Foundation. So here is my question: Can i instantiate a Directshow filter (preferrably decoders) directly and use them for decoding (i.e. put some compressed frames and get uncompressed ones) to create a MFT? I know how to instantiate the filter itself using

Get iplImage or Mat from directshow to opencv

雨燕双飞 提交于 2019-12-06 11:07:38
问题 I had to change to directshow for my eyetracking software due to the difficulties to change resolution of the camera when using c++ and opencv. Directshow is new to me and it is kind of hard to understand everything. But I found this nice example that works perfectly for capturing & viewing the web cam. http://www.codeproject.com/Articles/12869/Real-time-video-image-processing-frame-grabber-usi I am using the version that not requires directShow SDK. (But it is still directshow that is used

DirectShowLib - Can't take more than one picture with webcam. Got “Insufficient system resources exist to complete the requested service” error

别等时光非礼了梦想. 提交于 2019-12-06 10:29:47
问题 I'm working on Visual Studio 2012 and using C#, I'm using the library DirectShowLib to take pictures from my webcam, but I can only take one picture, if I try to take another one I get an exception: DirectShowLib.DsError.ThrowExceptionForHR(Int32 hr) at SnapShot.Capture.SetupGraph(DsDevice dev, Int32 iWidth, Int32 iHeight, Int16 iBPP, Control hControl) in c:\Users\devel_000\Documents\Visual Studio 2012\Projects\ControlAcceso\ControlAcceso\Capture.cs:line 323 at SnapShot.Capture..ctor(Int32

Get WebCam status using C#

纵饮孤独 提交于 2019-12-06 09:31:52
I use DirectShowLib .Net to capture images from WebCam. How get state of my WebCam in C#? I mean if it's alredy using by another app? Build a capture graph, such as Camera -> Null Renderer and put it into paused state. If you succeeded, the camera is (was) idle becuase otherwise this third party app would lock it exclusively. You could possibly use IAMResourceControl too, but it's unlikely to be available for a camera device. 来源: https://stackoverflow.com/questions/8655951/get-webcam-status-using-c-sharp

DirectShow Push Source filter in C#?

一个人想着一个人 提交于 2019-12-06 08:49:12
Has anybody had any luck in developing a DirectShow source push filter in C#? We have raw bitmaps and pcm audio in a shared memory and want to feed the Expression Encoder with it. For various (good) reasons we don't want to use DirectShow.Net. Also, we want to avoid C++. The filter is likely to eventually be made in C++. If you are trying to avoid this as much as possible, you want to have the C++ as thin as possible and actually forward the calls into managed domain for the real action. This is what DirectShowLib's GSSF Filter does and this is what you otherwise would likely have to implement

Is there any example to show how to write a DirectShow transform filter?

百般思念 提交于 2019-12-06 08:13:15
问题 I want to capture a current frame and its previous one to do analysis and produce a new frame to show. Is it to say I must write a transform DirectShow filter? But I am a newbie to DirectShow. I was confused by MSDN's lots of documents. So I wonder if there is any simple example to show how to do it. Thanks. Cook 回答1: In the directshow samples that come with the Platform SDK you, at least, always USED to get examples on how to make all sorts of filters. I can't believe they would have removed

Is it possible to fake a video stream as virtual cam that is visible in Skype, Lync etc?

点点圈 提交于 2019-12-06 06:51:24
I'm trying to build a crucial part for my application in which I need to be able to fake a virtual cam video stream. The video stream that I want to fake as a virtual webcam is streamed through my PC, where I can set the video source from my webcam or somewhere from my hdd. To sum up, something I can set as MediaElement.SourceProperty or Image.Source in WPF. I've seen Vivek's Vcam, a directshow filter here in tmhare.com which seems like it is extremely related to what I'm looking for. But I couldn't find a way to compile it with VS2010, I also don't really know what to do with it. I think I

Can't change video capture resolution using c#

血红的双手。 提交于 2019-12-06 06:46:34
问题 I am trying to change the default webcam resolution using DirectShowNet in C#, from what I gather I need to change it from calling the built in VideoInfoHeader class in windows win32 api dll for avi capture. I have the following code from DirectShowNet: hr = capGraph.SetFiltergraph( graphBuilder ); if( hr < 0 ) Marshal.ThrowExceptionForHR( hr ); AMMediaType media = new AMMediaType(); media.majorType = MediaType.Video; media.subType = MediaSubType.RGB24; media.formatType = FormatType.VideoInfo

About “Using DirectShow filters outside DirectShow?”

邮差的信 提交于 2019-12-06 06:37:29
I have exactly the same question in the following link, Using DirectShow filters outside DirectShow? I am a fresh to direct show and the two answers in that stack is not clear enough to me. And I can not find a way to contact with the author to ask if he solved his problem. Is there a way to do this? Or, could some one give more detail explain about these two answers? What does it means about " "by hand" call the various filter " and what does it means about "wrap the entire filter graph"? I can't comment on the "by-hand" method (bad idea, IMO), but one option for using DirectShow is to wrap

How to access raw decoded audio data using Windows' built in mp3 decoder?

白昼怎懂夜的黑 提交于 2019-12-06 04:18:00
Since Windows Media Player 6.1, Windows has its' own mp3 decoder. Can I use that decoder to get access to the decoded audio (raw) data? I assume it would have to be done with DirectShow. Related but not the same question. You can add a sample grabber into the graph after the mp3 decoder. The sample grabber allows you to configure a callback that gets called as each sample passes through the media pipeline. Your graph would look something like mp3 file -> mp3 decoder -> sample grabber -> renderer 来源: https://stackoverflow.com/questions/8125234/how-to-access-raw-decoded-audio-data-using-windows