directshow

How To Get A List Of Available Video Capture Devices

谁说胖子不能爱 提交于 2019-12-08 08:04:11
问题 I am creating a project using DirectShow.Net that shows a preview of a webcam view within a windows form using Visual C#. I would like to start with gaining a collection of available video devices so I can choose between either the built in webcam or the USB webcam. I have seen several examples of this being done in C++, e.g. on the msdn "http://msdn.microsoft.com/en-us/library/windows/desktop/dd377566(v=vs.85).aspx". However as I do not know any C++ I do not know how to convert this code

GeForce Experience share feature generates whitelist errors and slows performance

白昼怎懂夜的黑 提交于 2019-12-08 07:56:36
问题 I'm developing an application which is previewing video feeds from a capture card and/or a webcam. I've noticed a lot of errors in my console that look like: IGIESW [path to my.exe] found in whitelist: NO IGIWHW Game [path to my.exe] found in whitelist: NO These repeat each time I try to activate a preview window or switch the source feed I'm trying to preview. It actually takes a few seconds each time and it really kills the responsiveness of my application. I'm also seeing a similar

Directshow in C# for windows mobile- strategy?

不问归期 提交于 2019-12-08 07:31:11
问题 I'm trying to figure out how to add some directshow capabilities to a C# application (.net cf 3.5 running on mobile 6 and up), and I'm having a hard time figuring out how to bridge the gap between using unmanaged c++ class(es) in managed C#. I've already written the functionality I need in C++: Basically, I have a manager class that uses COM to tap into the needed directshow functionality. Quick Disclaimer: I'm new to COM, and I'm VERY new to integrating C++ with C#. I'm really hoping that

Get native video resolution of a video file

前提是你 提交于 2019-12-08 06:33:35
问题 I'm currently writing some custom EVR for a Media Foundation player. So far everything work, but i'm in need of finding the native resolution of the video file i'm rendering. I try to use the IBasicFilter2 Interface to use the getVideoSize, get_VideoHeight or other get_SourceWidth etc... but it always return me a E_NOINTERFACE... So do someone have an esay way of getting resolution of a video file? Even if it's with a nice light library...just the size nothing else...Windows manage to find it

Get/set video resolution when capturing image

非 Y 不嫁゛ 提交于 2019-12-08 06:08:41
问题 I'm capturing images from my webcam with some code that mainly bases on this: Using the Sample Grabber. Here I only get the default resolution of 640x480 while the connected camera is able to show more (other capture applications show a bigger resolution). So, how can I: retrieve the list of available resolutions set one of these resolutions so that the captured image comes with it? 回答1: IAMStreamConfig interface lists capabilities and lets you select resolution of interest. enumerating media

Seeking keyframes using DirectShowNet

十年热恋 提交于 2019-12-08 05:33:48
问题 My task is : I create a graph, attach a SampleGrabber to it, and grab the keyframes using the IMediaSeeking interface after building the graph. The following is what I have done : In the Main method : Type comType = Type.GetTypeFromCLSID ( new Guid ( "e436ebb3-524f-11ce-9f53-0020af0ba770" ) ); IGraphBuilder graphBuilder = (IGraphBuilder) Activator.CreateInstance ( comType ); comType = Type.GetTypeFromCLSID ( new Guid ( "C1F400A0-3F08-11d3-9F0B-006008039E37" ) ); ISampleGrabber sampleGrabber =

Seeking keyframes using DirectShowNet

只愿长相守 提交于 2019-12-08 05:27:28
My task is : I create a graph, attach a SampleGrabber to it, and grab the keyframes using the IMediaSeeking interface after building the graph. The following is what I have done : In the Main method : Type comType = Type.GetTypeFromCLSID ( new Guid ( "e436ebb3-524f-11ce-9f53-0020af0ba770" ) ); IGraphBuilder graphBuilder = (IGraphBuilder) Activator.CreateInstance ( comType ); comType = Type.GetTypeFromCLSID ( new Guid ( "C1F400A0-3F08-11d3-9F0B-006008039E37" ) ); ISampleGrabber sampleGrabber = (ISampleGrabber) Activator.CreateInstance ( comType ); graphBuilder.AddFilter ( (IBaseFilter)

WPF Control issues

*爱你&永不变心* 提交于 2019-12-08 05:02:39
问题 I am facing one issue in which WPF application unable to update the progress bar even the button on the wpf window stop glowing untill i move the window then everything is fine. I have try to call InvalidateRect everytime i update the progress bar which actually generate the WM_PAINT message but doesn't solve the issue. This issue is random some time happend some time doesn't happend. My application is using DirectShow at the backened with Enhanced Video Rendering for video rendering. If i

IMediaControl::stop hangs when there is no signal

半世苍凉 提交于 2019-12-08 04:51:00
问题 I have a problem that seems to be very common in Google, but it didn't help me. When my app is trying to close everything, the last function called before releasing objects is IMediaControl::stop. Everything is OK when there is signal. But when I launch app without signal (or terminate it while app is working) program never returns from stop(). What's more, if I provide signal while it's already hanged everything comes back to normal and program unhangs and exits correctly. This is a part of

Set byte stream as live source in Expression Encoder 4

拜拜、爱过 提交于 2019-12-08 04:46:51
问题 I have Expression Encoder 4 which supports two sort of source types: Live Source and File Source Now, I want to achieve my byte stream to be set as live source in Expression Encoder for live broadcasting. I have read about directshow filters but I do not know how to use it. Please let me know if you get something on it. 回答1: A typical solution is to implement a virtual camera and stream data off it. Encoder will see it as a video capture device and you will be able to select it as a video