directshow

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? ...

How to send/receive data with complicated data structure via pipe?

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? ...

COINIT_MULTITHREADED and mysterious crashes after using OleCreatePropertyFrame

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...

C# COM Interop: How to translate instructions from C++?

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...

How to use/install custom Directshow filter

Hi I have custom compiled directshow filter - filter.DLL - but how to use, or install this filter in system? Amanda ...

Including DirectShow library into Qt for video thumbnail

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...

Why does VC2008 think this class is abstract?

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:...

Splicer.dll on Windows 2008

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...

Finding duration of a video using directshowlib-2005

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; ...

Anyone familiar with MontiVision DirectShow SDK?

Their product is pretty expensive, anyone knows what restrictions there are if I don't buy a license from them? ...

How to rewrite the function below with ATL?

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, ...

Direct Show Capture filter "wrapper"

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...

Direct Show graph - how to get the current fps?

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 ...

Error encoding to Flash video

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> ...

DirectShow's PushSource filters cause IMediaControl::Run to return S_FALSE

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...

Control the audio channel / track by using directshow??

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...

Control the audio channel / track by using directshow??

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...

Control the audio channel/track by using directshow??

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...

TV capture EZACP - DirectShow capture filter - error ERROR_DEVICE_NOT_CONNECTED while running graph

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...

C++ DirectShow in Rendering Behavior

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...