directshow.net

Clean up DirectShow Graph - DirectShow graph is not stopping

只愿长相守 提交于 2019-12-24 08:16:22
问题 I use DirectShowNet and when my Graph is stopped I release com objects. The problem is that while I try to release COM objects [ filters, interface] ,sometimes this cleanup cause directshow graph not STOPPED.It "suspend". If I do not make clen up [ release com objects] everthing is OK [ except i have memory leaks] ... Here is how i make clean up: if (videoWindow != nullptr) { Marshal::ReleaseComObject(videoWindow); videoWindow = nullptr; } if (mediaControl != nullptr) { Marshal:

DirectShow - Microsoft LifeCam Studio - RBG24 format lost

折月煮酒 提交于 2019-12-24 02:42:51
问题 I'm using DirectShowNet in C#. I've been developing an application to work with webcams to display video, change resolution, and take pictures (either Still pin or from the Capture stream). I've been testing it on 2 different machines (Win 7 64-bit & Win 8 64-bit) and with the internal webcams on those machines (they are laptops) and 2 other webcams, Logitech C920 and Microsoft LifeCam Studio. One day, the LifeCam Studio stopped working on my Win 8 machine. Using GraphEditPlus, checking the

Can one Video Mixing Renderer 9 (VMR9) render more video streams?

不打扰是莪最后的温柔 提交于 2019-12-24 02:23:34
问题 I am rendering a number of video streams in a Windows form, using the same number of VMR9 instances. I am doing this in C# using DirectShowLib-2005. If there is a need to display 100 videos, I will create 100 FilterGraphs (IFilterGraph2) that will hold one VMR9 instance (VideoMixingRenderer9) each, that will each render 1 video stream. This uses up the RAM quickly... Can I make one VMR9 filter render more than one video stream, so I have less VMR9 instances, and more number of video streams

DirectShow.NET sample - load a better profile

£可爱£侵袭症+ 提交于 2019-12-24 00:16:09
问题 I am running the CapWMV sample application of DirectShow.NET. It is loading a very low quality profile in Capture.cs: // Windows Media Video 8 for Dial-up Modem (No audio, 56 Kbps) // READ THE README for info about using guids Guid cat = new Guid(0x6E2A6955, 0x81DF, 0x4943, 0xBA, 0x50, 0x68, 0xA9, 0x86, 0xA7, 0x08, 0xF6); The readme says if you MUST use guids, you can find them defined in %windir%\WMSysPr9.prx. But when I load another profile, if fails, presumably because I am not connecting

DirectShow cast sampleGrabber to ISampleGrabber

℡╲_俬逩灬. 提交于 2019-12-23 13:00:00
问题 I have a strange error that I cannot wrap my head around. I have a graph created in a separate thread that runs and I'm trying to access the IBaseFilter sampleGrabber outside the thread which worked in a console application but I moved the code to a new project and where I'm trying to cast sampleGrabber to ISampleGrabber the runtime complains with a null reference exception. If I debug sampleGrabber it does have the interface ISampleGrabber however I cannot cast it anymore. Moving the code

Dxsnap not displaying the video properly after first time open

依然范特西╮ 提交于 2019-12-23 10:56:12
问题 I am using DirectShowLib-2005 - DxSnap example to display and capture the image from Webcam. Everything works fine with the example. But when i try to merge it with my application (i tried to call that form from my main form) it is working for the first time. Once i close and open the capture window, it is not displaying the video properly. But the capturing of the image works perfectly all the time. public partial class frmMain : Form { public frmMain() { InitializeComponent(); } ///

Question about setting up FIle Writer in C#

大兔子大兔子 提交于 2019-12-23 09:26:32
问题 Im using DirectShowLib in C#. I want to use File Writer in C# to set a file output. I want to use File Writer because Graph.SetOutputFileName() wont connect to my encoder, but File Writer will. How can i set the File that File Writer saves to in C#? I tried pulling up its property pages like in the DxPropPages example but one won't come up for File Writer. 回答1: Pulled from here IBaseFilter ibf = new FileWriter() as IBaseFilter; Update: "I know how to add file writer to my graph in code i just

C# control to display camera video with DirectShow.Net

守給你的承諾、 提交于 2019-12-22 00:24:00
问题 I want to use DirectShow.Net to capture the stream from a webcam. What type of UI control can I use to display a the webcam video capture? I have seen an example that uses the whole window of a Form, but are there any other controls I can use: a Panel, PictureBox? 回答1: yes. you can use pictureboxes or forms or panels. You need to call and use IVideoWindow. you can cast the directshow.net graph that is streaming/capturing to the IVideoWindow and then you can set it to being owned by whatever

How can I learn a DirectShow programming? [closed]

。_饼干妹妹 提交于 2019-12-21 10:57:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm a .Net C# Developer. I want to develop the media programming about video/audio codec, capture media from source, etc. I'm going to use the DirectShow Lib, but I read it on MSDN, and I'm very confused, because I'm a beginner. Do you have the best tutorials or some article that can make beginner understand to

FFmpeg Hardware Acceleration -> GPU + DirectShow

*爱你&永不变心* 提交于 2019-12-20 10:37:54
问题 Is there a hardware accelerated version of FFmpeg (e.g. a version that utilizes the GPU)? Also, does anybody use FFmpeg with GPU support? Possibly for scaling and converting video format? Or, for example, use DirectShow for image scaling and displaying images on surfaces? If so anybody can provide small code samples? 回答1: There are some VDPAU accelerated codecs for unixes with nVidia card. There is also an mpegvideo_xvmc codec using XvMC that can decode MPEG-1 and 2 on X11 if the driver has