How to set read lock and write lock in directshow application?
To apply a general lock, I can do this: CAutoLock(CCritSec * plock) But how can I set read and write lock respectively? ...
To apply a general lock, I can do this: CAutoLock(CCritSec * plock) But how can I set read and write lock respectively? ...
HRESULT GrabberCB :: SampleCB ( double SampleTime , IMediaSample * pSample ) { How to send the pSample content via pipe? } I know how to send/receive string by WriteFile/ReadFile after reading this sample: http://msdn.microsoft.com/en-us/library/aa365592%28v=VS.85%29.aspx But how to send a pSample over? ...
Is there any benefit of using COINIT_MULTITHREADED in a DirectShow application? For now it has given me some troubles, but I am not sure if using CoInitializeEx(NULL, COINIT_APARTMENTTHREADED) is the right fix for the problems. The full story: I have a pretty straightforward web camera capture application with ability to choose the cap...
I am trying to translate the COM Interop instructions given by my camera manufacturer for C++ to C#. They write: To obtain the interface, you use the normal COM functions to ask for the specific interface you need from the capture filter. For example: IBaseFilter* pSourceFilter; ... CComQIPtr<IManufacturersInterface> pKs( pSour...
Hi I have custom compiled directshow filter - filter.DLL - but how to use, or install this filter in system? Amanda ...
I'm trying to implement http://msdn.microsoft.com/en-us/library/dd377634%28v=VS.85%29.aspx on Qt, to generate a poster frame/thumbnail for video files. I have installed both Windows Vista and Windows 7 SDK. I put: #include "qedit.h" in my code (noting there is also one in C:\Qt\2010.04\mingw\include), I add: win32:INCLUDEPATH += $$q...
I'm writing some code to handle video input from some cameras using DirectShow, so I have to implement ISampleGrabberCB. My class that implements the interface compiles okay, but when I try to instantiate it the compiler raises "error C2259: 'SampleGrabberCB' : cannot instantiate abstract class". Here is the interface I'm implementing:...
I'm attempting to leverage the splicer.dll component from http://splicer.codeplex.com on a windows 2008 server. I'm running into an error when the splicer.dll is first used. I'm guessing I don't have one of the dependencies installed. What are the required components that I need? Error: Exception: System.Runtime.InteropServices.COME...
My asp.net(c#) method looks as follows: static public bool GetVideoLength(string fileName, out double length) { DirectShowLib.FilterGraph graphFilter = new DirectShowLib.FilterGraph(); DirectShowLib.IGraphBuilder graphBuilder; DirectShowLib.IMediaPosition mediaPos; length = 0.0; ...
Their product is pretty expensive, anyone knows what restrictions there are if I don't buy a license from them? ...
HRESULT EnumerateVideoInputFilters(void** gottaFilter) { // Once again, code stolen from the DX9 SDK. // Create the System Device Enumerator. ICreateDevEnum *pSysDevEnum = NULL; HRESULT hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, ...
Hello I need to write a DirectShow capture filter that wraps the "real" video device (fitler) and deinterlaces the captured video. From the interface perspective, this has to be a separate video device available in enumerator and when choosen, it connects to a real video device and inserts a transform filter (deinterlace) between v...
Hello I have an instance of IFilterGraph - my own graph with video filters (source, transofrm and renderer). How can I obtain the current fps (video frame rate) of running graph? Regards Dominik ...
I get an error message when trying to use Flash encoder that says " A required library did not initialize properly. Please insure you have Direct show 9 and Quick time 7 or higher installed on your system. But when I check I see that I have Direct X11 installed and no problems are shown. What happened> ...
I'm messing around with the PushSource sample filter shipped with the DirectShow SDK and I'm having the following problem: When I call IMediaControl::Run(), it returns S_FALSE which means "the graph is preparing to run, but some filters have not completed the transition to a running state". MSDN suggests to then call IMediaControl::GetS...
hi, i have write(using vb.net) a small karaoke system which can play .mpeg, .AVI, .VOB 1 format video file by using directshow. but currently i'm facing a problem which i cant control the audio channel / track in the music video. Is that any methods or ways to allow me to control the audio channel (play only backing music or vocal or bo...
hi, i have write(using vb.net) a small karaoke system which can play .mpeg, .AVI, .VOB 1 format video file by using directshow. but currently i'm facing a problem which i cant control the audio channel / track in the music video. Is that any methods or ways to allow me to control the audio channel (play only backing music or vocal or bo...
hi, i have write(using vb.net) a small karaoke system which can play .mpeg, .AVI, .VOB 1 format video file by using directshow. but currently i'm facing a problem which i cant control the audio channel / track in the music video. Is that any methods or ways to allow me to control the audio channel (play only backing music or vocal or bo...
Hello I have a EZCAP video capture device. It has its DirectShow capture filter. When I add this filter to GraphEdt and connect to Video Renderer filter, I get following error: HRESULT: 0x8007048f (2147943567) Name: ERROR_DEVICE_NOT_CONNECTED Description: n/a Severity code: Failed Facility Code: FACILITY_WIN32 (7) Error Code: 0x04...
Hi. Does anyone know how to display DirectShow video in HTML container (e.h. DIV) instead of separate pop-up-like window. Already I did all the things needed to run custom Rendering Behavior, it includes all interfaces and events handling, but cannot find anything related with my problem neither in the Internet nor in books I have. An...