directshow.net

How can i tell when a Directshow.net conversion is done?

谁都会走 提交于 2020-01-17 04:38:30
问题 right now I have a Directshow.net graph that takes in a video file and encodes it to a file, however it just continues to run int x = program.Run() in DirectShow.net and i want the program to close when the full conversion is done instead of me having to guess. how can i tell if its done encoding programatically? 回答1: If you have a mediaEvent variable you can check against the WaitForCompletion function to see if the code is done running. if the result of the waitforcompletion ( gh in this

Is it possible to use an http url as your source location of a Source Filter in DirectShow .Net?

做~自己de王妃 提交于 2020-01-15 08:41:26
问题 I'm using the DirectShow.Net Library to create a filter graph that streams video by using an http address and the WM Asf Writer. Then on the webpage I'm able to use the object element to render the video feed in a Windows Media Player object. So now I'm curious if it is possible to read from that http address with some type of FilterSource. I have seen that some people use the AsyncReader as an IBaseFilter, and then casting it as an IFileSourceFilter and calling the load method and passing it

Fliped cursor icon on desktop recording using directshow

杀马特。学长 韩版系。学妹 提交于 2020-01-14 12:55:09
问题 Using Directshow.NET I have developed an application which will record the desktop screen, to get mouse pointer we need to paint mouse pointer by our own. So I added SampleGrabber adn in BufferCB I have written below code: public const Int32 CURSOR_SHOWING = 0x00000001; [StructLayout(LayoutKind.Sequential)] public struct ICONINFO { public bool fIcon; public Int32 xHotspot; public Int32 yHotspot; public IntPtr hbmMask; public IntPtr hbmColor; } [StructLayout(LayoutKind.Sequential)] public

DirectShow Library-How to capture image using directshow library without showing the webcam live images on the PictureBox or Panel

主宰稳场 提交于 2020-01-11 06:52:07
问题 I am using WPF application which is using DirectShow library and it is working fine for grabbing images or recording the live feed,but i wants that end user should not be able to see that any web cam is taking their picture i.e. i wants picture box or panel which is rendering the feed from the webcam should not be visible to the user and i should be able to capture the images or record the live feed. Please provide me any link or suggestion as i am beginner for the DirectShow library. Thanks

How to add/remove some filters to graph at runtime?

三世轮回 提交于 2020-01-06 08:50:33
问题 I want to add Compressor, Avi Muxer, and File Writer to my graph, at runtime. I`ve added an InfTee to my graph like this: IBaseFilter sourceTee = (IBaseFilter)new InfTee(); graphBuilder.AddFilter(sourceTee, "Infinite Tee"); outPin = DsFindPin.ByDirection(theVideoDevice, PinDirection.Output, 0); inPin = DsFindPin.ByDirection(sourceTee, PinDirection.Input, 0); hr = graphBuilder.Connect(outPin, inPin); But when I try to get output on a button click like the below code, I get an error. private

Is directshow.net video input device filter enumeration broken (in newer environments)?

随声附和 提交于 2020-01-06 03:06:32
问题 Every example in the directshow.net samples folder (marked "2010-February") compiles fine, and those that play videos from files work great. However, every example that tries to enumerate the FilterCategory.VideoInputDevices always fails to find any of my filters, specifically DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice); always returns that I have no devices. This same problem occurs for me in every other program that uses directshow.net, like touchless and the various examples

c# directshow.net tee filter render fails

只谈情不闲聊 提交于 2020-01-05 09:06:59
问题 I'm trying to connect an Alax.Info IP camera source filter to a capture and a preview renderer. I add the source filter to a graph, and render the pin. This produces a direct connection to a VMR, and it works. GraphEdit shows the camera filter's output pin type is RGB32 . When I connect the output of the camera source filter to a tee (either a Smart Tee filter, or an Infinite Tee filter), rendering the output from the tee causes an AVI Decompressor filter to be inserted between the tee and

How to find the IMoniker used to create a source filter?

和自甴很熟 提交于 2020-01-05 06:27:12
问题 Currently I'm writing a DirectShow based application that should help users configuring their TV capture cards, since GraphEdit seems to be too difficult for most to understand. The idea is that this application exports the generated Graph to a .GRF file, that will be used in another application. Users can select which device (IMoniker) should be used to create a source filter, and can change some settings regarding video / audio. Next to exporting .GRF files, my application should also have