directshow

How to capture frames using Delphi/DSPack without displaying it on TVideoWindow?

ε祈祈猫儿з 提交于 2020-01-13 14:07:11
问题 DSpack has example code to play a DirectShow compatible video device and to capture the video frames simultaneously. A TVideoWindow is attached to the FilterGraph to display the video (Firgure-1). If you remove the TVideoWindow, then the Operating System (Windows) will automatically bring up ActiveMovie and display the video on a separate window (Figure-2). Is there a way to use DSPack to capture video frames without using any of the GUI components and without displaying the video? DSPack

.Net sdk for video editing like Windows Movie Marker

久未见 提交于 2020-01-13 07:25:07
问题 i am currently working on .net application which contains one audio & video file. audio file is split as in to small section as per database entries. then we have to merge this files on video file at specific positions.we what something like windows movie maker it will be nice if someone suggest some .net based sdk for this. 回答1: You can use ffmpeg for this purpose. But you will need a .net wrapper to make it usable in C#. You can use ffmpeg-sharp or SolidFFMpeg. its a a wrapper library over

How can a filter implementing IStream know when it won't receive any further IStream commands

孤街醉人 提交于 2020-01-13 05:12:13
问题 I've written a filter that implements IStream (the COM interface not the C++ standard library class). That's all working well but my problem is that I'm not sure when (if ever) I can be sure than no further IStream commands will be sent so the stream behind IStream can be closed. The simplest place to close the stream would be in Stop() on my filter but this is too early. According to MSDN docs, the filter graph manager will call Stop() on filters in the graph in upstream order so my filter

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

DShow Sample Code for playing video does not play the video

那年仲夏 提交于 2020-01-06 20:07:33
问题 The example program provided here to run a video file. I am using "avi" format file for playing with DShow APIs in Visual Studio 2015. Refer to the complete code: #include<dshow.h> #include<iostream> using namespace std; int CALLBACK WinMain( _In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow ) { IGraphBuilder *pGraph = NULL; IMediaControl *pControl = NULL; IMediaEvent *pEvent = NULL; HRESULT hr = CoInitialize(NULL); if (FAILED(hr)) { cout <<

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

Getting Unknown errors in DirectShow Project

让人想犯罪 __ 提交于 2020-01-06 07:38:42
问题 i downloaded an direct show project from the link GMFBridge - Multiple Graphs in DirectShow I added the following libraries C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug\strmbasd.lib C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\winmm.lib C:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\VC\lib\comsuppw.lib When i build the project i am getting the errors:- error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter:

Getting Unknown errors in DirectShow Project

大兔子大兔子 提交于 2020-01-06 07:38:27
问题 i downloaded an direct show project from the link GMFBridge - Multiple Graphs in DirectShow I added the following libraries C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug\strmbasd.lib C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\winmm.lib C:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\VC\lib\comsuppw.lib When i build the project i am getting the errors:- error LNK2001: unresolved external symbol "public: virtual long __stdcall CBaseFilter:

IID_IMediaControl is stuck when stopping it

╄→尐↘猪︶ㄣ 提交于 2020-01-06 07:31:40
问题 I'm using DirectShow in order to capture video. I'm attaching the camera to sample grabber and saving the images that I get. In the following code I have IID_ICaptureGraphBuilder2 connected to the capture device ( CLSID_VideoCaptureSources ) that is connected to the sample grabber ( ISampleGrabber ). The graph is connected to IID_IMediaControl . I use IID_IMediaControl Run and Stop. Most of the times the stop gets stuck. There's some kind of deadlock. I tried to add IID_IMediaEvent and m

IID_IMediaControl is stuck when stopping it

萝らか妹 提交于 2020-01-06 07:31:30
问题 I'm using DirectShow in order to capture video. I'm attaching the camera to sample grabber and saving the images that I get. In the following code I have IID_ICaptureGraphBuilder2 connected to the capture device ( CLSID_VideoCaptureSources ) that is connected to the sample grabber ( ISampleGrabber ). The graph is connected to IID_IMediaControl . I use IID_IMediaControl Run and Stop. Most of the times the stop gets stuck. There's some kind of deadlock. I tried to add IID_IMediaEvent and m